Policy Engine For Glance
Bases: Enforcer
Responsible for loading and enforcing rules
Verifies that the action is valid on the target in this context.
context – Glance request context
action – String representing the action to be checked
target – Dictionary representing the object of the action.
A non-False value if access is allowed.
Check if the given context is associated with an admin role, as defined via the ‘context_is_admin’ RBAC rule.
context – Glance request context
A non-False value if context role is admin.
Verifies that the action is valid on the target in this context.
context – Glance request context
action – String representing the action to be checked
target – Dictionary representing the object of the action.
glance.common.exception.Forbidden
A non-False value if access is allowed.
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.