Issue #2175 has been updated by John Warburton.

Assignee deleted (Francois Deppierraz)
Keywords set to 2.6.x

We have just run into this on puppet 2.6.4 with a space accidentally inserted 
into the middle of a key. Should puppet abort/warn if spaces are detected in a 
key?

I've removed Francois from the assignee - it seems there has been little 
activity from him in the last 18 months

We retrieve our keys for certain accounts via extlookup, and the source file 
had typo spaces in it

    appkey,ssh-rsa,"blah blah blah","app@host"

from this code 

        $app_authorized_key=extlookup("appkey")
        $keytype=$app_authorized_key[0]
        $key=$app_authorized_key[1]
        $comment=$app_authorized_key[2]

        ssh_authorized_key {"$keytype $comment":
            user => appuser,
            ensure  => present,
            name    => $comment,
            type    => $keytype,
            key     => $key,
        }

generates multiple key entries - a new one each run:

    ssh-rsa blah blah blah app@host
    ssh-rsa blah blah blah app@host
    ssh-rsa blah blah blah app@host

Rather than
    ssh-rsa blahblahblah app@host

----------------------------------------
Bug #2175: ssh_authorized_key: error with trailing space
https://projects.puppetlabs.com/issues/2175

Author: Cedric Jeanneret
Status: Accepted
Priority: Normal
Assignee: 
Category: ssh
Target version: 
Affected Puppet version: 0.24.7
Keywords: 2.6.x
Branch: 


Hello,

I just discover a little bug with this type:
when key string has a trailing space (in my case at the end of it), puppet 
keeps on adding the key in authorized_keys file (resulting "some" duplicated 
lines...). Removing this space solved my problem.
Maybe there's an error while matching complete string... ?

See you.

C.


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en.

Reply via email to