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

Issue 6855054: state: add CACert to Info.

Can't Edit
Can't Publish+Mail
Start Review
Created:
5 years, 1 month ago by rog
Modified:
5 years, 1 month ago
Reviewers:
mp+134642
Visibility:
Public.

Description

state: add CACert to Info. We will need to know the CA certificate when connecting to the state. We don't make it mandatory when connecting to the state yet, because that requires quite a few more changes, and this is a reasonable stepping stone along the way. https://code.launchpad.net/~rogpeppe/juju-core/149-state-info-rootcert/+merge/134642 Requires: https://code.launchpad.net/~rogpeppe/juju-core/146-cmd-bootstrap-use-juju/+merge/134437 (do not edit description out of merge proposal)

Patch Set 1 #

Patch Set 2 : state: add RootCertPEM to Info. #

Patch Set 3 : state: add RootCertPEM to Info. #

Total comments: 16

Patch Set 4 : state: add RootCertPEM to Info. #

Patch Set 5 : state: add RootCertPEM to Info. #

Patch Set 6 : state: add RootCertPEM to Info. #

Patch Set 7 : state: add RootCertPEM to Info. #

Patch Set 8 : state: add RootCertPEM to Info. #

Patch Set 9 : state: add RootCertPEM to Info. #

Patch Set 10 : state: add RootCertPEM to Info. #

Patch Set 11 : state: add RootCertPEM to Info. #

Total comments: 1

Patch Set 12 : state: add CACert to Info. #

Patch Set 13 : state: add CACert to Info. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+189 lines, -153 lines) Patch
A [revision details] View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -0 lines 0 comments Download
M cmd/juju/main_test.go View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -2 lines 0 comments Download
M cmd/jujud/agent.go View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +15 lines, -0 lines 0 comments Download
M cmd/jujud/bootstrap_test.go View 1 2 3 4 5 6 7 8 9 10 11 6 chunks +13 lines, -6 lines 0 comments Download
M environs/bootstrap_test.go View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +7 lines, -7 lines 0 comments Download
M environs/cloudinit/cloudinit.go View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +6 lines, -6 lines 0 comments Download
M environs/cloudinit/cloudinit_test.go View 1 2 3 4 5 6 7 8 9 10 11 6 chunks +9 lines, -9 lines 0 comments Download
M environs/config/authkeys.go View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +5 lines, -5 lines 0 comments Download
M environs/config_test.go View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +5 lines, -5 lines 0 comments Download
M environs/dummy/config_test.go View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -2 lines 0 comments Download
M environs/dummy/environs.go View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +4 lines, -1 line 0 comments Download
M environs/dummy/environs_test.go View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -2 lines 0 comments Download
M environs/ec2/config_test.go View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -2 lines 0 comments Download
M environs/ec2/ec2.go View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +21 lines, -19 lines 0 comments Download
M environs/ec2/live_test.go View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -2 lines 0 comments Download
M environs/ec2/local_test.go View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +3 lines, -3 lines 0 comments Download
M environs/interface.go View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +3 lines, -3 lines 0 comments Download
M environs/jujutest/livetests.go View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -2 lines 0 comments Download
M environs/jujutest/tests.go View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +6 lines, -6 lines 0 comments Download
M environs/open_test.go View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -2 lines 0 comments Download
M environs/openstack/config_test.go View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -2 lines 0 comments Download
M environs/openstack/local_test.go View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -2 lines 0 comments Download
M environs/openstack/provider.go View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -1 line 0 comments Download
M environs/tools_test.go View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -1 line 0 comments Download
M juju/conn_test.go View 1 2 3 4 5 6 7 8 9 10 11 7 chunks +17 lines, -17 lines 0 comments Download
M juju/testing/conn.go View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +4 lines, -3 lines 0 comments Download
M state/conn_test.go View 1 2 3 2 chunks +1 line, -5 lines 0 comments Download
M state/open.go View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +6 lines, -0 lines 0 comments Download
M state/settings_test.go View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +10 lines, -1 line 0 comments Download
M state/state_test.go View 1 2 3 4 5 6 7 8 9 10 11 16 chunks +23 lines, -25 lines 0 comments Download
M state/unit_test.go View 1 2 3 2 chunks +1 line, -4 lines 0 comments Download
M testing/cert.go View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +7 lines, -7 lines 0 comments Download
M worker/uniter/uniter_test.go View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 12
rog
Please take a look.
5 years, 1 month ago (2012-11-16 12:06:01 UTC) #1
jameinel
LGTM I'm not sure about the specifics for whether adding RootCertPEM to StateInfo is the ...
5 years, 1 month ago (2012-11-18 09:56:18 UTC) #2
niemeyer
https://codereview.appspot.com/6855054/diff/4001/environs/ec2/ec2.go File environs/ec2/ec2.go (right): https://codereview.appspot.com/6855054/diff/4001/environs/ec2/ec2.go#newcode251 environs/ec2/ec2.go:251: // TODO(rog) add RootCertPEM from bootstrap arguments. Shouldn't we ...
5 years, 1 month ago (2012-11-19 12:50:10 UTC) #3
rog
https://codereview.appspot.com/6855054/diff/4001/environs/ec2/ec2.go File environs/ec2/ec2.go (right): https://codereview.appspot.com/6855054/diff/4001/environs/ec2/ec2.go#newcode251 environs/ec2/ec2.go:251: // TODO(rog) add RootCertPEM from bootstrap arguments. On 2012/11/19 ...
5 years, 1 month ago (2012-11-19 13:23:42 UTC) #4
rog
Please take a look. https://codereview.appspot.com/6855054/diff/4001/state/export_test.go File state/export_test.go (right): https://codereview.appspot.com/6855054/diff/4001/state/export_test.go#newcode24 state/export_test.go:24: func TestingStateInfo() *Info { On ...
5 years, 1 month ago (2012-11-20 14:35:32 UTC) #5
niemeyer
https://codereview.appspot.com/6855054/diff/4001/environs/interface.go File environs/interface.go (right): https://codereview.appspot.com/6855054/diff/4001/environs/interface.go#newcode140 environs/interface.go:140: // empty. On 2012/11/19 12:50:10, niemeyer wrote: > Why ...
5 years, 1 month ago (2012-11-20 22:26:19 UTC) #6
rog
Assuming these issues are addressed (yes, the StateInfo method can just return the root cert ...
5 years, 1 month ago (2012-11-21 00:22:55 UTC) #7
rog
Please take a look. https://codereview.appspot.com/6855054/diff/4001/environs/interface.go File environs/interface.go (right): https://codereview.appspot.com/6855054/diff/4001/environs/interface.go#newcode140 environs/interface.go:140: // empty. On 2012/11/20 22:26:19, ...
5 years, 1 month ago (2012-11-23 11:12:51 UTC) #8
rog
Please take a look.
5 years, 1 month ago (2012-11-23 11:18:27 UTC) #9
rog
Please take a look.
5 years, 1 month ago (2012-11-23 11:23:39 UTC) #10
niemeyer
LGTM. I suggest simplifying the field name, though: https://codereview.appspot.com/6855054/diff/8020/state/open.go File state/open.go (right): https://codereview.appspot.com/6855054/diff/8020/state/open.go#newcode32 state/open.go:32: CACertPEM ...
5 years, 1 month ago (2012-11-26 19:59:02 UTC) #11
rog
5 years, 1 month ago (2012-11-27 10:17:28 UTC) #12
*** Submitted:

state: add CACert to Info.

We will need to know the CA certificate when connecting to the state.

We don't make it mandatory when connecting to the state yet, because
that requires quite a few more changes, and this is a reasonable stepping
stone along the way.

R=john.meinel, niemeyer
CC=
https://codereview.appspot.com/6855054
Sign in to reply to this message.

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