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

Issue 6811095: environs/cloudinit: add cert/private key

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 6 months ago by rog
Modified:
11 years, 5 months ago
Reviewers:
mp+133516
Visibility:
Public.

Description

environs/cloudinit: add cert/private key First stage in enabling TLS. https://code.launchpad.net/~rogpeppe/juju-core/138-cloudinit-cert/+merge/133516 (do not edit description out of merge proposal)

Patch Set 1 #

Patch Set 2 : environs/cloudinit: add cert/private key #

Total comments: 4

Patch Set 3 : environs/cloudinit: add cert/private key #

Patch Set 4 : environs/cloudinit: add cert/private key #

Patch Set 5 : environs/cloudinit: add cert/private key #

Total comments: 8

Patch Set 6 : environs/cloudinit: add cert/private key #

Patch Set 7 : environs/cloudinit: add cert/private key #

Unified diffs Side-by-side diffs Delta from patch set Stats (+69 lines, -0 lines) Patch
A [revision details] View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M environs/cloudinit/cloudinit.go View 1 2 3 4 5 4 chunks +16 lines, -0 lines 0 comments Download
M environs/cloudinit/cloudinit_test.go View 1 2 3 4 5 4 chunks +27 lines, -0 lines 0 comments Download
M environs/ec2/ec2.go View 1 2 3 4 5 1 chunk +24 lines, -0 lines 0 comments Download

Messages

Total messages: 7
rog
Please take a look.
11 years, 6 months ago (2012-11-08 16:42:44 UTC) #1
dave_cheney.net
LGTM. https://codereview.appspot.com/6811095/diff/1005/environs/cloudinit/cloudinit.go File environs/cloudinit/cloudinit.go (right): https://codereview.appspot.com/6811095/diff/1005/environs/cloudinit/cloudinit.go#newcode120 environs/cloudinit/cloudinit.go:120: shquote(string(cfg.ServerCertAndKey)), serverCertFile)) the cert file should be chmod'd ...
11 years, 6 months ago (2012-11-09 00:16:39 UTC) #2
rog
Please take a look. https://codereview.appspot.com/6811095/diff/1005/environs/cloudinit/cloudinit.go File environs/cloudinit/cloudinit.go (right): https://codereview.appspot.com/6811095/diff/1005/environs/cloudinit/cloudinit.go#newcode120 environs/cloudinit/cloudinit.go:120: shquote(string(cfg.ServerCertAndKey)), serverCertFile)) On 2012/11/09 00:16:39, ...
11 years, 5 months ago (2012-11-09 12:32:23 UTC) #3
rog
Please take a look.
11 years, 5 months ago (2012-11-12 12:41:55 UTC) #4
TheMue
Mostly LGTM, only two cosmetical comments. https://codereview.appspot.com/6811095/diff/7001/environs/cloudinit/cloudinit.go File environs/cloudinit/cloudinit.go (right): https://codereview.appspot.com/6811095/diff/7001/environs/cloudinit/cloudinit.go#newcode35 environs/cloudinit/cloudinit.go:35: ServerCertAndKey []byte Even ...
11 years, 5 months ago (2012-11-14 13:39:04 UTC) #5
niemeyer
LGTM https://codereview.appspot.com/6811095/diff/7001/environs/cloudinit/cloudinit.go File environs/cloudinit/cloudinit.go (right): https://codereview.appspot.com/6811095/diff/7001/environs/cloudinit/cloudinit.go#newcode35 environs/cloudinit/cloudinit.go:35: ServerCertAndKey []byte On 2012/11/14 13:39:05, TheMue wrote: > ...
11 years, 5 months ago (2012-11-14 13:46:36 UTC) #6
rog
11 years, 5 months ago (2012-11-14 14:14:08 UTC) #7
*** Submitted:

environs/cloudinit: add cert/private key

First stage in enabling TLS.

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

https://codereview.appspot.com/6811095/diff/7001/environs/cloudinit/cloudinit.go
File environs/cloudinit/cloudinit.go (right):

https://codereview.appspot.com/6811095/diff/7001/environs/cloudinit/cloudinit...
environs/cloudinit/cloudinit.go:35: ServerCertAndKey []byte
On 2012/11/14 13:46:36, niemeyer wrote:
> On 2012/11/14 13:39:05, TheMue wrote:
> > Even if it may get long I would like a State... prefix, like in StateServer
> > above.
> 
> Agreed.. maybe StateServerPEM

Done.

https://codereview.appspot.com/6811095/diff/7001/environs/cloudinit/cloudinit...
environs/cloudinit/cloudinit.go:88: const serverCertFile =
"/var/lib/juju/server-cert.pem"
On 2012/11/14 13:46:36, niemeyer wrote:
> s/serverCertFile/pemPath/
> s/server-cert/server/
> 
> This is not just a cert, and that makes a big difference (private vs. not
> private).

Done.

https://codereview.appspot.com/6811095/diff/7001/environs/cloudinit/cloudinit...
environs/cloudinit/cloudinit.go:294: return fmt.Errorf("missing certificate")
On 2012/11/14 13:46:36, niemeyer wrote:
> "missing state server PEM"

Done.
Sign in to reply to this message.

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