Skip to content
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

install: Add --copy-container-credentials #428

Open
cgwalters opened this issue Mar 25, 2024 · 1 comment
Open

install: Add --copy-container-credentials #428

cgwalters opened this issue Mar 25, 2024 · 1 comment
Assignees
Labels
area/install Issues related to `bootc install` enhancement New feature or request triaged This looks like a valid issue

Comments

@cgwalters
Copy link
Collaborator

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.

This way we get a flow where we

  • podman login on the original host
  • bootc install to-filesystem --copy-container-credentials

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).

@cgwalters cgwalters added area/install Issues related to `bootc install` enhancement New feature or request triaged This looks like a valid issue labels Mar 25, 2024
@cgwalters
Copy link
Collaborator Author

xref containers/image#1746 too

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/install Issues related to `bootc install` enhancement New feature or request triaged This looks like a valid issue
Projects
None yet
Development

No branches or pull requests

2 participants