You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bootc install does not use my podman credentials #436
My image is pushed in a private registry tag (in quay.io). However bootc cannot access my repository. I used podman login quay.io to login on the host, which allows podman to pull the container image, but for some reason that I cannot understand bootc wants to access it again:
# sudo podman run --rm --privileged --pid=host --security-opt label=type:unconfined_t -v /:/target -v /var/lib/containers:/var/lib/containers quay.io/swalter/tuesday:1.0 bootc install to-filesystem --karg=console=ttyS0,115200n8 --replace=alongside /target
Trying to pull quay.io/swalter/tuesday:1.0...
Getting image source signatures
Copying blob 123a23fee02f done
Copying blob 123a23fee02f done
... snip ...
Copying blob f76da783556e done
Copying config 4787122538 done
Writing manifest to image destination
ERROR Installing to filesystem: Verifying fetch: Creating importer: Failed to invoke skopeo proxy method OpenImage: remote error: reading manifest 1.0 in quay.io/swalter/tuesday: unauthorized: access to the requested resource is not authorized
#428 tracks importing credentials in this case; what do you think of that one?
I would expect that bootc install doesn't need to know the registry. What if the image was local, and not pushed to a registry?
There is --skip-fetch-check for this use case. But the fetch check is exactly to avoid this foot-gun. Would improving the error message help? Something like linking to the documentation? (I expanded #430 recently related to this too).
I stumbled upon this issue, it's not obvious why bootc doesn't use the same files as podman to organize authentication.
As further argument, I'd like to add that the flightctl-agent follows podman there when it comes to updating the OS, so that you need to hold and maintain twice the same information for basically the same purpose.
To add to this it seems logical that if you were to pull the OS image into container storage IE podman pull $image then use containers-storage as the transport any auth needed would come from container auth.
Activity
stefwalter commentedon Mar 26, 2024
I would expect that
bootc installdoesn't need to know the registry. What if the image was local, and not pushed to a registry?cgwalters commentedon Mar 26, 2024
#428 tracks importing credentials in this case; what do you think of that one?
There is
--skip-fetch-checkfor this use case. But the fetch check is exactly to avoid this foot-gun. Would improving the error message help? Something like linking to the documentation? (I expanded #430 recently related to this too).stefwalter commentedon Mar 26, 2024
Why is this a foot-gun? Why would fetch check be an error? Should it only be a warning by default?
cgwalters commentedon Mar 26, 2024
Because it's really easy to fall into the trap of failing to configure the fetch credentials inside one's image, right?
henrywang commentedon Mar 27, 2024
I usually save QUAY_SECRET into
/etc/ostree/auth.jsonand copy auth.json into container image when build image.ericzolf commentedon Feb 20, 2025
I stumbled upon this issue, it's not obvious why bootc doesn't use the same files as podman to organize authentication.
As further argument, I'd like to add that the flightctl-agent follows podman there when it comes to updating the OS, so that you need to hold and maintain twice the same information for basically the same purpose.
hexfusion commentedon Feb 21, 2025
To add to this it seems logical that if you were to pull the OS image into container storage IE
podman pull $imagethen use containers-storage as the transport any auth needed would come from container auth.If the image is pulled why do we still need to fetch 2 layers?
cgwalters commentedon Feb 21, 2025
See containers/image#1746
Yes, I agree it is painful, but there is a rationale.
https://docs.fedoraproject.org/en-US/bootc/container-pull-secrets/#_unifying_bootc_and_podman_credentials has one suggestion.
cgwalters commentedon Feb 21, 2025
containers-storage aka
/var/lib/containersis disjoint from the bootc-owned storage. See https://containers.github.io/bootc/filesystem-storage.html and #20 for related topics. So those two layers were copied from/var/lib/containers/storageto/sysroot/ostree(and unfortunately without even using reflinks, for that see also podman-container-tools/container-libs#144 ).