argoproj / argo-cd

Declarative Continuous Deployment for Kubernetes
https://argo-cd.readthedocs.io
Apache License 2.0
17.69k stars 5.39k forks source link

ArgoCD CLI permission issue while having full access with GET #20198

Open JanMezey opened 2 weeks ago

JanMezey commented 2 weeks ago

Checklist:

Describe the bug

having full permissions to ArgoCD configured RBAC in argocd configmap (in UI im able to access, delete, create... everything). In ArgoCD CLI while connected and authenticated, im not able to execute "argocd get " command im able to execute every other command e.g argocd sync

FATA[0001] rpc error: code = PermissionDenied desc = permission denied: projects, get, operations, sub: QuzQAdoJmmBSPIBaAPo4d7Qd1vgX2EMuI6yC8FKqrKo, iat: 2024-10-02T13:04:07Z

To Reproduce

Have full access permissions and still not able to do "argocd get

Expected behavior

argocd get command successfully executes

Screenshots

image

Version

<img width="376" alt="image" src="https://github.com/user-attachments/assets/b6d686f6-8f13-43bd-9c54-9433a5bfa2af">

argocd: v2.12.4+27d1e64
  BuildDate: 2024-09-26T09:31:42Z
  GitCommit: 27d1e641b6ea99d9f4bf788c032aeaeefd782910
  GitTreeState: clean
  GoVersion: go1.23.1
  Compiler: gc
  Platform: darwin/arm64
argocd-server: v2.11.4+e1284e1
  BuildDate: 2024-07-02T19:17:02Z
  GitCommit: e1284e19e03c9abab2ea55314b14b1e0381c4045
  GitTreeState: clean
  GoVersion: go1.21.10
  Compiler: gc
  Platform: linux/amd64
  Kustomize Version: v5.2.1 2023-10-19T20:13:51Z
  Helm Version: v3.14.4+g81c902a
  Kubectl Version: v0.26.11
  Jsonnet Version: v0.20.0
pasha-codefresh commented 1 week ago

Are you sure that you did argocd login with same user that you using in UI ?