-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
Applications in any namespace - privileges issues to manage Application details in Argocd UI #14477
Comments
This fix #13854,which required upgrade to ArgoCD 2.7.7, resolved the error messages in the UI. However, I think the ClusterRole should still be reviewed to enable argocd-server creating Events in other namespace. I'd gladly create a PR for that. |
@dgeorgievski the documentation mentions that the argocd-server RBAC has to be modified to support apps-in-any-namespace. What do you think of adding the |
That is what I had in mind, adding the |
@dgeorgievski if you put up the PR, I'll happily merge. :-) |
Fixes: argoproj#14477 Signed-off-by: Dimitar Georgievski <[email protected]>
…14544) Fixes: #14477 Signed-off-by: Dimitar Georgievski <[email protected]>
…14544) Fixes: #14477 Signed-off-by: Dimitar Georgievski <[email protected]>
…14544) Fixes: #14477 Signed-off-by: Dimitar Georgievski <[email protected]>
…14544) Fixes: #14477 Signed-off-by: Dimitar Georgievski <[email protected]>
…14544) (#14550) Fixes: #14477 Signed-off-by: Dimitar Georgievski <[email protected]> Co-authored-by: Dimitar Georgievski <[email protected]>
…14544) (#14551) Fixes: #14477 Signed-off-by: Dimitar Georgievski <[email protected]> Co-authored-by: Dimitar Georgievski <[email protected]>
…14544) (#14552) Fixes: #14477 Signed-off-by: Dimitar Georgievski <[email protected]> Co-authored-by: Dimitar Georgievski <[email protected]>
…rgoproj#14544) Fixes: argoproj#14477 Signed-off-by: Dimitar Georgievski <[email protected]> Signed-off-by: Jimmy Neville <[email protected]>
…rgoproj#14544) (argoproj#14551) Fixes: argoproj#14477 Signed-off-by: Dimitar Georgievski <[email protected]> Co-authored-by: Dimitar Georgievski <[email protected]> Signed-off-by: schakrad <[email protected]>
…rgoproj#14544) Fixes: argoproj#14477 Signed-off-by: Dimitar Georgievski <[email protected]>
…rgoproj#14544) Fixes: argoproj#14477 Signed-off-by: Dimitar Georgievski <[email protected]>
Checklist:
argocd version
.Describe the bug
I have followed the instructions about enabling deployment of Applications in any namespace as described at
https://argo-cd.readthedocs.io/en/stable/operator-manual/app-any-namespace/#applications-in-any-namespace
Everything works with the exception of two minor issues
"Unable to load data: permission data"
The error appears to be related to loading of Links data. I can create the alert by clicking the "try again" link.
See the attached image.
The required RBAC ClusterRole and -Binding were applied as described here
https://argo-cd.readthedocs.io/en/stable/operator-manual/app-any-namespace/#adapt-kubernetes-rbac
I can confirm that the status of k8s Application resource is updated as expected which confirms the argocd-server has access to Application deployed in another namespace.
A similar error appears if I try to save the Application Details in the UI. See the attached images.
I had to add RBAC privileges for creating Events in the
examples/k8s-rbac/argocd-server-applications/argocd-server-rbac-clusterrole.yaml
ClusterRoleTo Reproduce
Follow the steps as described in https://argo-cd.readthedocs.io/en/stable/operator-manual/app-any-namespace/#applications-in-any-namespace
Create a new Application in a namespace other than
argocd
The new application should appear in the UI
Open Application details in the UI
You should see "Unable to load data: permission denied" error message
Click on the "try again" HTTP link appearing under LInks field. This should create another instance of the alert.
Try to change the Application settings and save.
This should create "Unable to save: permission denied" alert.
Check argocd-server logs for errors indicating it cannot create k8s Events in the namespace where the Application is deployed.
Expected behavior
I should be able to manage an Applicaiton deployed in a namespace other than the control plane namespace through the UI.
Screenshots
Version
Logs
Save Application details logs entries. It looks like
argocd-server
is still trying to locate the Application inargocd
namespaceRelated to the lack of privileges to create k8s Event in the Application namespace. The issue was addressed by modifying the ClusterRole as described above.
The text was updated successfully, but these errors were encountered: