Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change default value of DELEGATE_AUTHORIZED_ROLES #346

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion monasca-api-python/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ A number of environment variables can be passed to the container:
| `AUTHORIZED_ROLES` | `user, domainuser, domainadmin, monasca-user` | Roles for admin Users |
| `AGENT_AUTHORIZED_ROLES` | `monasca-agent` | Roles for metric write only users |
| `READ_ONLY_AUTHORIZED_ROLES` | `monasca-read-only-user` | Roles for read only users |
| `DELEGATE_AUTHORIZED_ROLES` | `admin` | Roles allow to read/write cross tenant ID |
| `DELEGATE_AUTHORIZED_ROLES` | `monitoring-delegate` | Roles allow to read/write cross tenant ID |
| `ADD_ACCESS_LOG` | `true` | if true, produce an access log on stderr |
| `ACCESS_LOG_FORMAT` | `%(asctime)s [%(process)d] gunicorn.access [%(levelname)s] %(message)s` | Log format for access log |
| `ACCESS_LOG_FIELDS` | `%(h)s %(l)s %(u)s %(t)s %(r)s %(s)s %(b)s "%(f)s" "%(a)s" %(L)s` | Access log fields |
Expand Down
2 changes: 1 addition & 1 deletion monasca-api-python/api-config.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ read_only_authorized_roles = {{ READ_ONLY_AUTHORIZED_ROLES | default('monasca-re

# The roles that are allowed to access the API on behalf of another tenant.
# For example, a service can POST metrics to another tenant if they are a member of the "delegate" role.
delegate_authorized_roles = {{ DELEGATE_AUTHORIZED_ROLES | default('admin') }}
delegate_authorized_roles = {{ DELEGATE_AUTHORIZED_ROLES | default('monitoring-delegate') }}

[messaging]
# The message queue driver to use
Expand Down