Red Hat Bugzilla – Bug 830475
trailing whitespace not stripped from SSH key descriptions
Last modified: 2012-07-19 20:39:16 EDT
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Paste your SSH public key on the prefs page, including a trailing newline
2. Run a job
SSH key description contains the trailing newline. As a result, the kickstart will have something like this:
echo ssh-rsa AAAA... dcallagh@galangal
which doesn't work.
Trailing whitespace is stripped from the key description. In fact, the entire SSH key should probably only be allowed to be one line (containing no newlines).
Also the kickstart snippet should wrap the public key in '' and/or escape all shell metacharacters.
*** Bug 835798 has been marked as a duplicate of this bug. ***
On Gerrit: http://gerrit.beaker-project.org/1178
Verified warning on newline in pubkey; whitespace tripped in DB; and quoted in ks
Beaker 0.9.1 has been released.