-
Notifications
You must be signed in to change notification settings - Fork 11.7k
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
unauthorized errors when using reverse proxy with sub-path method #11757
Comments
Don't know if this helps but there is a comprehensive guide to nginx in the digital oceans tutorials: https://www.digitalocean.com/community/tutorials/how-to-install-and-secure-grafana-on-ubuntu-16-04 We have a very simple nginx config for testing: https://github.com/grafana/grafana/blob/master/docker/blocks/nginx_proxy/nginx.conf I'm not seeing the unauthorized problems but I am seeing the sign out problem. Will investigate more and get back to you. |
I am experiencing similar issues. Since upgrading Grafana to 5.1.x I'm seeing these unauthorized errors quite regularly. The server logs indicate a "user not found" problem:
The errors do not occur when I have the Firefox developer tools opened, for some reason. I'm running behind an nginx reverse proxy that's setup like this:
Both Grafana and nginx run in Docker containers ( |
Any progress on this issue? I'm running into constant 401s when trying to access Grafana behind a reverse proxy. I can't even login - the login page returns a 401 on a POST. |
@gaballard that sounds like a configuration error of your reverse proxy, |
@jeroenjacobs79 are you still having this problem? |
Is there a solution? Same stuff
|
Closing this as it looks like a config issue in reverse proxy, not an issue in Grafana |
I'm using a nginx reverse-proxy with the sub-path method.
I'm getting 401 errors on xhr requests quite regularly. Refreshing the page sometimes solves the issue, sometimes not.
I'm also unable to sign out. When I click signout, I 'm redirect to the grafana main screen again. Trying it again a few times, just results in a "too many redirects" after a while. The only way I can sign out is by clearing the grafana cookies.
As for I know, these issues only pop up when using sub-path reverse proxy. Not sure if TLS termination on the reverse proxy has an impact, haven't tested that.
I'm using Grafana 5.0.4
My nginx.conf:
relevant section of grafana.ini:
I already commented out some security header stuff(Content-Security-Policy, Referer-Policy) in my nginx.conf, as I assumed it might cause the issue. However, this doesn't seem to make a difference.
The text was updated successfully, but these errors were encountered: