-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RBAC using LDAP is not working (Not assigning the policies) #17908
Comments
And something that I figured out is I can't find any place in ArgoCD deployments that mounts |
@behniafb Make sure You might have more relevant logs in the dex pod. |
Actually. Seems related to dexidp/dex#1719. Since argo is using "sub" everywhere as a hardcoded value, and this value might not be deterministic, we should perhaps override As a workaround, you might want to try Documentation definitely needs to be updated no matter what as this is a non-intuitive behavior from Dex. |
excellent job! I deployed argo with ldap, and found out it didn`t work when I changed the rbac rule in rbac-cm, in the meanwhile, the argocd-server reported the error:
followed as you suggested, i configure |
Checklist:
argocd version
:Describe the bug
Hello. I want to integrate LDAP with ArgoCD, using Dex.
The problem is, the LDAP user that I login with, doesn't get the necessary policies that I've specified in
argocd-rbac-cm
inpolicy.csv
;But the confusing thing is it SUCCESSFULY gets the policy.default to whatever role I set to !
To Reproduce
These are the necessary configs that I have set.
argocd-cm
:argocd-rbac-cm
:Expected behavior
I expect that when I login with LDAP user
[email protected]
, it gets the policy ofg, [email protected], role:admin
which is admin ; But it gets the default policy, which ispolicy.default: role:Testrole
.Screenshots
For example, when I want to see the list of clusters, I get this error (something that
admin
policy is capable of):Version
argocd@argocd-server-7db5c6b77-2nzpf:~$ argocd version argocd: v2.10.6+d504d2b BuildDate: 2024-04-05T00:27:47Z GitCommit: d504d2b1d92f0cf831a124a5fd1a96ee29fa7679 GitTreeState: clean GoVersion: go1.21.3 Compiler: gc Platform: linux/amd64
Logs
argocd-server
logs (debug mode) when I try to create a create a project called TestForGithub:The text was updated successfully, but these errors were encountered: