-
Notifications
You must be signed in to change notification settings - Fork 38
Fix TOFU ssh key prompt in OpenOnDemand web shell for IPA hosts #864
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
Conversation
|
could we set it to always be inventory_hostname? |
Hmm, that's a good question. There was a reason we changed it to localhost but I cannot remember what. I will do some git blaming ... |
Back in 2023 (35ba408) it was made configurable, from the ffirst login host |
I think it was probably just that when we made it configurable, localhost was guaranteed to be resolvable (but we could have just moved the api_address bit into the variable, so I'm not sure why we swapped). But |
elelaysh
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good to go
The appliance defaults the host to use for the Open Ondemand web shell to
localhost, because it defaults theopenondemandgroup to thelogingroup. However for FreeIPA-enroled hosts, ssh key checks are done against an IPA-controlled known hosts file (which does not include localhost) so the keyscan task is not effective.However as the IPA-controlled known hosts file does include all IPA hosts, by changing the web shell host to an actual hostname, the user does not have to accept the key on first use.