Skip to main content

OpenStack RBAC Policy Testing

Project description

=======
PATROLE
=======
Patrole is a Tempest plugin to test Role Base Access
Control for OpenStack API's.
Overview
########
The standard Openstack API test does not test RBAC capabilities at all but
focuses on testing API functionality. Patrole is framework to test
RBAC enforcement on APIs while using some of the existing tempest API code base.
Configuration Information
#########################
tempest.conf
++++++++++++
To run the RBAC tempest api test you have to make the following changes to
the tempest.conf file.
#. [auth] section updates ::
# Users create for a tempest run will be admin so they have access to all APIs
tempest_roles = admin
# Allows test cases to create/destroy tenants and users. This
# option enables isolated test cases and better parallel
# execution, but also requires that OpenStack Identity API
# admin credentials are known. (boolean value)
allow_tenant_isolation = True
# Allows test cases to create/destroy projects and users. This option
# requires that OpenStack Identity API admin credentials are known. If
# false, isolated test cases and parallel execution, can still be
# achieved configuring a list of test accounts (boolean value)
use_dynamic_credentials = False
#. [rbac] section updates ::
# The role that you want the RBAC tests to use for RBAC testing
rbac_role=_member_
# Tell standard RBAC test cases to run other wise it they are skipped.
rbac_flag=true

Project details


Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page