github.com/argoproj/argo-cd/v2@v2.10.9/docs/operator-manual/argocd-rbac-cm.yaml (about)

     1  apiVersion: v1
     2  kind: ConfigMap
     3  metadata:
     4    name: argocd-rbac-cm
     5    namespace: argocd
     6    labels:
     7      app.kubernetes.io/name: argocd-rbac-cm
     8      app.kubernetes.io/part-of: argocd
     9  data:
    10    # policy.csv is an file containing user-defined RBAC policies and role definitions (optional).
    11    # Policy rules are in the form:
    12    #   p, subject, resource, action, object, effect
    13    # Role definitions and bindings are in the form:
    14    #   g, subject, inherited-subject
    15    # See https://github.com/argoproj/argo-cd/blob/master/docs/operator-manual/rbac.md for additional information.
    16    policy.csv: |
    17      # Grant all members of the group 'my-org:team-alpha; the ability to sync apps in 'my-project'
    18      p, my-org:team-alpha, applications, sync, my-project/*, allow
    19      # Grant all members of 'my-org:team-beta' admins
    20      g, my-org:team-beta, role:admin
    21  
    22    # it is possible to provide additional entries in this configmap to compose the final policy csv.
    23    # In this case the key must follow the pattern 'policy.<any string>.csv'. Argo CD will concatenate
    24    # all additional policies it finds with this pattern below the main one ('policy.csv'). This is useful
    25    # to allow composing policies in config management tools like Kustomize, Helm, etc.
    26    policy.overlay.csv: |
    27      p, role:tester, applications, *, */*, allow
    28      p, role:tester, projects, *, *, allow
    29      g, my-org:team-qa, role:tester
    30  
    31    # policy.default is the name of the default role which Argo CD will falls back to, when
    32    # authorizing API requests (optional). If omitted or empty, users may be still be able to login,
    33    # but will see no apps, projects, etc...
    34    policy.default: role:readonly
    35  
    36    # scopes controls which OIDC scopes to examine during rbac enforcement (in addition to `sub` scope).
    37    # If omitted, defaults to: '[groups]'. The scope value can be a string, or a list of strings.
    38    scopes: '[cognito:groups, email]'
    39  
    40    # matchMode configures the matchers function for casbin.
    41    # There are two options for this, 'glob' for glob matcher or 'regex' for regex matcher. If omitted or mis-configured,
    42    # will be set to 'glob' as default.
    43    policy.matchMode: 'glob'
    44