Bug 1151824
| Summary: | cloud-init does not disable ECDSA keys for root | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Richard Chan <rc556677> |
| Component: | cloud-init | Assignee: | Garrett Holmstrom <gholms> |
| Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | high | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 20 | CC: | apevec, gholms, Jan.van.Eldik, mattdm, p, shardy, s, walters |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | cloud-init-0.7.6-3.fc22 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2015-03-12 17:49:34 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Richard Chan
2014-10-12 10:20:43 UTC
This test patch fixes the problem for the three Fedora ECDSA curves.
I don't think it is viable when/if many more ECs are allowed by the legal team.
Maybe the logic should check:
Instead of
ssh_util:312: if toks[0] not in VALID_KEY_TYPES:
or no string in VALID_KEY_TYPES is a prefix of toks[0]; since "ecdsa" is in VALID_KEY_TYPES this will catch ssh keys of ecdsa-sha2-*.
diff -u -r cloudinit.orig/ssh_util.py cloudinit/ssh_util.py
--- cloudinit.orig/ssh_util.py 2014-10-12 18:24:43.044000000 +0800
+++ cloudinit/ssh_util.py 2014-10-12 18:25:46.987000000 +0800
@@ -31,7 +31,7 @@
DEF_SSHD_CFG = "/etc/ssh/sshd_config"
# taken from openssh source key.c/key_type_from_name
-VALID_KEY_TYPES = ("rsa", "dsa", "ssh-rsa", "ssh-dss", "ecdsa",
+VALID_KEY_TYPES = ("rsa", "dsa", "ssh-rsa", "ssh-dss", "ecdsa", "ecdsa-sha2-nistp256", "ecdsa-sha2-nistp384", "ecdsa-sha2-nistp521",
"ssh-rsa-cert-v00", "ssh-dss-cert-v00",
"ssh-rsa-cert-v00", "ssh-dss-cert-v00",
"ssh-rsa-cert-v01", "ssh-dss-cert-v01",
This should be fixed in cloud-init-0.7.6-3.fc22. cloud-init-0.7.6-4.20140218bzr1060.fc22 will be pushed shortly with some major changes, so it may be worth testing against that instead. Update: cloud-init-0.7.6-4.20140218bzr1060.fc22 isn't going to make it into F22 due to bug 1194577. If you're testing rawhide it will appear there, but otherwise feel free to go ahead and test cloud-init-0.7.6-3.fc22. Sorry about the confusion. The launchpad reference in this bug doesn't work - does anyone know if this was filed upstream? I can't find it if it was. |