argoproj / argo-cd

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

argocd create application with default user admin permissioned #17703

Open einsli opened 3 months ago

einsli commented 3 months ago

Checklist:

Describe the bug I install the argocd with official guide and login into the platform using admin, but when I create a application, an occured occured which reports permission denied. And I use the application.yaml file with command kubectl apply -f ,it works. I use the kubernets's admin sa account, it works

image

To Reproduce

Expected behavior

Screenshots

Version

image
argocd: v2.10.5+335875d.dirty
  BuildDate: 2024-03-28T18:33:38Z
  GitCommit: 335875d13e018bed6e03873f4742582582964745
  GitTreeState: dirty
  GoVersion: go1.22.1
  Compiler: gc
  Platform: darwin/arm64

Logs

time="2024-04-02T14:14:52Z" level=warning msg="finished unary call with code PermissionDenied" error="rpc error: code = PermissionDenied desc = permission denied" grpc.code=PermissionDenied grpc.method=Create grpc.service=application.ApplicationService grpc.start_time="2024-04-02T14:14:52Z" grpc.time_ms=1.042 span.kind=server system=grpc
crenshaw-dev commented 3 months ago

Can you check the repo-server logs? Is it possible that Argo CD doesn't have access to the requested git repository? I'd suggest trying to create an app using a public repository like https://github.com/argoproj/argocd-example-apps

einsli commented 3 months ago

I use the repo url you provided, it dosen't work @crenshaw-dev

image
jannfis commented 2 months ago

This looks like an Argo CD RBAC issue. How do you log into the UI?

einsli commented 2 months ago

This looks like an Argo CD RBAC issue. How do you log into the UI?

I forwarded it to argocd-server svc through nginx proxy