summaryrefslogtreecommitdiff
path: root/iotronic/common/policy.py
diff options
context:
space:
mode:
Diffstat (limited to 'iotronic/common/policy.py')
-rw-r--r--iotronic/common/policy.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/iotronic/common/policy.py b/iotronic/common/policy.py
index 5fff673..38555aa 100644
--- a/iotronic/common/policy.py
+++ b/iotronic/common/policy.py
@@ -136,6 +136,20 @@ service_policies = [
136 136
137] 137]
138 138
139exposed_service_policies = [
140 policy.RuleDefault('iot:service_on_board:get',
141 'rule:admin_or_owner',
142 description='Retrieve Service records'),
143 policy.RuleDefault('iot:service_remove:delete', 'rule:admin_or_owner',
144 description='Delete Service records'),
145 policy.RuleDefault('iot:service_action:post',
146 'rule:admin_or_owner',
147 description='Create Service records'),
148 policy.RuleDefault('iot:service_inject:put', 'rule:admin_or_owner',
149 description='Retrieve a Service record'),
150
151]
152
139 153
140def list_policies(): 154def list_policies():
141 policies = (default_policies 155 policies = (default_policies
@@ -143,6 +157,7 @@ def list_policies():
143 + plugin_policies 157 + plugin_policies
144 + injection_plugin_policies 158 + injection_plugin_policies
145 + service_policies 159 + service_policies
160 + exposed_service_policies
146 ) 161 )
147 return policies 162 return policies
148 163