Merge "Set proper default agent authorized role"

This commit is contained in:
Zuul 2018-11-20 11:41:55 +00:00 committed by Gerrit Code Review
commit bc6ba3b303
3 changed files with 8 additions and 2 deletions

View File

@ -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
'''),

View File

@ -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']

View 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.