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

Issue 13919043: apiserver/provisioner: Mask out secret env attrs (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+187577, fwereade
Visibility:
Public.

Description

apiserver/provisioner: Mask out secret env attrs This changes the provisioner API EnvironConfig() call to mask out any secret attributes before returning the config to non-manager agents. The environment manager agents still get everything. This closes of a security issue with LXC provisioner having access to the environment configuration and its secrets via the API. https://code.launchpad.net/~dimitern/juju-core/145-apiserver-provisioner-blank-secrets/+merge/187577 Requires: https://code.launchpad.net/~dimitern/juju-core/144-environs-secretattrs-strings/+merge/187566 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+38 lines, -1 line) Patch
A [revision details] View 1 chunk +2 lines, -0 lines 0 comments Download
M state/apiserver/provisioner/provisioner.go View 2 chunks +19 lines, -1 line 1 comment Download
M state/apiserver/provisioner/provisioner_test.go View 1 chunk +17 lines, -0 lines 0 comments Download

Messages

Total messages: 3
dimitern
Please take a look.
10 years, 7 months ago (2013-09-25 18:08:49 UTC) #1
fwereade
LGTM, but please verify it live. https://codereview.appspot.com/13919043/diff/1/state/apiserver/provisioner/provisioner.go File state/apiserver/provisioner/provisioner.go (right): https://codereview.appspot.com/13919043/diff/1/state/apiserver/provisioner/provisioner.go#newcode166 state/apiserver/provisioner/provisioner.go:166: // but the ...
10 years, 7 months ago (2013-09-25 18:39:31 UTC) #2
dimitern
10 years, 7 months ago (2013-09-26 10:56:41 UTC) #3
After live testing on EC2 it turned out my previous CL wasn't supplying correct
addresses of state and API server. So I'm closing this, and will repropose it
after I fix that first.
Sign in to reply to this message.

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