-
Notifications
You must be signed in to change notification settings - Fork 23.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
decode('base64') add a carriage return #5262
Comments
And Zart on irc gave me |
@rgarrigue how is sillage_key.content populated in your case? |
@jctanner : with the key's hash, without ssh-rsa header and comment. You've the debug on this gist, comment 3: https://gist.github.com/rgarrigue/7925446. Don't pay attention on hash difference between comments, I was testing on 2 differents VMs. |
Well, figured I could start looking through the issue history to see if I can fix something, sorry if I am reviving an old issue or similar. From what I can tell, this issue is not reproducible since v1.5.0. I also think that the decode call was not actually appending anything. This was tested via copy module combined with content parameter. The behaviour of authorized_key module probably got a bit smarter afterwards, so now it trims the key itself (only based on experimentation, not from reading the code). Perhaps the issue should be closed? |
closing as per above |
Hi guys
I spent half of the morning trying to get a slurp / authorized_key to work. I'm now 99% sure it's about a carriage return added by decode('base64')
This works for me
key="{{sillage_key.content.decode('base64').rstrip('\r\n')}}"
This doesn't
key="{{sillage_key.content.decode('base64')}}"
Here is the -vvvv output
Note the new line between lines 3 and 4 that shouldn't be.
I got the issue with both devel and 1.4.1. Found the rstrip fix on 1.4.1, didn' t tried it on devel.
The text was updated successfully, but these errors were encountered: