Home > Blockchain >  What is 'p' and 'g' in ArgoCD policy.csv?
What is 'p' and 'g' in ArgoCD policy.csv?

Time:09-21

I'm trying to configure RBAC for argocd, I saw a lot of examples like this one below:

apiVersion: v1
kind: ConfigMap
metadata:
  name: argocd-rbac-cm
  namespace: argocd
data:
  policy.default: role:readonly
  policy.csv: |
    p, role:org-admin, applications, *, */*, allow
    p, role:org-admin, clusters, get, *, allow
    p, role:org-admin, repositories, get, *, allow
    p, role:org-admin, repositories, create, *, allow
    p, role:org-admin, repositories, update, *, allow
    p, role:org-admin, repositories, delete, *, allow
    p, role:org-admin, logs, get, *, allow
    p, role:org-admin, exec, create, */*, allow

    g, your-github-org:your-team, role:org-admin

In the first column you either have the g or p letters.
Tried searching for the definition on ArgoCD Documentation, but either they don't mention it or I just failed to see it.

So what does this p and g stand for?

CodePudding user response:

I would guess p=Permission, g=Group. p is what permission the role have. g is which role this group have

  • Related