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

Issue 98580048: Stop logging jenv

Can't Edit
Can't Publish+Mail
Start Review
Created:
9 years, 11 months ago by natefinch
Modified:
9 years, 11 months ago
Reviewers:
axw, mp+221288
Visibility:
Public.

Description

Stop logging jenv This fixes bug https://bugs.launchpad.net/juju-core/+bug/1289038 We shouldn't log the jenv, because it often contains sensitive information. https://code.launchpad.net/~natefinch/juju-core/053-nolog-jenv/+merge/221288 (do not edit description out of merge proposal)

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -1 line) Patch
A [revision details] View 1 chunk +2 lines, -0 lines 0 comments Download
M environs/open.go View 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 2
natefinch
Please take a look.
9 years, 11 months ago (2014-05-28 20:15:40 UTC) #1
axw
9 years, 11 months ago (2014-05-29 01:24:45 UTC) #2
On 2014/05/28 20:15:40, nate.finch wrote:
> Please take a look.

(Just echoing my reply to juju-dev)

I think it'd be better just to sanitise the output by using the
EnvironProvider.SecretAttrs method. Then we get to see the .jenv minus secrets,
which may be helpful in debugging.

Also, we log the bootstrap script, and that contains the full bootstrap config.
That needs to be sanitised (or suppressed) as well. See RunConfigureScript,
cloudinit/sshinit/configure.go; perhaps change that to Tracef?
Sign in to reply to this message.

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