patrole/patrole_tempest_plugin
Felipe Monteiro 3ab2c357e8 Dynamic policy file discovery
Patrole should eventually support other services like Heat
and Murano, not just the Big Tent services included in Tempest.

Patrole then should be able to dynamically discover custom
policy files. While the solution this commit implements is
not perfect, it will allow more services' policy file to
be discovered by Patrole. The policy files will still
have to be located on the same host as Patrole.

This commit removes the service-specific policy path
CONF options in favor of a new CONF option called
``[rbac] custom_policy_files`` which is a ListOpt that
includes paths for each custom policy file. Each
policy path assumes that the service name is included in
the path. The paths should be ordered by precedence, with
high-priority paths before low-priority paths. The first
path that is found to contain the service's policy file
will be used.

This commit refactors unit tests and rbac_policy_parser
as needed to work with the changes.

Change-Id: Ia929b77223b54906888af6cd324f0cfa0fafda8f
Implements blueprint: dynamic-policy-file-discovery
2017-07-10 20:56:49 +00:00
..
hacking Add hacking check to enforce no client aliases 2017-05-26 14:34:27 -04:00
services Initial Cookiecutter commit 2017-01-04 15:11:34 -05:00
tests Dynamic policy file discovery 2017-07-10 20:56:49 +00:00
__init__.py Initial Cookiecutter commit 2017-01-04 15:11:34 -05:00
config.py Dynamic policy file discovery 2017-07-10 20:56:49 +00:00
plugin.py Update plugin.py 2017-06-07 20:17:40 +00:00
rbac_exceptions.py Enhance validation decorator with error code 2017-03-20 13:53:11 -04:00
rbac_policy_parser.py Dynamic policy file discovery 2017-07-10 20:56:49 +00:00
rbac_rule_validation.py Merge "Add support for testing custom RBAC requirements" 2017-07-07 17:34:15 +00:00
rbac_utils.py Add support for testing custom RBAC requirements 2017-07-07 11:16:31 -04:00
README.rst Improve patrole core documentation 2017-04-21 00:13:07 +01:00
requirements_authority.py Add support for testing custom RBAC requirements 2017-07-07 11:16:31 -04:00
version.py Add a page for release 0.1.0 to release notes 2017-06-02 18:44:56 +00:00

Tempest Integration of Patrole

This directory contains Tempest tests to cover the Patrole project.