-
Notifications
You must be signed in to change notification settings - Fork 59
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
F33: updated crypto defaults: SSH tooling may fail #699
Comments
Thanks for the report. From the logs, it sounds like sshd is rejecting the key. |
I'm almost certain this is related to the Fedora Change adopting tighter security settings by default. We've encountered this when originally moving to Fedora 33 and worked around it a few times (see details in coreos/coreos-assembler#1772). For terraform (golang based) you're probably bumping into golang/go#37278 (comment). Golang needs to update their library. I need to publish a FAQ entry for this we can point people to. |
Yeah, with a Sounds like the longer term plan is waiting for that Go change to land, getting a Go release out, and then https://github.com/hashicorp/terraform-provider-null updating and releasing a new plugin (responsible for these connections). |
We're going to keep in line with the Fedora defaults on this one so let's attempt to solve this with documentation: coreos/fedora-coreos-docs#220 |
Sounds fair to me. Thanks for the docs on this! |
@dustymabe Can you please explain why I am able to log in to Fedora CoreOS via ssh application using an ssh-rsa key that is clearly deprecated. I can provision it with Terraform docker but I can't use other forms of Terraform ssh transactions? I mean it either is deprecated or is not, why does it work partially? Thanks |
Hey @adriangabura - I'm not a crypto expert, but ssh-rsa keys weren't deprecated altogether, just the key signature algorithm. We have a FAQ entry on the topic which covers some of the details: https://docs.fedoraproject.org/en-US/fedora-coreos/faq/#_why_does_ssh_stop_working_after_upgrading_to_fedora_33 |
Oh so SHA2 isn't deprecated then? Hmm but in sshd -T ssh-rsa means rsa-sha1? I saw in sshd -T that rsa-sha2 is available Good god, this is relate to this dumb issue. Also this naming scheme gave me trouble ssh-rsa where it's not clear what refers to what, this is like that old adage in programming - name your variables properly Also I don't understand this Sorry for wasting your time like this, I am just trying to avoid people who will use Hashicorp ecosystem with Fedora CoreOS hours and hours of headaches. |
Go's |
Nice thank you for your explanation! |
Describe the bug
Provisioning an host with FCOS testing (33.20201201.2.1), manual ssh'ing works (uses ssh-agent), but connections via Terraform automation now fail (also uses ssh-agent).
Repeating with FCOS 32.20201104.3.0 (stable), this problem doesn't appear.
Reproduction steps
Expected behavior
A clear and concise description of what you expected to happen.
Actual behavior
Manually sshing to a how we can observe failing attempts.
System details
Ignition config
Additional information
Add any other information about the problem here.
The text was updated successfully, but these errors were encountered: