-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
podman auto-update
should support multiple authfiles
#6159
Comments
Thanks @neVERberleRfellerER |
@rhatdan I have basics here https://github.com/neVERberleRfellerER/libpod/tree/sysgenauth, but I can't really test it beyond systemd unit generation because |
This would mean that no container has the "io.containers.autoupdate=image" label set. I can have a look at it. Thanks for opening the issue! Support for |
It looks more like label detection issue because even when I use podman from master for everything, |
I opened #6186 which adds support for --authfile. |
Support using custom authfiles for auto updates by adding a new `--authfile` flag and passing it down into the backend. Also do some minor fixes in the help text and the man page. Fixes: containers#6159 Signed-off-by: Valentin Rothberg <[email protected]>
@vrothberg Would you also accept my approach on top of functionality provided by your PR (when I can finally test it properly)? |
Sure, feel free to open a PR at any time! Note that auto-updates now support the REGISTRY_AUTH_FILE env variable. If you want to extend This way, we can support a whole range of env variables at once. Feel free to reach out here or on IRC if you want to chat. |
Support using custom authfiles for auto updates by adding a new `--authfile` flag and passing it down into the backend. Also do some minor fixes in the help text and the man page. Fixes: containers#6159 Signed-off-by: Valentin Rothberg <[email protected]>
Mitigates a potential permissions issue. Mirrors Buildah PR containers#4200 and CRI-O PR containers#6159. Signed-off-by: Matthew Heon <[email protected]>
Mitigates a potential permissions issue. Mirrors Buildah PR containers#4200 and CRI-O PR containers#6159. Signed-off-by: Matthew Heon <[email protected]>
Mitigates a potential permissions issue. Mirrors Buildah PR containers#4200 and CRI-O PR containers#6159. Signed-off-by: Matthew Heon <[email protected]>
Mitigates a potential permissions issue. Mirrors Buildah PR containers#4200 and CRI-O PR containers#6159. Cherry-pick conflicts for v3.0.1-rhel branch have been addressed. Signed-off-by: Matthew Heon <[email protected]>
Mitigates a potential permissions issue. Mirrors Buildah PR containers#4200 and CRI-O PR containers#6159. Signed-off-by: Matthew Heon <[email protected]>
Mitigates a potential permissions issue. Mirrors Buildah PR containers#4200 and CRI-O PR containers#6159. Signed-off-by: Matthew Heon <[email protected]> (cherry picked from commit d82a416)
Mitigates a potential permissions issue. Mirrors Buildah PR containers#4200 and CRI-O PR containers#6159. Signed-off-by: Matthew Heon <[email protected]> MH: Backported to v4.0-rhel per RHBZ #2121541 Signed-off-by: Matthew Heon <[email protected]>
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind feature
Description
podman auto-update
does not respect--authfile
originally used to pull image nor originalREGISTRY_AUTH_FILE
. It also does not takeREGISTRY_AUTH_FILE
environment variable manually added to generated systemd services. This makes it impossible to use reliably with gitlab container repositories beloging to particular gitlab instance since all gitlab repisitories are on the same domain as their owning gitlab instance.Steps to reproduce the issue:
Pull at least two images from same registry where different credentials are required for each image.
Start containers from these, generate systemd services, stop original containers and start generated services.
Start
podman auto-update
Describe the results you received:
Describe the results you expected:
(nothing) if no new versions of previously pulled images were pushed, update otherwise.
Additional information you deem important (e.g. issue happens only occasionally):
issue happens all the time.
Output of
podman version
:Output of
podman info --debug
:Package info (e.g. output of
rpm -q podman
orapt list podman
):Additional environment details (AWS, VirtualBox, physical, etc.):
physical
The text was updated successfully, but these errors were encountered: