magnum/magnum/tests/unit/common
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
..
cert_manager Delete certs when deleting bay 2016-06-30 12:40:16 +05:30
x509 Make 'signing csr' accept Unicode CA Private key 2016-06-21 10:55:23 +09:00
__init__.py Make room for functional tests 2015-04-02 12:25:43 -04:00
test_clients.py Pass some common cert related arguments to clients 2016-06-27 17:48:16 +00:00
test_context.py Use assertIn and assertNotIn 2015-11-02 22:35:04 +01:00
test_docker_utils.py Remove container object 2016-08-01 16:16:20 +02:00
test_exception.py Remove redundant exceptions code 2016-05-25 09:45:51 +01:00
test_k8s_manifest.py Removed old k8s python client 2015-11-10 23:19:04 +00:00
test_keystone.py Fix CVE-2016-7404 2017-02-22 19:50:02 +01:00
test_safeutils.py Make room for functional tests 2015-04-02 12:25:43 -04:00
test_service.py Improve unit test coverage for common/service.py 2016-08-12 00:42:52 +00:00
test_short_id.py Do not use translate to delete chars 2016-02-29 14:34:07 +08:00
test_urlfetch.py Fix order of arguments in assertEqual 2015-10-10 18:11:18 +08:00
test_utils.py Remove redundant utils code 2016-05-27 10:50:26 +01:00
test_yamlutils.py Fix order of arguments in assertEqual 2015-10-10 18:11:18 +08:00