-
Notifications
You must be signed in to change notification settings - Fork 6
Set IRIS IAM login for Grafana and ArgoCD #440
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
Conversation
1f5e49f to
81e92de
Compare
| grafana.ini: | ||
| server: | ||
| root_url: https://grafana.staging-worker.nubes.stfc.ac.uk |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| grafana.ini: | |
| server: | |
| root_url: https://grafana.staging-worker.nubes.stfc.ac.uk | |
| grafana.ini: | |
| server: | |
| root_url: https://grafana.staging-worker.nubes.stfc.ac.uk | |
| auth.generic_oauth: | |
| role_attribute_path: contains(groups[*], 'stfc-cloud/admins') && 'Admin' || contains(groups[*], 'stfc-cloud/team') && 'Editor' || 'Viewer' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what does this do?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah rbac - the chart has us do it differently.
I'm assuming you want:
- stfc-cloud/team to have read-only permissions
- stfc-cloud/admins to have read/write permissions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was just going from your comment on ArgoCD. That is how you add it to the grafana.ini file
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd argue that stfc-cloud/team should have read/write permissions on staging so they can add new dashboards
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Editor is read write for dashboards
https://grafana.com/docs/grafana/latest/administration/roles-and-permissions/#dashboard-permissions
khalford
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can add rbac for Grafana quite easily
sets up grafana dashboards to use iris iam for login set strong grafana admin passwords
IRIS IAM authentication for IRIS-iAM + setting a permanent password for ArgoCD ArgoCD bootstrap will setup a temporary admin password that will be overwritten once GitOps kicks in set some simple rbac policies: stfc-cloud/team -> readonly stfc-cloud/admin -> admin
29ca456 to
0f092ff
Compare
0f092ff to
4f27ea3
Compare
you can now:
login via iris iam into argocd and grafana as long as you belong to stfc-cloud/admins or stfc-cloud/team groups
For ArgoCD:
stfc-cloud/team group has read-only permissions
stfc-cloud/admins group has admin permissions
For Grafana:
both have admin permissions (TODO rbac rules later if needed)
Admin local username/passwords preserved and set in sops