Merge "Ensure orders policy-in-code matches controller"

This commit is contained in:
Zuul 2018-07-24 17:58:28 +00:00 committed by Gerrit Code Review
commit 83a21510cf
2 changed files with 12 additions and 2 deletions

View File

@ -18,10 +18,10 @@ rules = [
'rule:admin_or_creator'),
policy.RuleDefault('orders:get',
'rule:all_but_audit'),
policy.RuleDefault('orders:put',
'rule:admin_or_creator'),
policy.RuleDefault('order:get',
'rule:all_users'),
policy.RuleDefault('order:put',
'rule:admin_or_creator'),
policy.RuleDefault('order:delete',
'rule:admin'),
]

View File

@ -0,0 +1,10 @@
---
features:
- |
Remap the `order:put` to `orders:put` to align with language in the orders
controller.
upgrade:
- |
(For deployments overriding default policies) After upgrading, please review
Barbican policy files and ensure that you port any rules tied to `order:put`
are remapped to `orders:put`.