-
-
Notifications
You must be signed in to change notification settings - Fork 909
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
CSRF failures since upgrade - Unusable #4209
Comments
I had the same problem on my Kubernetes based installation with nginx ingress controller. This was caused by the lack of X-Forwarded headers and setting use-forwarded-headers. |
I do have the
|
I have the similar configuration and got the same error message. |
I tried docker tag 2022.12, seems it fixed. |
I've just updated to the latest release and it still does not work for me. |
You can navigate to When configuring custom settings via |
Thanks. @BeryJu That's helpful. |
|
https://goauthentik.io/docs/troubleshooting/csrf should fix this |
Dusting this off to ask what the actual fix is. The docs page is helpful for identifying the error, but doesn’t provide any recommended fixes. I’m using SWAG (nginx) with configs that look sound, but the HTTP_HOST that I get back from the api has port 443 in it. I wouldn’t think that should cause an issue. |
Add CSRF_TRUSTED_ORIGINS = ["https://sso.my.domain.tld", "https://some.service.my.domain.tld", "https://*.my.domain.tld"] Add a volume binding to your docker compose file ...
server:
image: ${AUTHENTIK_IMAGE:-ghcr.io/goauthentik/server}:latest
command: server
volumes:
- ./user_settings.py:/data/user_settings.py
... |
@Abrynos is this a better path than fixing nginx files? I’m using SWAG’s auto proxy mod, but fine with writing the nginx conf files myself if that’s the more stable way to resolve this |
I have not found a way of making it work purely with nginx files. If you find one, please let me know. |
Solved it, Apache seems to not set the X-Forwarded-Proto header by itself. |
Describe the bug
Ever since I upgraded from my old version (the current release on the 22nd of July 2022 [going by directory creation date]) to the current 2022.11.3 release, I cannot log into any of my applications, nor am I able to change any settings in Authentik.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Everything works the same as before
Screenshots
When trying to log into grafana (running on
monitoring.mydomain.tld
; authentik is atsso.mydomain.tld
):Full string since screenshot cuts it off:
When trying to edit anything in Authentik:
Logs
Output of docker-compose logs or kubectl logs respectively
authentik_worker.log
authentik_server.log
Version and Deployment (please complete the following information):
The text was updated successfully, but these errors were encountered: