Policy Engine For Ironic.
A shortcut for policy.Enforcer.authorize()
Checks authorization of a rule against the target and credentials, and raises an exception if the rule is not defined. Always returns true if CONF.auth_strategy == noauth.
ironic.common.policy.check(rule, target, creds, *args, **kwargs)[source]¶A shortcut for policy.Enforcer.enforce()
Checks authorization of a rule against the target and credentials and returns True or False.
ironic.common.policy.get_enforcer()[source]¶Provides access to the single instance of Policy enforcer.
ironic.common.policy.init_enforcer(*args, **kwargs)[source]¶Synchronously initializes the policy enforcer
| Parameters: |
|
|---|
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.