Set proper default agent authorized role
Story: 2003930 Task: 26838 Change-Id: I27f191d1baf850d5b9e56928fd6b45818f430216
This commit is contained in:
parent
12f1ae68b8
commit
856a969da3
|
@ -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']
|
||||
|
|
|
@ -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