Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1886)

Issue 44420044: Make auth keys processing more robust (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 4 months ago by wallyworld
Modified:
10 years, 4 months ago
Reviewers:
mp+199732, thumper, rog
Visibility:
Public.

Description

Make auth keys processing more robust Auth keys are stored in the environment as a string. A common utility function is used to extract the keys from this string so that empty lines and comments are ignored. https://code.launchpad.net/~wallyworld/juju-core/more-robust-sshkey-processing/+merge/199732 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 5

Patch Set 2 : Make auth keys processing more robust #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+59 lines, -26 lines) Patch
A [revision details] View 1 1 chunk +2 lines, -0 lines 0 comments Download
M cloudinit/options.go View 2 chunks +4 lines, -8 lines 0 comments Download
M environs/bootstrap/bootstrap.go View 2 chunks +2 lines, -1 line 0 comments Download
M state/apiserver/keymanager/keymanager.go View 4 chunks +5 lines, -11 lines 0 comments Download
M state/apiserver/keyupdater/authorisedkeys.go View 2 chunks +2 lines, -4 lines 0 comments Download
M utils/ssh/authorisedkeys.go View 1 3 chunks +25 lines, -2 lines 1 comment Download
M utils/ssh/authorisedkeys_test.go View 1 1 chunk +19 lines, -0 lines 0 comments Download

Messages

Total messages: 5
wallyworld
Please take a look.
10 years, 4 months ago (2013-12-20 00:34:49 UTC) #1
thumper
https://codereview.appspot.com/44420044/diff/1/environs/bootstrap/bootstrap.go File environs/bootstrap/bootstrap.go (right): https://codereview.appspot.com/44420044/diff/1/environs/bootstrap/bootstrap.go#newcode29 environs/bootstrap/bootstrap.go:29: // Apparently this can never happen, so it's not ...
10 years, 4 months ago (2013-12-20 01:09:04 UTC) #2
wallyworld
Please take a look. https://codereview.appspot.com/44420044/diff/1/utils/ssh/authorisedkeys.go File utils/ssh/authorisedkeys.go (right): https://codereview.appspot.com/44420044/diff/1/utils/ssh/authorisedkeys.go#newcode42 utils/ssh/authorisedkeys.go:42: if len(strings.Trim(key, " \r")) == ...
10 years, 4 months ago (2013-12-20 01:45:09 UTC) #3
thumper
LGTM
10 years, 4 months ago (2013-12-20 01:46:30 UTC) #4
rog
10 years, 4 months ago (2013-12-20 09:31:03 UTC) #5
LGTM with one thought below

https://codereview.appspot.com/44420044/diff/20001/utils/ssh/authorisedkeys.go
File utils/ssh/authorisedkeys.go (right):

https://codereview.appspot.com/44420044/diff/20001/utils/ssh/authorisedkeys.g...
utils/ssh/authorisedkeys.go:42: key = strings.Trim(key, " \r")
strings.TrimSpace ?
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b