argo-cd
argo-cd copied to clipboard
Failed to verify app state - got invalid redirectURL \"/\"
Checklist:
- [x] I've searched in the docs and FAQ for my answer: https://bit.ly/argocd-faq.
- [x] I've included steps to reproduce the bug.
- [ ] I've pasted the output of
argocd version
.
Describe the bug After upgrading from 2.4.4 to 2.4.7 we received intermittent errors with the below message
argocd-server-5c58f5c844-cksjw argocd-server time="2022-07-20T15:55:59Z" level=warning msg="Failed to verify app state - got invalid redirectURL \"/\""
To Reproduce
- Have valid okta configuration for SSO (validate w/ 2.4.4)
- upgrade from 2.4.4 to 2.4.7
- some users can log in, some cant (weird)
Expected behavior Argo CD auth w/ Okta OIDC remains functional for all users
Screenshots
Version 2.4.7
Logs
argocd-server-5c58f5c844-cksjw argocd-server time="2022-07-20T15:55:59Z" level=warning msg="Failed to verify app state - got invalid redirectURL \"/\""
@jmmclean have you been able to validate that the fix works for you?
+1 also experiencing this with dex configured for oidc with okta
@crenshaw-dev I will try to test it out today....TBH though I'm not sure how to reproduce (even tho i created the ticket). I think just hitting the argo-cd base href would show the issue (can you confirm)? I dont feel great reproducing the error, then quickly slinging the fix you have bc it impacts our dev environment...but ill talk w/ my team
@crenshaw-dev I rebuilt the image from your feature branch and tested, the login is now working.
Steps taken:
- upgrade to v2.4.7
- reproduced issue
- upgrade only argocd-server to
image: carbonnexus/argocd:2.4.8-rc1
- could no longer reproduce the issue
Fix released with 2.3.7 and 2.4.8. https://github.com/argoproj/argo-cd/pull/10116