Open akselleirv opened 3 months ago
I hope the password and token from the descriptions are no longer valid.
I hope the password and token from the descriptions are no longer valid.
No, and it was only valid for an instance running locally on my machine.
Checklist:
argocd version
.Describe the bug
The ArgoCD extension proxy fails to authorize requests when the .spec.destination.name is set in the Application spec instead of .spec.destination.server. The expected behavior is for the extension proxy to function correctly regardless of whether the destination is specified by name or server URL.
To Reproduce
Login and get the cookie from the networks tab.
Send a request to the extension proxy and replace the example cookie with your cookie:
Remove the
.spec.destination.name
and set the.spec.destination.server
tohttps://kubernetes.default.svc
like:Send a new request:
And then we can see the expected metrics output which confirms that we were able to successfully use the extension proxy.
Expected behavior
Expect that the extension proxy is working when the
.spec.destination.name
is set in the Application, instead of the.spec.destination.server
.Version
Logs
From the argocd server:
Which points to:
My guess is that the destination server name must be set before passing it to
proj.IsDestinationPermitted
?