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

reinstall: warn if no users with authorized ssh keys are found #1092

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

omertuc
Copy link
Contributor

@omertuc omertuc commented Feb 7, 2025

No description provided.

@omertuc omertuc added the area/system-reinstall-bootc Issues related to system-reinstall-botoc label Feb 7, 2025
let root_key = &prompt::get_root_key()?;

if root_key.is_none() {
tracing::warn!("NO USERS WITH AUTHORIZED SSH KEYS FOUND! You might not be able to log in after reinstalling the system.");
Copy link
Collaborator

Choose a reason for hiding this comment

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

Well, but this is where we could also detect if e.g. cloud-init or other tools are in the target image right?

Also, something strongly related to this is I think we probably are going to need to scope creep this tool slightly into supporting non-cloud flows; I've seen people doing that already with to-existing-root - basically the scenario here is:

  • Install Fedora Server (or whatever), have a physical console
  • Want to replace it w/bootc image

In this flow we'd need to support a root password, not ssh keys. One general purpose option here would be to support running systemd-firstboot. Or of course, we could just try to automatically scrape a root password in addition too.

I kind of like that latter one as an expedient option - in clouds we typically won't have a root password so it'd be a no-op.


We can track all of the above as an issue, but how about just slightly softening the tone here, and also making this a yes/no continue question instead of just a warning?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/system-reinstall-bootc Issues related to system-reinstall-botoc
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants