RETIRED, Tempest plugin for testing and verifying RBAC policy enforcement.
Go to file
Jeremy Liu 78b192553a Fix check-uuid not working
'check-uuid' and 'check-uuid --fix' are not working because we do not
set package name for them. This patch fixes that.

Change-Id: I553c364e3fc0d640620a01046dd7f70bdb704be2
Closes-Bug: #1678407
2017-04-02 06:50:04 +00:00
contrib Improve Patrole config options 2017-03-24 14:45:18 -04:00
doc/source Improve Patrole config options 2017-03-24 14:45:18 -04:00
patrole_tempest_plugin Fix check-uuid not working 2017-04-02 06:50:04 +00:00
releasenotes Copyright and other information correctness 2017-02-06 19:36:35 +00:00
.coveragerc Initial Cookiecutter commit 2017-01-04 15:11:34 -05:00
.gitignore Initial Cookiecutter commit 2017-01-04 15:11:34 -05:00
.gitreview Added .gitreview 2016-12-21 08:20:20 +00:00
.mailmap Initial Cookiecutter commit 2017-01-04 15:11:34 -05:00
.testr.conf Initial Cookiecutter commit 2017-01-04 15:11:34 -05:00
CONTRIBUTING.rst Initial Cookiecutter commit 2017-01-04 15:11:34 -05:00
HACKING.rst Initial Cookiecutter commit 2017-01-04 15:11:34 -05:00
LICENSE Initial Cookiecutter commit 2017-01-04 15:11:34 -05:00
README.rst Improve documentation 2017-01-20 11:12:54 -05:00
babel.cfg Initial Cookiecutter commit 2017-01-04 15:11:34 -05:00
requirements.txt Modify policy parser to combine custom and default policy files. 2017-03-29 19:07:52 +00:00
setup.cfg update homepage with developer documentation page 2017-01-19 13:43:10 +05:30
setup.py Fixed AT&T Copyright statements 2017-01-27 12:46:27 -05:00
test-requirements.txt Fix test coverage tox command for patrole. 2017-03-04 23:27:31 +00:00
test-whitelist.txt Changes tox to only run unit tests and moves unit tests to tests/unit. 2017-02-28 16:03:08 -05:00
tox.ini Fix check-uuid not working 2017-04-02 06:50:04 +00:00

README.rst

patrole

Patrole is a tool for verifying that Role-Based Access Control is being enforced.

Patrole allows users to run API tests using specified RBAC roles. This allows deployments to verify that only intended roles have access to those APIs. This is critical to ensure security, especially in large deployments with custom roles.

Features

Patrole offers RBAC testing for various OpenStack RBAC policies. It includes a decorator that wraps around tests which verifies that when the test calls the corresponding api endpoint, access is only granted for correct roles.

There are several possible test flows.

If the rbac_test_role is allowed to access the endpoint
  • The test passes if no 403 forbidden or RbacActionFailed exception is raised.
If the rbac_test_role is not allowed to access the endpoint
  • If the endpoint returns a 403 forbidden exception the test will pass
  • If the endpoint returns something other than a 403 forbidden to indicate that the role is not allowed, the test will raise an RbacActionFailed exception.