Skip to content

Commit e91bad5

Browse files
committed
feat(argocd): add readonly user
1 parent 5c39271 commit e91bad5

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

base-infrastructure/terraform/resources/helm-argocd.tf

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,14 @@ resource "helm_release" "argo-cd" {
1717
cm = {
1818
"timeout.reconciliation" : "60s"
1919
"timeout.hard.reconciliation" : "90s"
20+
# NOTE: Additional users for readonly access - https://argo-cd.readthedocs.io/en/stable/operator-manual/user-management/#create-new-user
21+
"accounts.readonly" : "login",
22+
"accounts.readonly.enabled" : "true"
23+
}
24+
rbac = {
25+
"policy.csv" = <<-EOT
26+
g, readonly, role:readonly
27+
EOT
2028
}
2129
}
2230
})

0 commit comments

Comments
 (0)