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

Issue 68070044: Implement rsyslog TLS support (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 2 months ago by axw
Modified:
10 years, 2 months ago
Reviewers:
mp+207889, thumper
Visibility:
Public.

Description

Implement rsyslog TLS support This changes the rsyslog configuration we generate to use TLS. We install the rsyslog-gnutls package and generate a new CA cert, server cert and key specifically for rsyslog. This completely changes the way rsyslog configuration is managed. Now, instead of writing at bootstrap time and having an upgrade step, we have a worker that writes the syslog config whenever syslog parameters change. The state server will generate certificates and propagate the CA cert to other agents via environ config. There are some other miscellaneous changes: - we now use reliable forwarding, as otherwise the machine agent and unit agent will restart rsyslog while log messages are buffered causing message loss - dedicated upgrades for rsyslog are redundant and removed. The new worker upgrades machine and unit agent rsyslog automatically. - syslog-port can now be changed, and must be changed to work around the privilege drop race in rsyslog 5.x (this is the sole motivation) - the ryslog config path is no longer populated into agent.conf, and we no longer use the existing value to perform cleanups. The worker is now responsible for cleaning up the config file on tear-down. - the local provider symlinks machine-0.log into /var/log/juju$namespace so that we do not need any configuration other than the existing namespace to determine log location TODO(axw) tests in worker/rsyslog TODO(axw) tests in state/api/rsyslog TODO(axw) tests in state/apiserver/rsyslog Fixes lp:1281071 https://code.launchpad.net/~axwalk/juju-core/lp1281071-rsyslog-tls/+merge/207889 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 11

Patch Set 2 : Implement rsyslog TLS support #

Unified diffs Side-by-side diffs Delta from patch set Stats (+662 lines, -331 lines) Patch
A [revision details] View 1 1 chunk +2 lines, -0 lines 0 comments Download
M agent/agent.go View 1 1 chunk +0 lines, -1 line 0 comments Download
M cmd/juju/environment_test.go View 1 1 chunk +0 lines, -1 line 0 comments Download
M cmd/jujud/machine.go View 1 7 chunks +16 lines, -10 lines 0 comments Download
M cmd/jujud/machine_test.go View 1 3 chunks +27 lines, -0 lines 0 comments Download
M cmd/jujud/unit.go View 1 2 chunks +4 lines, -0 lines 0 comments Download
M container/testing/common.go View 1 1 chunk +0 lines, -1 line 0 comments Download
M environs/cloudinit.go View 1 5 chunks +0 lines, -10 lines 0 comments Download
M environs/cloudinit/cloudinit.go View 1 8 chunks +0 lines, -40 lines 0 comments Download
M environs/cloudinit/cloudinit_test.go View 1 22 chunks +13 lines, -33 lines 0 comments Download
M environs/cloudinit_test.go View 1 4 chunks +0 lines, -5 lines 0 comments Download
M environs/config/config.go View 1 7 chunks +20 lines, -4 lines 0 comments Download
M environs/config/config_test.go View 1 2 chunks +0 lines, -9 lines 0 comments Download
M log/syslog/config.go View 1 7 chunks +46 lines, -14 lines 0 comments Download
M log/syslog/config_test.go View 1 2 chunks +12 lines, -0 lines 0 comments Download
M log/syslog/testing/syslogconf.go View 1 3 chunks +21 lines, -4 lines 0 comments Download
M provider/azure/customdata_test.go View 1 2 chunks +0 lines, -2 lines 0 comments Download
M provider/local/config.go View 1 1 chunk +0 lines, -1 line 0 comments Download
M provider/local/environ.go View 1 2 chunks +9 lines, -6 lines 0 comments Download
M provider/local/environprovider.go View 1 2 chunks +6 lines, -7 lines 0 comments Download
M state/address.go View 1 2 chunks +0 lines, -2 lines 0 comments Download
M state/api/params/params.go View 1 2 chunks +5 lines, -2 lines 0 comments Download
M state/api/provisioner/provisioner_test.go View 1 1 chunk +0 lines, -1 line 0 comments Download
A state/api/rsyslog/package_test.go View 1 1 chunk +14 lines, -0 lines 0 comments Download
A state/api/rsyslog/rsyslog.go View 1 1 chunk +44 lines, -0 lines 0 comments Download
A state/api/rsyslog/rsyslog_test.go View 1 1 chunk +33 lines, -0 lines 0 comments Download
M state/api/state.go View 1 2 chunks +6 lines, -0 lines 0 comments Download
M state/apiserver/deployer/deployer.go View 1 1 chunk +0 lines, -1 line 0 comments Download
M state/apiserver/provisioner/provisioner.go View 1 1 chunk +0 lines, -1 line 0 comments Download
M state/apiserver/provisioner/provisioner_test.go View 1 1 chunk +0 lines, -1 line 0 comments Download
M state/apiserver/root.go View 1 2 chunks +12 lines, -0 lines 0 comments Download
A state/apiserver/rsyslog/package_test.go View 1 1 chunk +14 lines, -0 lines 0 comments Download
A state/apiserver/rsyslog/rsyslog.go View 1 1 chunk +56 lines, -0 lines 0 comments Download
A state/apiserver/rsyslog/rsyslog_test.go View 1 1 chunk +48 lines, -0 lines 0 comments Download
M upgrades/export_test.go View 1 1 chunk +0 lines, -2 lines 0 comments Download
M upgrades/rsyslogconf.go View 1 1 chunk +0 lines, -50 lines 0 comments Download
M upgrades/rsyslogconf_test.go View 1 1 chunk +0 lines, -72 lines 0 comments Download
M upgrades/steps118.go View 1 1 chunk +0 lines, -10 lines 0 comments Download
M upgrades/steps118_test.go View 1 1 chunk +1 line, -3 lines 0 comments Download
M worker/deployer/export_test.go View 1 1 chunk +2 lines, -3 lines 0 comments Download
M worker/deployer/simple.go View 1 4 chunks +1 line, -18 lines 0 comments Download
M worker/deployer/simple_test.go View 1 3 chunks +4 lines, -13 lines 0 comments Download
M worker/provisioner/kvm-broker.go View 1 1 chunk +0 lines, -1 line 0 comments Download
M worker/provisioner/lxc-broker.go View 1 1 chunk +0 lines, -1 line 0 comments Download
M worker/provisioner/lxc-broker_test.go View 1 1 chunk +1 line, -2 lines 0 comments Download
A worker/rsyslog/worker.go View 1 1 chunk +245 lines, -0 lines 0 comments Download

Messages

Total messages: 6
axw
Please take a look.
10 years, 2 months ago (2014-02-24 10:30:08 UTC) #1
thumper
We already need to rewrite the syslog config files as part of the 1.18 upgrade ...
10 years, 2 months ago (2014-02-24 21:48:28 UTC) #2
axw
I'll start on a new worker, and do the certificate stuff at the same time. ...
10 years, 2 months ago (2014-02-25 02:08:50 UTC) #3
axw
Please take a look.
10 years, 2 months ago (2014-02-25 14:22:14 UTC) #4
axw
On 2014/02/25 14:22:14, axw wrote: > Please take a look. This CL has jumped the ...
10 years, 2 months ago (2014-02-25 14:27:20 UTC) #5
axw
10 years, 2 months ago (2014-02-27 05:40:18 UTC) #6
Message was sent while issue was closed.
On 2014/02/25 14:27:20, axw wrote:
> On 2014/02/25 14:22:14, axw wrote:
> > Please take a look.
> 
> This CL has jumped the shark, I guess, but I wanted to get it out there to get
> feedback.
> If the direction is good I will try to pare it back, keeping the existing
> environs/cloudinit and related code, and remove all that in a followup.

This is superseded by https://codereview.appspot.com/68930045
Sign in to reply to this message.

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