Skip to content
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 not active with direct SSO #20748

Open
3 tasks done
andreas-p opened this issue Nov 11, 2024 · 0 comments
Open
3 tasks done

RBAC not active with direct SSO #20748

andreas-p opened this issue Nov 11, 2024 · 0 comments
Labels
bug Something isn't working component:rbac Issues related to Openshift and Racher version:2.13 Latest confirmed affected version is 2.13

Comments

@andreas-p
Copy link

andreas-p commented Nov 11, 2024

  • I've searched in the docs and FAQ for my answer: https://bit.ly/argocd-faq.
  • I've included steps to reproduce the bug.
  • I've pasted the output of argocd version.

I've installed argocd: v2.13.0+347f221 from Helm chart argo/argo-cd 7.7.0, and configured my local OIDC provider using minimal configuration according to https://argo-cd.readthedocs.io/en/stable/operator-manual/user-management/#existing-oidc-provider:

 admin.enabled: false
 url: argocd.my-site.com
 oidc.config: |
    name: My OIDC
    issuer: https://oidc.my-site.com
    clientID: TheId
    clientSecret: TheSecret

This works fine, I can login, and the User Info shows my email address and all groups I'm in, but I have all privileges, although RBAC is configured like this:

apiVersion: v1
kind: ConfigMap
  name: argocd-rbac-cm
  namespace: argocd
metadata:
  labels:
    app.kubernetes.io/name: argocd-rbac-cm
    app.kubernetes.io/part-of: argocd
data:
  policy.csv: ""
  policy.default: role:readonly
  policy.matchMode: glob
  scopes: '[groups]'

Updating the configmap with policy.default="" (argocd-server logs "RBAC ConfigMap 'argocd-rbac-cm' updated"), there should be no privileges at all, but I'm still admin-privileged, so apparently argocd-server thinks it hasn't any valid user configuration.

There's one anomaly that might be relevant: some group names provided by SSO include spaces. Still, all groups are listed correctly under User Info.

@andreas-p andreas-p added the bug Something isn't working label Nov 11, 2024
@andrii-korotkov-verkada andrii-korotkov-verkada added version:2.13 Latest confirmed affected version is 2.13 component:rbac Issues related to Openshift and Racher labels Nov 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working component:rbac Issues related to Openshift and Racher version:2.13 Latest confirmed affected version is 2.13
Projects
None yet
Development

No branches or pull requests

2 participants