|
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)
Total comments: 11
|
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
|
Total messages: 6
|