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 policy to allow exec rights in specific namespaces #3181

Open
rorobig opened this issue Feb 25, 2025 · 1 comment
Open

Rbac policy to allow exec rights in specific namespaces #3181

rorobig opened this issue Feb 25, 2025 · 1 comment
Labels
argo-cd bug Something isn't working question

Comments

@rorobig
Copy link

rorobig commented Feb 25, 2025

Describe the bug

I'm trying to restrict terminal access via argocd to a few specific namespaces using the rbac policies. I've tried with normal policies and via project policies, however none of them seem to work.

I'm wondering if what I'm trying to achieve is impossible or if I'm doing something wrong.

Related helm chart

argo-cd

Helm chart version

7.4.4

To Reproduce

Create rbac policy to enable exec rights on the staging namespace. This should allow devs to see a terminal window in all applications in the staging namespace.

p, role:devs, exec, create, staging/*, allow

Expected behavior

I would expect to see the terminal window.

Screenshots

No response

Additional context

Using the wildcard like below works. It's only when I try to restrict to namespaces that it doesn't work.
p, role:devs, exec, create, *, allow

I also tried setting the policies on the project, but that doesn't work either.


spec:
  roles:
    # Developers role with exec permissions in the tst1 namespace
    - name: devs
      description: Allow developers to exec into pods in the tst1 namespace
      policies:
        - p, proj:project-ota:devs, exec, create, staging/*, allow
      groups:
        - devs
@rorobig rorobig added the bug Something isn't working label Feb 25, 2025
@yu-croco
Copy link
Collaborator

Hi @rorobig , since it's about Argo CD's specification, you can get more help in upstream.
*argo-helm is for providing a way to deploy argoproj to kubernetes cluster, but we don't focus on the specification of apps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
argo-cd bug Something isn't working question
Projects
None yet
Development

No branches or pull requests

2 participants