Merge "Set proper default agent authorized role"
This commit is contained in:
commit
bc6ba3b303
@ -25,7 +25,7 @@ security_opts = [
|
||||
help='''
|
||||
Roles that are allowed full access to the API
|
||||
'''),
|
||||
cfg.ListOpt('agent_authorized_roles', default=['agent'],
|
||||
cfg.ListOpt('agent_authorized_roles', default=['monasca-agent'],
|
||||
help='''
|
||||
Roles that are only allowed to POST to the API
|
||||
'''),
|
||||
|
@ -155,7 +155,7 @@ class TestPolicyCase(base.BaseTestCase):
|
||||
class RegisteredPoliciesTestCase(base.BaseTestCase):
|
||||
def __init__(self, *args, **kwds):
|
||||
super(RegisteredPoliciesTestCase, self).__init__(*args, **kwds)
|
||||
self.agent_roles = ['agent']
|
||||
self.agent_roles = ['monasca-agent']
|
||||
self.readonly_roles = ['monasca-read-only-user']
|
||||
self.default_roles = ['monasca-user']
|
||||
self.delegate_roles = ['admin']
|
||||
|
6
releasenotes/notes/oslo-policy-345ff286820badc6.yaml
Normal file
6
releasenotes/notes/oslo-policy-345ff286820badc6.yaml
Normal file
@ -0,0 +1,6 @@
|
||||
---
|
||||
upgrade:
|
||||
- |
|
||||
``agent_authorized_roles`` default value changed to ``monasca-agent`` to be
|
||||
consistent with rest of Monasca, was configured by default to ``agent`` so
|
||||
old policy configuration should be checked and adjusted accordingly.
|
Loading…
Reference in New Issue
Block a user