magnum/magnum
Johannes Grassler 2d4e617a52 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-24 17:47:14 +00:00
..
api Fix: InvalidParameterValue Exception not raised correctly 2017-02-22 05:54:36 +00:00
cmd Merge "Rename Bay DB, Object, and internal usage to Cluster" 2016-09-09 00:23:25 +00:00
common Fix CVE-2016-7404 2017-02-24 17:47:14 +00:00
conductor Fix CVE-2016-7404 2017-02-24 17:47:14 +00:00
db Fix CVE-2016-7404 2017-02-24 17:47:14 +00:00
drivers Fix CVE-2016-7404 2017-02-24 17:47:14 +00:00
hacking Add i18n translation for Log messages 2016-08-15 11:44:08 +05:30
locale/ja/LC_MESSAGES Remove ReplicationController object 2016-08-10 17:56:48 +02:00
objects Merge "Restrict magnum service name" 2016-09-16 08:09:15 +00:00
service Rename Bay DB, Object, and internal usage to Cluster 2016-09-08 13:01:12 -07:00
servicegroup Cleanup MagnumService Object usage 2016-01-29 15:39:28 +08:00
tests Fix CVE-2016-7404 2017-02-24 17:47:14 +00:00
__init__.py Initial commit from github (squashed) 2014-11-18 09:23:37 -05:00
i18n.py Setup for translation 2015-05-24 03:13:55 +00:00
opts.py Rename Bay DB, Object, and internal usage to Cluster 2016-09-08 13:01:12 -07:00
version.py Remove coding:utf-8 2015-08-03 23:28:22 +08:00