congress/etc/policy.json
Aaron Rosen da4a6c3ac3 Add OpenStack policy integration bits
This patch adds the openstack policy integration bits which we can use to
enforce which congress api calls can be made by a normal tenant
vs admin tenant. Today the default policy.json defaults to requiring an
admin to make an API call. Though, for example, one could add the following
to policy.json to allow a non-admin tenant to create a data-source:

"create_data_sources": "rule:regular_user"

This patch also renames Context to RequestContext and drops some unneeded code.

Related to blueprint keystone-integration

Change-Id: I7fe17938ba6814df3679d9d9fd0ed1cd4fc3771f
2014-08-01 11:43:39 -07:00

7 lines
143 B
JSON

{
"context_is_admin": "role:admin",
"admin_only": "rule:context_is_admin",
"regular_user": "",
"default": "rule:admin_only"
}