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

Issue 14036045: cmd/jujud; others: Disable setting mongo passwds (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 7 months ago by dimitern
Modified:
10 years, 7 months ago
Reviewers:
mp+188118, jameinel, fwereade
Visibility:
Public.

Description

cmd/jujud; others: Disable setting mongo passwds This disables settings mongo passwords for agents. The unit agent is totally cut off from state now, not only it doesn't connect, but it doesn't have a password do to so. The machine agent is a bit more complicated: only machines with JobHostUnits won't have a mongo password or connection to state. Due to firewaller not using the API yet, JobManageEnviron also has to have state connection (and mongo password) for now. We don't do anything yet to reset existing passwords in mongo, but this will come in the following releases. https://code.launchpad.net/~dimitern/juju-core/149-disable-mongo-passwords-for-api-agents/+merge/188118 (do not edit description out of merge proposal)

Patch Set 1 #

Patch Set 2 : cmd/jujud; others: Disable setting mongo passwds #

Total comments: 10

Patch Set 3 : cmd/jujud; others: Disable setting mongo passwds #

Total comments: 8

Patch Set 4 : cmd/jujud; others: Disable setting mongo passwds #

Patch Set 5 : cmd/jujud; others: Disable setting mongo passwds #

Patch Set 6 : cmd/jujud; others: Disable setting mongo passwds #

Total comments: 2

Patch Set 7 : cmd/jujud; others: Disable setting mongo passwds #

Unified diffs Side-by-side diffs Delta from patch set Stats (+252 lines, -118 lines) Patch
A [revision details] View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M agent/agent.go View 1 2 3 4 5 6 2 chunks +0 lines, -14 lines 0 comments Download
M agent/agent_test.go View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
A agent/export_test.go View 1 2 3 4 5 6 1 chunk +14 lines, -0 lines 0 comments Download
M cmd/jujud/agent.go View 1 chunk +0 lines, -1 line 0 comments Download
M cmd/jujud/agent_test.go View 1 2 3 4 1 chunk +16 lines, -0 lines 0 comments Download
M cmd/jujud/bootstrap_test.go View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M cmd/jujud/machine.go View 1 2 3 4 5 6 5 chunks +24 lines, -27 lines 0 comments Download
M cmd/jujud/machine_test.go View 1 2 3 4 5 6 4 chunks +87 lines, -25 lines 0 comments Download
M cmd/jujud/unit_test.go View 1 2 3 2 chunks +12 lines, -2 lines 0 comments Download
M state/api/agent/machine_test.go View 1 1 chunk +4 lines, -8 lines 0 comments Download
M state/api/params/constants.go View 1 2 3 1 chunk +8 lines, -0 lines 0 comments Download
M state/apiserver/common/password.go View 1 2 3 3 chunks +33 lines, -11 lines 0 comments Download
M state/apiserver/common/password_test.go View 5 chunks +36 lines, -9 lines 0 comments Download
M state/machine.go View 1 2 3 4 5 6 1 chunk +15 lines, -6 lines 0 comments Download
M worker/provisioner/provisioner_test.go View 2 chunks +0 lines, -13 lines 0 comments Download

Messages

Total messages: 10
dimitern
Please take a look.
10 years, 7 months ago (2013-09-27 17:41:50 UTC) #1
dimitern
Please take a look.
10 years, 7 months ago (2013-09-27 17:45:16 UTC) #2
jameinel
Really happy this is landing. Great work overall. I have some thoughts, but nothing that ...
10 years, 7 months ago (2013-09-29 05:31:54 UTC) #3
dimitern
Please take a look. https://codereview.appspot.com/14036045/diff/4001/agent/agent.go File agent/agent.go (right): https://codereview.appspot.com/14036045/diff/4001/agent/agent.go#newcode356 agent/agent.go:356: func (c *configInternal) Password() string ...
10 years, 7 months ago (2013-09-30 09:08:22 UTC) #4
fwereade
A few minor comments, and an overwhelming stress that jujud seems to be more complex ...
10 years, 7 months ago (2013-10-01 07:42:08 UTC) #5
dimitern
Please take a look.
10 years, 7 months ago (2013-10-01 08:25:58 UTC) #6
dimitern
Please take a look. https://codereview.appspot.com/14036045/diff/12001/agent/agent.go File agent/agent.go (right): https://codereview.appspot.com/14036045/diff/12001/agent/agent.go#newcode132 agent/agent.go:132: newPassword string On 2013/10/01 07:42:08, ...
10 years, 7 months ago (2013-10-01 08:48:55 UTC) #7
dimitern
Please take a look.
10 years, 7 months ago (2013-10-01 08:53:21 UTC) #8
fwereade
LGTM, thanks very much :). Please do try to break this live before you land ...
10 years, 7 months ago (2013-10-01 09:09:35 UTC) #9
dimitern
10 years, 7 months ago (2013-10-01 10:48:38 UTC) #10
Please take a look.

https://codereview.appspot.com/14036045/diff/38001/agent/export_test.go
File agent/export_test.go (right):

https://codereview.appspot.com/14036045/diff/38001/agent/export_test.go#newcode8
agent/export_test.go:8: return confInternal.password()
On 2013/10/01 09:09:35, fwereade wrote:
> you know, we could even move the body of that method in here

Done.
Sign in to reply to this message.

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