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

argocd CLI RBAC validation doesn't work on actions #13911

Closed
3 tasks done
davidham opened this issue Jun 5, 2023 · 1 comment · Fixed by #14578
Closed
3 tasks done

argocd CLI RBAC validation doesn't work on actions #13911

davidham opened this issue Jun 5, 2023 · 1 comment · Fixed by #14578
Labels
bug Something isn't working

Comments

@davidham
Copy link

davidham commented Jun 5, 2023

Checklist:

  • 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.

Describe the bug
The argocd admin settings rbac can command does not work on action actions.

To Reproduce

  1. Create a policy file called test.csv with the following content:
    p, role:engineer, applications, action/*, */*, allow
    
  2. With the CLI, run this command:
    argocd admin settings rbac can role:engineer action/apps/Deployment/restart applications --policy-file test.csv
    

CLI returns:

FATA[0000] error in RBAC request: 'action/apps/Deployment/restart' is not a valid action name 

Expected behavior
CLI should return Yes based on the given policy file, or No if the policy doesn't allow it. The example action is one of the built in resource customizations.

Version

$ argocd version
argocd: v2.7.3+e7891b8
  BuildDate: 2023-05-24T15:51:26Z
  GitCommit: e7891b899a35dca06ae94965ea5ae2a86b344848
  GitTreeState: clean
  GoVersion: go1.19.9
  Compiler: gc
  Platform: darwin/arm64
@davidham davidham added the bug Something isn't working label Jun 5, 2023
@jjtroberts
Copy link

jjtroberts commented Jun 6, 2023

We're experiencing a similar issue:
p, role:infrastructureengineer, applications, action/argoproj.io/Rollout/restart, dev/*, allow

Running the cli returns:
argocd admin settings rbac --policy-file argocd-rbac-cm.yaml can role:infrastructureengineer action/argoproj.io/Rollout/restart applications 'dev/my-service' FATA[0000] error in RBAC request: 'action/argoproj.io/Rollout/restart' is not a valid action name

Version

❯ argocd version
argocd: v2.7.3+e7891b8.dirty
  BuildDate: 2023-05-24T15:52:17Z
  GitCommit: e7891b899a35dca06ae94965ea5ae2a86b344848
  GitTreeState: dirty
  GoVersion: go1.20.4
  Compiler: gc
  Platform: darwin/arm64
argocd-server: v2.7.3+e7891b8.dirty
  BuildDate: 2023-05-24T15:52:17Z
  GitCommit: e7891b899a35dca06ae94965ea5ae2a86b344848
  GitTreeState: dirty
  GoVersion: go1.20.4
  Compiler: gc
  Platform: darwin/arm64
  Kustomize Version: v5.0.3 2023-05-09T20:05:13Z
  Helm Version: v3.12.0+gc9f554d
  Kubectl Version: v0.24.2
  Jsonnet Version: v0.19.1

crenshaw-dev added a commit that referenced this issue Jul 18, 2023
…#14578)

* #11602 fix : Object options menu truncated when selected in ApplicationListView.

Signed-off-by: schakradari <[email protected]>

* #11602 fix : Object options menu truncated when selected in ApplicationListView.

Signed-off-by: schakradari <[email protected]>

* changes for argocd_rbac

Signed-off-by: schakrad <[email protected]>

---------

Signed-off-by: schakradari <[email protected]>
Signed-off-by: schakrad <[email protected]>
Co-authored-by: Michael Crenshaw <[email protected]>
gcp-cherry-pick-bot bot pushed a commit that referenced this issue Jul 18, 2023
…#14578)

* #11602 fix : Object options menu truncated when selected in ApplicationListView.

Signed-off-by: schakradari <[email protected]>

* #11602 fix : Object options menu truncated when selected in ApplicationListView.

Signed-off-by: schakradari <[email protected]>

* changes for argocd_rbac

Signed-off-by: schakrad <[email protected]>

---------

Signed-off-by: schakradari <[email protected]>
Signed-off-by: schakrad <[email protected]>
Co-authored-by: Michael Crenshaw <[email protected]>
gcp-cherry-pick-bot bot pushed a commit that referenced this issue Jul 18, 2023
…#14578)

* #11602 fix : Object options menu truncated when selected in ApplicationListView.

Signed-off-by: schakradari <[email protected]>

* #11602 fix : Object options menu truncated when selected in ApplicationListView.

Signed-off-by: schakradari <[email protected]>

* changes for argocd_rbac

Signed-off-by: schakrad <[email protected]>

---------

Signed-off-by: schakradari <[email protected]>
Signed-off-by: schakrad <[email protected]>
Co-authored-by: Michael Crenshaw <[email protected]>
gcp-cherry-pick-bot bot pushed a commit that referenced this issue Jul 18, 2023
…#14578)

* #11602 fix : Object options menu truncated when selected in ApplicationListView.

Signed-off-by: schakradari <[email protected]>

* #11602 fix : Object options menu truncated when selected in ApplicationListView.

Signed-off-by: schakradari <[email protected]>

* changes for argocd_rbac

Signed-off-by: schakrad <[email protected]>

---------

Signed-off-by: schakradari <[email protected]>
Signed-off-by: schakrad <[email protected]>
Co-authored-by: Michael Crenshaw <[email protected]>
gcp-cherry-pick-bot bot pushed a commit that referenced this issue Jul 18, 2023
…#14578)

* #11602 fix : Object options menu truncated when selected in ApplicationListView.

Signed-off-by: schakradari <[email protected]>

* #11602 fix : Object options menu truncated when selected in ApplicationListView.

Signed-off-by: schakradari <[email protected]>

* changes for argocd_rbac

Signed-off-by: schakrad <[email protected]>

---------

Signed-off-by: schakradari <[email protected]>
Signed-off-by: schakrad <[email protected]>
Co-authored-by: Michael Crenshaw <[email protected]>
crenshaw-dev added a commit that referenced this issue Jul 18, 2023
…#14578) (#14581)

* #11602 fix : Object options menu truncated when selected in ApplicationListView.



* #11602 fix : Object options menu truncated when selected in ApplicationListView.



* changes for argocd_rbac



---------

Signed-off-by: schakradari <[email protected]>
Signed-off-by: schakrad <[email protected]>
Co-authored-by: schakrad <[email protected]>
Co-authored-by: Michael Crenshaw <[email protected]>
crenshaw-dev added a commit that referenced this issue Jul 18, 2023
…#14578) (#14582)

* #11602 fix : Object options menu truncated when selected in ApplicationListView.



* #11602 fix : Object options menu truncated when selected in ApplicationListView.



* changes for argocd_rbac



---------

Signed-off-by: schakradari <[email protected]>
Signed-off-by: schakrad <[email protected]>
Co-authored-by: schakrad <[email protected]>
Co-authored-by: Michael Crenshaw <[email protected]>
crenshaw-dev added a commit that referenced this issue Jul 18, 2023
…#14578) (#14583)

* #11602 fix : Object options menu truncated when selected in ApplicationListView.



* #11602 fix : Object options menu truncated when selected in ApplicationListView.



* changes for argocd_rbac



---------

Signed-off-by: schakradari <[email protected]>
Signed-off-by: schakrad <[email protected]>
Co-authored-by: schakrad <[email protected]>
Co-authored-by: Michael Crenshaw <[email protected]>
crenshaw-dev added a commit that referenced this issue Jul 18, 2023
…#14578) (#14584)

* #11602 fix : Object options menu truncated when selected in ApplicationListView.



* #11602 fix : Object options menu truncated when selected in ApplicationListView.



* changes for argocd_rbac



---------

Signed-off-by: schakradari <[email protected]>
Signed-off-by: schakrad <[email protected]>
Co-authored-by: schakrad <[email protected]>
Co-authored-by: Michael Crenshaw <[email protected]>
schakrad added a commit to schakrad/argo-cd that referenced this issue Jul 24, 2023
…j#13911) (argoproj#14578) (argoproj#14582)

* argoproj#11602 fix : Object options menu truncated when selected in ApplicationListView.

* argoproj#11602 fix : Object options menu truncated when selected in ApplicationListView.

* changes for argocd_rbac

---------

Signed-off-by: schakradari <[email protected]>
Signed-off-by: schakrad <[email protected]>
Co-authored-by: schakrad <[email protected]>
Co-authored-by: Michael Crenshaw <[email protected]>
Signed-off-by: schakrad <[email protected]>
yyzxw pushed a commit to yyzxw/argo-cd that referenced this issue Aug 9, 2023
…j#13911) (argoproj#14578)

* argoproj#11602 fix : Object options menu truncated when selected in ApplicationListView.

Signed-off-by: schakradari <[email protected]>

* argoproj#11602 fix : Object options menu truncated when selected in ApplicationListView.

Signed-off-by: schakradari <[email protected]>

* changes for argocd_rbac

Signed-off-by: schakrad <[email protected]>

---------

Signed-off-by: schakradari <[email protected]>
Signed-off-by: schakrad <[email protected]>
Co-authored-by: Michael Crenshaw <[email protected]>
tesla59 pushed a commit to tesla59/argo-cd that referenced this issue Dec 16, 2023
…j#13911) (argoproj#14578)

* argoproj#11602 fix : Object options menu truncated when selected in ApplicationListView.

Signed-off-by: schakradari <[email protected]>

* argoproj#11602 fix : Object options menu truncated when selected in ApplicationListView.

Signed-off-by: schakradari <[email protected]>

* changes for argocd_rbac

Signed-off-by: schakrad <[email protected]>

---------

Signed-off-by: schakradari <[email protected]>
Signed-off-by: schakrad <[email protected]>
Co-authored-by: Michael Crenshaw <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants