Description of problem: Having backslash in the supplied SSH public key, leaves ignition with an invalid JSON: "passwd": { "users": [ { "name": "core", "passwordHash": "!", "sshAuthorizedKeys": [ "ssh-rsa ... gmx\024358758@ALEX-P50"], "groups": [ "sudo" ]} ] }, How reproducible: 100% Actual results: Host cannot proceed to discovery. RHCOS tries to load the ignition and fails to continue. Expected results: We should escape any public SSH key, or deny it from being accepted on UI+API.
From Moran: that’s the key i’m seeing - ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCyC2quOGfz9JFNtIvp4jX2acQVPGBneZHmrBYE439lRIXKURob3o20haJeKB/iu691qWBZJSPvl+wNnWZ3zylRqrFMwDZ6500fnNtE8CoCcvCugggIl5QMQ49U4FiEp2Ax1uvh5R1Y8dYb71riQo+1CCMp59UOZkhVr5auAXzldPmjlMcCzo2GzvYIqhy35dbFwyegioEkUaXNo8KnBQqPIVqTyjC6nYkyvEAS/NRxmjwpi12qdmWtgV2G7AHNVodrGFNYwI9HH+kn9YAj1gOFzmNg2a2nQBvZzs8PyboKh7D+A04uL1o/zh5C3Nm2kRMSwtdyBMH35quRok9h8RZ/ gmx\024358758@ALEX-P50
https://coreos.slack.com/archives/CUPJTHQ5P/p1622631180183700
Verified on Staging v1.0.24.1 "passwd": { "users": [ {"groups":["sudo"],"name":"core","passwordHash":"!","sshAuthorizedKeys":["ssh-rsa *************************** /s5mL7IZ16qHmH8VSjLKUBw5t5352qgR foo\\bar"]} ] },
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Moderate: OpenShift Container Platform 4.9.0 bug fix and security update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2021:3759