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

tree-wide: Update SSH key injection #252

Merged
merged 1 commit into from
Apr 12, 2024
Merged

Conversation

cgwalters
Copy link
Contributor

This is an improved reference example that fixes two things:

  • Error out if SSHPUBKEY is not provided or empty (via set -eu)
  • Also reads any keys in the traditional location (i.e. /root/.ssh) so that keys injected via other mechanisms (e.g. cloud-init, podman-bootc CLI) also work

(Are we at the point where we should have a script that generates
these Containerfiles?)

This is an improved reference example that fixes two things:

- Error out if SSHPUBKEY is not provided or empty (via `set -eu`)
- Also reads any keys in the traditional location (i.e. `/root/.ssh`)
  so that keys injected via other mechanisms (e.g. cloud-init,
  podman-bootc CLI) also work

(Are we at the point where we should have a script that generates
 these Containerfiles?)

Signed-off-by: Colin Walters <[email protected]>
Copy link
Collaborator

@sallyom sallyom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@sallyom sallyom merged commit 9c17467 into containers:main Apr 12, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants