magnum/magnum/drivers
Johannes Grassler 0bb0d6486d Fix CVE-2016-7404
This commit addresses multiple potential vulnerabilities in
Magnum. It makes the following changes:

* Permissions for /etc/sysconfig/heat-params inside Magnum
  created instances are tightened to 0600 (used to be 0755).
* Certificate retrieval is modified to work without the need
  for a Keystone trust.
* The cluster's Keystone trust id is only passed into
  instances for clusters where that is actually needed. This
  prevents the trustee user from consuming the trust in cases
  where it is not needed.
* The configuration setting trust/cluster_user_trust (False by
  default) is introduced. It needs to be explicitely enabled
  by the cloud operator to allow clusters that need the
  trust_id to be passed into instances to work. Without this
  setting, attempts to create such clusters will fail.

Please note, that none of these changes apply to existing
clusters. They will have to be deleted and rebuilt to benefit
from these changes.

(cherry picked from commit e93d82e8b3)

Changes for backport:

* Moved cluster_user_trust setting to magnum/common/keystone.py
* Resolved merge conflicts.
* Fixed unit tests with configuration overrides.

Change-Id: I408d845ee4fd00d5bcd1e90f0a78f2bba3f2a57a
2017-02-22 19:50:02 +01:00
..
common Fix CVE-2016-7404 2017-02-22 19:50:02 +01:00
k8s_coreos_v1 Fix CVE-2016-7404 2017-02-22 19:50:02 +01:00
k8s_fedora_atomic_v1 Make cinder volume optional 2017-02-21 13:14:07 -05:00
k8s_fedora_ironic_v1 Make cinder volume optional 2017-02-21 13:14:07 -05:00
mesos_ubuntu_v1 Fix CVE-2016-7404 2017-02-22 19:50:02 +01:00
swarm_fedora_atomic_v1 Fix CVE-2016-7404 2017-02-22 19:50:02 +01:00
__init__.py Bay driver implementation 2016-07-05 22:30:31 +02:00