summaryrefslogtreecommitdiffstats
path: root/openstack/common/plugin/plugin.py
diff options
context:
space:
mode:
authorKevin L. Mitchell <kevin.mitchell@rackspace.com>2012-10-09 13:23:26 +0100
committerMark McLoughlin <markmc@redhat.com>2012-10-09 21:16:03 +0100
commit451dd68b2d9194f4612074412acedfad800e799c (patch)
treeccba7e8b07f574fe8a6ebe9ec1168e2a4b198914 /openstack/common/plugin/plugin.py
parent355ca27471218012a7604b751b1ffbbd2d001f05 (diff)
downloadoslo-451dd68b2d9194f4612074412acedfad800e799c.tar.gz
oslo-451dd68b2d9194f4612074412acedfad800e799c.tar.xz
oslo-451dd68b2d9194f4612074412acedfad800e799c.zip
Rewrite the policy engine from scratch
Implements blueprint fine-grained-policy Complete rewrite of the policy engine, with careful thought given to backwards-compatibility. Policy rules are now represented internally by a tree of Check objects. A new API is added for parsing and enforcing rules: set_rules(Rules.load_json(data, default_rule=...)) result = check(rule, target, credentials) reset() The old Brain/enforce API is deprecated and will be removed soon. A new API is also added for registering new check types: @register("key") class KeyCheck(Check): def __call__(self, target, creds): return self.match in creds Support for using functions as check types is deprecated and will also be removed soon. Change-Id: I2951a0de3751bd2ec868e7a661070fed624e4af2
Diffstat (limited to 'openstack/common/plugin/plugin.py')
0 files changed, 0 insertions, 0 deletions