Skip to content

Conversation

@germag
Copy link
Collaborator

@germag germag commented Oct 30, 2024

For simplicity, we were using the ssh key from podman-machine, but it has the inconvenience that this key is ed25519 and does not work in FIPS mode.

Let's generate and inject an RSA ssh key that it's FIPS approved.

This PR also removes --no-creds because it was broken, making the run and ssh command to fail. Since no-one complained we can safely remove it to avoid confuse the user. We can bring it back if someone ask for that functionality in the future.

Fixes #68

The --no-creds breaks the ssh command. Ssh will unconditionally use
the ssh key path from the VM json config, passing --no-creds sets
the path to "".

Since we don't have any open issue about it, let's remove this
option until someone ask for it.

Signed-off-by: German Maglione <gmaglione@redhat.com>
For simplicity, we were using the ssh key from podman-machine,
but it has the inconvenience that this key is ed25519 and does
not work in FIPS mode.

Let's generate and inject an RSA ssh key that it's FIPS approved.

Signed-off-by: German Maglione <gmaglione@redhat.com>
Copy link

@matusmarhefka matusmarhefka left a comment

Choose a reason for hiding this comment

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

Thanks, I tested it with FIPS mode and it works!

@germag germag requested a review from cgwalters November 5, 2024 09:31
@germag germag merged commit 4c2708c into bootc-dev:main Nov 5, 2024
7 checks passed
@germag germag deleted the Add-rsa-ssh-key branch November 5, 2024 13:18
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.

FIPS mode doesn't allow ssh-ed25519 used by podman-bootc

3 participants