trove/integration/scripts/files/elements/fedora-guest/install.d
Tomasz Nowak 043ad08237 Configure guestagent on Ubuntu guest images to use CA certificates
Currently there is no way to provide SSL configuration for Trove, so it
fails e.g. when uploading backups to a secured Swift endpoint. This
patch sets an environment variable (REQUESTS_CA_BUNDLE [1]) understood
by Requests library for Python, so all HTTPS calls done by trove-guest
service will trust the provided CAs.

For Ubuntu Xenial and Fedora a systemd drop-in sets this environment
variable for trove-guest service, so it uses Ubuntu's/Fedora's system
certificate store to validate server certificates.

For Ubuntu Trusty the upstart script is modified to build and use a
bundle file from certificates in /usr/local/share/ca-certificates,
because Requests library doesn't support CA directories in such old
Python versions.

On Ubuntu systems the custom certificates are taken from
/usr/local/share/ca-certificates; please use PEM format, .crt extension
and call update-ca-certificates.

On Fedora systems custom certificates can be put in
/usr/share/pki/ca-trust-source/anchors; please use PEM format, .pem
extension and call update-ca-trust.

[1] http://docs.python-requests.org/en/master/user/advanced/#ssl-cert-verification

Change-Id: I0025e7c72fa2d863ae9540941956b1ab63bcc636
2017-11-09 09:29:16 +00:00
..
15-trove-dep beginning to change trove-integration 2016-10-10 20:30:05 -04:00
20-etc Merge trove-integration into trove 2016-10-09 07:14:25 -04:00
21-use-fedora-certificates Configure guestagent on Ubuntu guest images to use CA certificates 2017-11-09 09:29:16 +00:00
50-user Merge trove-integration into trove 2016-10-09 07:14:25 -04:00
62-ssh-key Merge trove-integration into trove 2016-10-09 07:14:25 -04:00