Skip to content

Conversation

@anish-mudaraddi
Copy link
Collaborator

@anish-mudaraddi anish-mudaraddi commented Nov 4, 2025

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

Comment on lines +69 to +67
grafana.ini:
server:
root_url: https://grafana.staging-worker.nubes.stfc.ac.uk
Copy link
Member

@khalford khalford Nov 5, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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'

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what does this do?

Copy link
Collaborator Author

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

Copy link
Member

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

Copy link
Collaborator Author

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

Copy link
Member

@khalford khalford Nov 6, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

@khalford khalford left a 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
@khalford khalford merged commit fcfe210 into main Nov 7, 2025
1 check passed
@khalford khalford deleted the use-iris-iam-grafana branch November 7, 2025 10:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants