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
We document that registry credentials are honored from /etc/ostree/auth.json, but it's easy to miss (and needs to highlighted much better) (there's also the general issue with embedding the pull secret in the image itself, cc #22 )
Now when using bootc install to-filesystem with a private registry, we could add bootc install --copy-container-credentials where we go and slurp out ~/.config/containers/auth.json and inject it into the final system as /etc/ostree/auth.json.
And the original podman credentials (injected into ~/.config/containers/auth.json) could have come from e.g. cloud-init (which is arguably more secure than embedding them into the image itself).
It would be great if this would also work for transient /etc, i.e. writing to /var/lib/ostree/auth.json. bootc currently doesnt read from this dir though.
Edit: I guess now that the composefs backend is stable it would be nice if credentials aren't under a seemingly ostree specific dir.
Activity
cgwalters commentedon Mar 25, 2024
xref containers/image#1746 too
yeetypete commentedon Oct 18, 2026
It would be great if this would also work for transient /etc, i.e. writing to
/var/lib/ostree/auth.json. bootc currently doesnt read from this dir though.Edit: I guess now that the composefs backend is stable it would be nice if credentials aren't under a seemingly ostree specific dir.