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

Issue 37570043: Add a credentials service (Closed)

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

Description

Add a credentials service A new crdentials service provides 2 APIs: - AuthorisedKeys - WatchAuthorisedKeys These will be used by a new machine agent worker to update the local copy of ~/.ssh/authorised_keys I added also a AuthStateManager API to compliment the AuthEnvironManager API. I want the ability to query ssh keys to be limited to machines running the StateManager job, which is not guaranteed to be the same machine as used for provisioning. https://code.launchpad.net/~wallyworld/juju-core/ssh-key-watcher/+merge/197814 Requires: https://code.launchpad.net/~wallyworld/juju-core/ssh-auth-keys/+merge/197813 (do not edit description out of merge proposal)

Patch Set 1 #

Patch Set 2 : Add a credentials service #

Patch Set 3 : Add a credentials service #

Total comments: 3

Patch Set 4 : Add a credentials service #

Total comments: 7

Patch Set 5 : Add a credentials service #

Total comments: 12

Patch Set 6 : Add a credentials service #

Unified diffs Side-by-side diffs Delta from patch set Stats (+508 lines, -24 lines) Patch
A [revision details] View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
A state/api/keyupdater/authorisedkeys.go View 1 2 3 1 chunk +69 lines, -0 lines 0 comments Download
A state/api/keyupdater/authorisedkeys_test.go View 1 2 3 4 1 chunk +81 lines, -0 lines 0 comments Download
A state/api/keyupdater/package_test.go View 1 2 3 1 chunk +14 lines, -0 lines 0 comments Download
M state/api/state.go View 1 2 3 2 chunks +6 lines, -0 lines 0 comments Download
M state/apiserver/agent/agent_test.go View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M state/apiserver/common/interfaces.go View 1 1 chunk +4 lines, -0 lines 0 comments Download
M state/apiserver/deployer/deployer_test.go View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
A state/apiserver/keyupdater/authorisedkeys.go View 1 2 3 4 5 1 chunk +136 lines, -0 lines 0 comments Download
A state/apiserver/keyupdater/authorisedkeys_test.go View 1 2 3 4 1 chunk +142 lines, -0 lines 0 comments Download
A state/apiserver/keyupdater/package_test.go View 1 2 3 1 chunk +14 lines, -0 lines 0 comments Download
M state/apiserver/machine/common_test.go View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M state/apiserver/provisioner/provisioner_test.go View 1 2 3 4 7 chunks +9 lines, -10 lines 0 comments Download
M state/apiserver/root.go View 1 2 3 3 chunks +17 lines, -0 lines 0 comments Download
M state/apiserver/root_test.go View 1 1 chunk +1 line, -0 lines 0 comments Download
M state/apiserver/testing/fakeauthorizer.go View 1 2 chunks +13 lines, -8 lines 0 comments Download
M state/apiserver/uniter/uniter_test.go View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M state/apiserver/upgrader/upgrader_test.go View 1 2 3 4 1 chunk +0 lines, -2 lines 0 comments Download

Messages

Total messages: 14
wallyworld
Please take a look.
11 years, 4 months ago (2013-12-05 03:53:37 UTC) #1
wallyworld
Please take a look.
11 years, 4 months ago (2013-12-06 00:35:55 UTC) #2
wallyworld
Please take a look.
11 years, 4 months ago (2013-12-06 01:21:16 UTC) #3
thumper
LGTM - with one import tweak https://codereview.appspot.com/37570043/diff/40001/state/apiserver/credentials/authorisedkeys.go File state/apiserver/credentials/authorisedkeys.go (right): https://codereview.appspot.com/37570043/diff/40001/state/apiserver/credentials/authorisedkeys.go#newcode11 state/apiserver/credentials/authorisedkeys.go:11: "strings" standard libraries ...
11 years, 4 months ago (2013-12-06 03:37:46 UTC) #4
rog
LGTM modulo the below https://codereview.appspot.com/37570043/diff/40001/state/api/credentials/authorisedkeys.go File state/api/credentials/authorisedkeys.go (right): https://codereview.appspot.com/37570043/diff/40001/state/api/credentials/authorisedkeys.go#newcode4 state/api/credentials/authorisedkeys.go:4: package credentials I'm not sure ...
11 years, 4 months ago (2013-12-06 08:55:23 UTC) #5
fwereade
record of live chat: we should separate auth from implementation, as we do in the ...
11 years, 4 months ago (2013-12-09 10:37:18 UTC) #6
wallyworld
Please take a look. https://codereview.appspot.com/37570043/diff/40001/state/apiserver/credentials/authorisedkeys.go File state/apiserver/credentials/authorisedkeys.go (right): https://codereview.appspot.com/37570043/diff/40001/state/apiserver/credentials/authorisedkeys.go#newcode11 state/apiserver/credentials/authorisedkeys.go:11: "strings" On 2013/12/06 03:37:46, thumper ...
11 years, 4 months ago (2013-12-09 11:42:13 UTC) #7
fwereade
Couple of questions -- I won't be present at the standup, but please discuss it ...
11 years, 4 months ago (2013-12-11 09:21:47 UTC) #8
wallyworld
https://codereview.appspot.com/37570043/diff/60001/state/apiserver/keyupdater/authorisedkeys_test.go File state/apiserver/keyupdater/authorisedkeys_test.go (right): https://codereview.appspot.com/37570043/diff/60001/state/apiserver/keyupdater/authorisedkeys_test.go#newcode139 state/apiserver/keyupdater/authorisedkeys_test.go:139: {Error: apiservertesting.NotFoundError("machine 42")}, On 2013/12/11 09:21:48, fwereade wrote: > ...
11 years, 4 months ago (2013-12-11 09:40:20 UTC) #9
wallyworld
https://codereview.appspot.com/37570043/diff/60001/state/apiserver/keyupdater/authorisedkeys_test.go File state/apiserver/keyupdater/authorisedkeys_test.go (right): https://codereview.appspot.com/37570043/diff/60001/state/apiserver/keyupdater/authorisedkeys_test.go#newcode139 state/apiserver/keyupdater/authorisedkeys_test.go:139: {Error: apiservertesting.NotFoundError("machine 42")}, On 2013/12/11 09:40:20, wallyworld wrote: > ...
11 years, 4 months ago (2013-12-11 10:58:09 UTC) #10
wallyworld
Please take a look.
11 years, 4 months ago (2013-12-12 05:13:56 UTC) #11
fwereade
Couple of quick KeyUpdater implementation comments, going to do a pass over the rest in ...
11 years, 4 months ago (2013-12-12 09:34:10 UTC) #12
wallyworld
Please take a look. https://codereview.appspot.com/37570043/diff/80001/state/apiserver/keyupdater/authorisedkeys.go File state/apiserver/keyupdater/authorisedkeys.go (right): https://codereview.appspot.com/37570043/diff/80001/state/apiserver/keyupdater/authorisedkeys.go#newcode56 state/apiserver/keyupdater/authorisedkeys.go:56: getCanRead, err := api.getCanRead() On ...
11 years, 4 months ago (2013-12-12 11:04:59 UTC) #13
jameinel
11 years, 4 months ago (2013-12-12 12:19:11 UTC) #14
So the file is called .ssh/authorized-keys and not .ssh/authorised-keys

I'm usually pretty lax about British vs American spelling, but in this case we
do map onto something else that is spelled in a particular way.
Sign in to reply to this message.

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