Merge lp://staging/~rogpeppe/juju-core/311-juju-bootstrap-state-change-password-1.5 into lp://staging/~juju/juju-core/trunk
Proposed by
Roger Peppe
Status: | Work in progress |
---|---|
Proposed branch: | lp://staging/~rogpeppe/juju-core/311-juju-bootstrap-state-change-password-1.5 |
Merge into: | lp://staging/~juju/juju-core/trunk |
Diff against target: |
14443 lines (+5882/-2363) 148 files modified
.lbox.check (+1/-1) charm/charm_test.go (+0/-1) charm/config_test.go (+6/-6) charm/repo.go (+7/-1) charm/repo_test.go (+10/-0) cmd/juju/bootstrap_test.go (+5/-1) cmd/juju/plugin_test.go (+3/-2) cmd/juju/ssh.go (+2/-1) cmd/juju/ssh_test.go (+2/-1) cmd/juju/status.go (+88/-45) cmd/juju/status_test.go (+97/-0) cmd/juju/synctools.go (+102/-6) cmd/juju/synctools_test.go (+127/-22) cmd/jujud/agent.go (+5/-35) cmd/jujud/agent_test.go (+6/-5) cmd/jujud/bootstrap.go (+57/-28) cmd/jujud/bootstrap_test.go (+101/-40) cmd/jujud/machine.go (+2/-2) cmd/jujud/machine_test.go (+31/-12) cmd/jujud/unit_test.go (+1/-0) environs/agent/agent.go (+24/-7) environs/agent/agent_test.go (+60/-22) environs/azure/azure_test.go (+26/-0) environs/azure/certfile.go (+92/-0) environs/azure/certfile_test.go (+66/-0) environs/azure/config.go (+144/-0) environs/azure/config_test.go (+199/-0) environs/azure/environ.go (+112/-17) environs/azure/environ_test.go (+104/-0) environs/azure/environprovider.go (+2/-17) environs/azure/instance.go (+11/-8) environs/cloudinit/cloudinit.go (+11/-1) environs/cloudinit/cloudinit_test.go (+42/-0) environs/config/config.go (+23/-12) environs/config/config_test.go (+70/-97) environs/dummy/environs.go (+70/-38) environs/dummy/storage.go (+6/-1) environs/ec2/ec2.go (+74/-50) environs/ec2/export_test.go (+13/-8) environs/ec2/image_test.go (+1/-1) environs/ec2/live_test.go (+11/-11) environs/ec2/local_test.go (+20/-2) environs/ec2/state.go (+2/-2) environs/instances/image.go (+3/-4) environs/instances/image_test.go (+4/-7) environs/interface.go (+10/-40) environs/jujutest/livetests.go (+59/-43) environs/jujutest/tests.go (+9/-4) environs/maas/environ.go (+23/-19) environs/maas/environ_test.go (+12/-12) environs/maas/environprovider.go (+3/-3) environs/maas/environprovider_test.go (+2/-2) environs/maas/instance.go (+20/-17) environs/maas/state.go (+2/-2) environs/maas/util.go (+3/-3) environs/maas/util_test.go (+5/-4) environs/openstack/export_test.go (+2/-2) environs/openstack/local_test.go (+59/-48) environs/openstack/provider.go (+76/-50) environs/openstack/provider_test.go (+4/-4) environs/openstack/state.go (+2/-2) environs/storage.go (+21/-0) environs/storage_test.go (+45/-0) instance/instance.go (+65/-0) juju/api.go (+2/-2) juju/testing/conn.go (+30/-9) rpc/jsoncodec/codec.go (+31/-17) rpc/jsoncodec/codec_test.go (+104/-10) rpc/jsoncodec/conn.go (+2/-3) rpc/rpc_test.go (+119/-15) rpc/server.go (+53/-37) state/annotator.go (+1/-1) state/api/apiclient.go (+26/-1) state/api/machineagent/state.go (+101/-0) state/api/machineagent/state_test.go (+125/-0) state/api/machiner/machine.go (+6/-6) state/api/machiner/machiner.go (+11/-10) state/api/machiner/machiner_test.go (+12/-52) state/api/params/params.go (+44/-11) state/api/params/params_test.go (+2/-1) state/api/state.go (+11/-13) state/apiserver/api_test.go (+4/-3) state/apiserver/apiserver.go (+6/-1) state/apiserver/common/export_test.go (+11/-0) state/apiserver/common/interfaces.go (+1/-1) state/apiserver/common/password.go (+63/-0) state/apiserver/common/password_test.go (+114/-0) state/apiserver/login_test.go (+7/-6) state/apiserver/machine/agent.go (+74/-0) state/apiserver/machine/agent_test.go (+91/-0) state/apiserver/machine/common_test.go (+66/-0) state/apiserver/machine/machiner.go (+12/-12) state/apiserver/machine/machiner_test.go (+9/-61) state/apiserver/root.go (+22/-13) state/apiserver/server_test.go (+5/-3) state/conn_test.go (+1/-1) state/constraints.go (+1/-1) state/container.go (+15/-3) state/export_test.go (+63/-13) state/initialize_test.go (+4/-4) state/life_test.go (+1/-1) state/machine.go (+30/-22) state/machine_test.go (+148/-159) state/megawatcher_internal_test.go (+7/-6) state/open.go (+3/-1) state/relation.go (+3/-12) state/relationunit.go (+5/-2) state/relationunit_test.go (+10/-17) state/service.go (+26/-18) state/service_test.go (+175/-383) state/settings.go (+2/-2) state/state.go (+163/-46) state/state_test.go (+234/-168) state/tools_test.go (+1/-1) state/unit.go (+87/-76) state/unit_test.go (+201/-194) state/user.go (+2/-2) state/watcher.go (+28/-16) state/watcher/watcher.go (+16/-4) state/watcher/watcher_test.go (+16/-0) state/watcher_test.go (+163/-0) testing/checkers/bool.go (+35/-0) testing/checkers/bool_test.go (+35/-0) testing/checkers/checker_test.go (+27/-0) testing/checkers/file.go (+98/-0) testing/checkers/file_test.go (+97/-0) testing/checkers/relop.go (+52/-0) testing/checkers/relop_test.go (+24/-0) testing/environ.go (+16/-0) testing/locking.go (+71/-0) testing/locking_test.go (+45/-0) testing/mgo.go (+6/-1) utils/password.go (+11/-1) worker/deployer/deployer_test.go (+8/-0) worker/firewaller/firewaller.go (+20/-20) worker/firewaller/firewaller_test.go (+36/-37) worker/provisioner/broker.go (+4/-4) worker/provisioner/provisioner_task.go (+10/-10) worker/provisioner/provisioner_test.go (+5/-5) worker/resumer/export_test.go (+16/-0) worker/resumer/resumer.go (+71/-0) worker/resumer/resumer_test.go (+57/-0) worker/runner.go (+75/-50) worker/runner_test.go (+109/-9) worker/uniter/filter.go (+51/-5) worker/uniter/filter_test.go (+39/-10) worker/uniter/modes.go (+2/-2) worker/uniter/uniter_test.go (+27/-0) |
To merge this branch: | bzr merge lp://staging/~rogpeppe/juju-core/311-juju-bootstrap-state-change-password-1.5 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Juju Engineering | Pending | ||
Review via email: mp+165675@code.staging.launchpad.net |
Description of the change
cmd/jujud: do not change password
This prepares the way for the password to be changed
when connecting to the API instead of the state.
We also change bootstrap-state to change the machine
agent's password, so the bootstrap machine agent
won't *need* to change its password, and hence won't
need a connection to the at-that-
API server.
Until agents are actually connecting to the API,
juju will be a tiny bit less secure, so I plan on
waiting until that's ready to land before landing this
branch.
To post a comment you must log in.
Reviewers: mp+165675_ code.launchpad. net,
Message:
Please take a look.
Description:
cmd/jujud: do not change password
This prepares the way for the password to be changed
when connecting to the API instead of the state.
We also change bootstrap-state to change the machine time-nonexisten t
agent's password, so the bootstrap machine agent
won't *need* to change its password, and hence won't
need a connection to the at-that-
API server.
Until agents are actually connecting to the API,
juju will be a tiny bit less secure, so I plan on
waiting until that's ready to land before landing this
branch.
https:/ /code.launchpad .net/~rogpeppe/ juju-core/ 311-juju- bootstrap- state-change- password- 1.5/+merge/ 165675
(do not edit description out of merge proposal)
Please review this at https:/ /codereview. appspot. com/9738043/
Affected files: bootstrap_ test.go agent_test. go bootstrap. go bootstrap_ test.go machine_ test.go unit_test. go agent/agent. go agent/agent_ test.go cloudinit/ cloudinit. go dummy/environs. go conn.go
A [revision details]
M cmd/juju/
M cmd/jujud/agent.go
M cmd/jujud/
M cmd/jujud/
M cmd/jujud/
M cmd/jujud/
M cmd/jujud/
M environs/
M environs/
M environs/
M environs/
M juju/testing/