On Sep 29, 2011, at 7:35 AM, Martijn Grendelman wrote:
> 
> Hi,
> 
> I am currently testing my catalog, that runs fine with 2.6.3, with Puppet
> 2.7.4. Now I am running into a problem, and I wonder why this was 'fixed'
> in Puppet the way it was.
> 
> Please consider http://projects.puppetlabs.com/issues/7888
> 
> In Puppet 2.7.4, there is code [1] that prevents ssh_authorized_key
> resources to contain whitespace in their names. This is a problem, because
> I actually have authorized keys with whitespaces in the comments, and
> these have been added through Puppet without problems.
> 

I also have numerous keys with whitespace in the comments and given that this 
is valid for SSH, I would agree it should work with Puppet. 

> Besides, is there any REAL reason why a key comment (and the resource name
> with it) can't contain any whitespace? I know that one should be careful
> how to specify the resource to prevent it being added repeatedly on every
> catalog run, but apart from that? I have never had any problems with it.
> 

The fix for Issue 7888 doesn't require that the 'name' field not have 
whitespace, only that the 'key' field not have whitespace, so fixing that bug 
and allowing whitespace in comments seem compatible. 

I would suggest opening a bug report that the fix to 7888 was overzealous and 
they should revert the first part of that patch to allow whitespace in the name 
field. 

> If whitespace is permitted from OpenSSH's point of view, shouldn't Puppet
> allow it too, and fix problems like this the right way? Or am I missing
> something?
> 

+1. 

Cheers,

Jonathan

-------------------------------------------------------------------------------
Jonathan Stanton                [email protected]
Spread Group Messaging  www.spread.org
Spread Concepts LLC     www.spreadconcepts.com
-------------------------------------------------------------------------------

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to