Akira Yoshiyama efea2ada1c Add string format rendering to RoleCheck.__call__()
RoleCheck.__call__() doesn't render string format with target dict.
So, it couldn't handle rules like below:

"identity:create_grant": "role: %{target.role.name}s"

This patch adds string format rendering code to it. If target_dict
has a key specified at %()s in the rule, __call__() will render its
value and evaluate the rule. If not, the method will return False.

Change-Id: I82d677301ca2c764230ed9b3e3e9d82056afcea2
Closes-Bug: #1527055
2015-12-14 15:21:21 +09:00
2015-12-07 16:06:56 +08:00
2015-08-09 07:24:54 +02:00
2015-02-17 00:37:33 +00:00
2015-11-17 16:49:11 +08:00
2015-09-17 12:16:08 +00:00

oslo.policy

Latest Version

Downloads

The Oslo Policy library provides support for RBAC policy enforcement across all OpenStack services.

Description
Rules engine to enforce access control policy
Readme 6.6 MiB
Languages
Python 100%