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

If a node is being rebuilt, the host key becomes invalid, preventing initializing the node #642

Open
digimer opened this issue Apr 12, 2024 · 2 comments
Assignees
Labels
bug normal normal priority

Comments

@digimer
Copy link
Member

digimer commented Apr 12, 2024

If the host key has changed, the attempt to initialize fails with a credentials error;

image

When the key is bad, it should say as much, and a link to remove the offending key.

[root@an-striker01 ~]# ssh root@192.168.10.2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that a host key has just been changed.
The fingerprint for the ED25519 key sent by the remote host is
SHA256:8/PcmgLT1ExWSxzzjNC/TfJxLXPEyUii9W852S2tY5I.
Please contact your system administrator.
Add correct host key in /root/.ssh/known_hosts to get rid of this message.
Offending ED25519 key in /root/.ssh/known_hosts:12
Host key for 192.168.10.2 has changed and you have requested strict checking.
Host key verification failed.
@digimer digimer added bug normal normal priority labels Apr 12, 2024
@digimer digimer added this to the 3.0 GA - blockers milestone Apr 12, 2024
@digimer
Copy link
Member Author

digimer commented Apr 12, 2024

Perhaps this should be a different issue. If so, split it off.

When there is a bad key, there should be an alert somewhere visible, like a yellow ! mark or similar, that alerts the user.

image

@digimer
Copy link
Member Author

digimer commented Apr 17, 2024

Don't close this until we can confirm that issue #500

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug normal normal priority
Projects
None yet
Development

No branches or pull requests

2 participants