Bases: patrole_tempest_plugin.rbac_authority.RbacAuthority
A class that uses oslo.policy
for validating RBAC.
Checks if a given rule in a policy is allowed with given role.
rule_name (string) – Policy name to pass to``oslo.policy``.
roles (List[string]) – List of roles to validate for authorization.
RbacParsingException – If rule_name
does not exist in the
cloud (in policy file or among registered in-code policy defaults).
Dynamically discover the policy file for each service in
cls.available_services
. Pick all candidate paths found
out of the potential paths in [patrole] custom_policy_files
.
Validate whether the service passed to __init__
exists.
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.