Bug #1753
ssh_authorized_key chokes on keys without a comment
| Status: | Duplicate | Start date: | 11/17/2008 | |
|---|---|---|---|---|
| Priority: | Normal | Due date: | ||
| Assignee: | % Done: | 0% |
||
| Category: | ssh | |||
| Target version: | 0.24.7 | |||
| Affected Puppet version: | 0.24.5 | Branch: | ||
| Keywords: | ||||
| Votes: | 0 |
Description
We have a user with an ssh key that doesn’t have a comment. (Ie, the format of the line is just “ssh-rsa
err: Got an uncaught exception of type ArgumentError: Field ‘name’ is required
This appears to be a perfectly legitimate syntax for that line — for example, one of the examples in http://www.openbsd.org/cgi-bin/man.cgi?query=sshd&sektion=8 doesn’t have a comment — and openssh doesn’t seem to mind, so I don’t think puppet should mind, either.
Related issues
History
Updated by James Turnbull over 3 years ago
- Category set to ssh
- Status changed from Unreviewed to Accepted
- Assignee set to Brice Figureau
- Target version set to 0.24.7
Updated by Brice Figureau over 3 years ago
- Status changed from Accepted to Duplicate
I’m afraid it is unfixable for the moment.
The comment is used as the namevar (title) of the ressource. If there is none, then that means the resource has no title which is impossible in Puppet.
This is a variation of bug #1531, hence I changed the status to duplicate.