Fixes #38457 - Update flatpak podman login template to support cert setup #11403
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What are the changes introduced in this pull request?
Requires a couple of PRs to be merged so marking this draft. Updates Flatpak - Login to registry via podman template to allow setting up cert auth in addition to basic auth if user chooses to.
Considerations taken when implementing this change?
Deciding where to put the cert setup: Finally landed on existing template used for flatpak setup.
What are the testing steps for this pull request?
When set to true:
Certificate-based authentication is used.
No basic auth credentials (username/password) are required.
After the job runs, verify the certs and keys are present with:
ls -l /etc/containers/certs.d/<server-hostname>
When set to false:
Basic auth credentials must be provided.
After the job runs, verify that auth details were stored with:
cat /etc/flatpak/oci-auth.json
For end-to-end testing, make sure you're able to podman search/pull, flatpak install etc with the certs and without the certs using basic auth login.
Summary by Sourcery
Introduce optional certificate-based authentication to the Flatpak Podman login job template, enabling users to choose between cert auth and basic auth.
New Features:
Enhancements: