Open jdoylei opened 9 months ago
The symptoms where some UI requests include the app namespace parameter and other requests don't sounds similar to the issue reported in #13675 (app not found when editing resource in UI).
ArgoCD versions 2.10 and below have reached EOL. Can you upgrade and let us know if the issue is still present, please?
@andrii-korotkov-verkada - Thanks for checking.
We're currently running Argo CD v2.12.3+6b9cd82 and still have this issue:
Unable to load data: permission denied: applications, create, k8s-k8sop-project/argop-addon-policyascode-isone-applications-dev-02-cluster, sub: ..., iat: 2024-11-12T14:13:32Z
Describe the bug
When viewing "History and Rollback", and clicking on an individual deployment in the list, the commit info (author/date/message) is loaded and displayed, but the "Images" section that typically lists the images instead says "Failed to load data, please try again."
Note, this occurs for an apps-in-any-namespace app.
To Reproduce
Users with admin privileges (applications create *) observe normal behavior instead, with no error.
Expected behavior
Screenshots
Application in non-default namespace:
History and Rollback error:
Version
Logs
Noticed that the commit info seems to come from an API request with an app namespace parameter:
While the error seems to come from an API request without an app namespace parameter:
I think the permission denied error is coming from the appdetails service here - https://github.com/argoproj/argo-cd/blob/v2.9.3/server/repository/repository.go#L304-L310 - because it expects the UI to pass the app namespace prefixing the app name, and doesn't look for the app in the right app namespace.