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

Issue 6782119: environs: change Bootstrap cert generation

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

Description

environs: change Bootstrap cert generation Bootstrap now gets its certificates from the environment, and stores them by calling a function. https://code.launchpad.net/~rogpeppe/juju-core/164-bootstrap-generate/+merge/136222 (do not edit description out of merge proposal)

Patch Set 1 #

Patch Set 2 : environs: change Bootstrap cert generation #

Total comments: 15

Patch Set 3 : environs: change Bootstrap cert generation #

Patch Set 4 : environs: change Bootstrap cert generation #

Total comments: 2

Patch Set 5 : environs: change Bootstrap cert generation #

Patch Set 6 : environs: change Bootstrap cert generation #

Unified diffs Side-by-side diffs Delta from patch set Stats (+260 lines, -293 lines) Patch
A [revision details] View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M cmd/juju/bootstrap.go View 1 chunk +1 line, -28 lines 0 comments Download
M cmd/juju/bootstrap_test.go View 2 chunks +6 lines, -4 lines 0 comments Download
M environs/bootstrap.go View 1 2 3 4 5 7 chunks +86 lines, -100 lines 0 comments Download
M environs/bootstrap_test.go View 1 2 3 4 5 7 chunks +131 lines, -145 lines 0 comments Download
M environs/ec2/local_test.go View 1 2 3 4 5 1 chunk +5 lines, -1 line 0 comments Download
M environs/jujutest/livetests.go View 1 2 3 4 5 2 chunks +6 lines, -2 lines 0 comments Download
M environs/jujutest/tests.go View 1 2 3 4 5 3 chunks +6 lines, -6 lines 0 comments Download
M juju/conn_test.go View 1 2 3 4 5 8 chunks +12 lines, -6 lines 0 comments Download
M juju/testing/conn.go View 1 2 3 4 5 2 chunks +5 lines, -1 line 0 comments Download

Messages

Total messages: 6
rog
Please take a look.
12 years, 4 months ago (2012-11-26 17:00:06 UTC) #1
dave_cheney.net
LGTM https://codereview.appspot.com/6782119/diff/2001/juju/conn_test.go File juju/conn_test.go (right): https://codereview.appspot.com/6782119/diff/2001/juju/conn_test.go#newcode192 juju/conn_test.go:192: func panicWrite(name string, data []byte) error { This ...
12 years, 4 months ago (2012-11-27 00:51:02 UTC) #2
niemeyer
A few initial comments: https://codereview.appspot.com/6782119/diff/2001/environs/bootstrap.go File environs/bootstrap.go (right): https://codereview.appspot.com/6782119/diff/2001/environs/bootstrap.go#newcode36 environs/bootstrap.go:36: log.Printf("got cert and key: %v, ...
12 years, 4 months ago (2012-11-27 16:21:28 UTC) #3
rog
Please take a look. https://codereview.appspot.com/6782119/diff/2001/environs/bootstrap.go File environs/bootstrap.go (right): https://codereview.appspot.com/6782119/diff/2001/environs/bootstrap.go#newcode36 environs/bootstrap.go:36: log.Printf("got cert and key: %v, ...
12 years, 4 months ago (2012-11-27 16:50:21 UTC) #4
niemeyer
This is great. LGTM with one trivial suggestion: https://codereview.appspot.com/6782119/diff/2002/environs/bootstrap.go File environs/bootstrap.go (right): https://codereview.appspot.com/6782119/diff/2002/environs/bootstrap.go#newcode126 environs/bootstrap.go:126: return ...
12 years, 4 months ago (2012-11-27 17:01:23 UTC) #5
rog
12 years, 4 months ago (2012-11-27 17:42:21 UTC) #6
*** Submitted:

environs: change Bootstrap cert generation

Bootstrap now gets its certificates from the environment,
and stores them by calling a function.

R=dfc, niemeyer
CC=
https://codereview.appspot.com/6782119

https://codereview.appspot.com/6782119/diff/2002/environs/bootstrap.go
File environs/bootstrap.go (right):

https://codereview.appspot.com/6782119/diff/2002/environs/bootstrap.go#newcod...
environs/bootstrap.go:126: return nil, nil, fmt.Errorf("more than one
certificate for CA")
On 2012/11/27 17:01:23, niemeyer wrote:
> "generated CA key pair must have 1 certificate, not %d"
> 
> (zero would also blow that up)

done, although zero can never actually happen in fact.
Sign in to reply to this message.

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