magnum/magnum/tests/unit/common
Johannes Grassler 0c7625ff4b 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)

Change-Id: I643d408cde0d6e30812cf6429fb7118184793400
2017-02-22 19:22:10 +01:00
..
cert_manager Replace naked exceptions in barbican_cert_manager 2016-10-17 15:35:15 -04:00
x509 Remove unnecessary setUp and tearDown 2016-09-20 11:59:08 +08:00
__init__.py Make room for functional tests 2015-04-02 12:25:43 -04:00
test_clients.py Fix compatibility with novaclient 7.0.0 2017-01-20 20:06:54 +05:30
test_context.py Fix the incorrect initialization of context roles 2017-01-07 23:35:08 -06:00
test_docker_utils.py Centralize config option: docker section 2016-09-22 05:57:31 +00:00
test_exception.py Remove redundant exceptions code 2016-05-25 09:45:51 +01:00
test_keystone.py Fix CVE-2016-7404 2017-02-22 19:22:10 +01:00
test_profiler.py Integrate OSProfiler in Magnum 2017-01-24 07:43:31 +07:00
test_rpc.py Integrate OSProfiler in Magnum 2017-01-24 07:43:31 +07: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 Use function is_valid_mac from oslo.utils 2016-10-21 13:41:38 +08:00