Is there a current / still correct in 2022 way to expose a single dashboard anonymously via a URL
The best way I’ve done this is to use auth.proxy, and then route your anonymous users through an nginx host that sets the proxy user
Normal users then still accesses Grafana directly
Bit of a schlep, but it works really well, because now your “anonymous” user is actually still a real user in Grafana, and you can set permissions on this nominated anonymous user
This is an interesting approach, do you have any docs, I’m fronting grafana with nginx anyway so this could be a simple approach
Have a look here:
https://grafana.com/docs/grafana/next/setup-grafana/configure-security/configure-authentication/auth-proxy/
So in your nginx proxy, you could have two forwards. For example:
For authentication access:
proxy_pass [http://localhost:3000/](http://localhost:3000/);
proxy_set_header Host $http_host;
}```
For the "anonymous" user:
```location /anonaccess {
proxy_pass [http://localhost:3000/](http://localhost:3000/);
proxy_set_header X-WEBAUTH-USER myanonymoususer;
proxy_set_header Authorization "";
proxy_set_header Host $http_host;
}```
and in your grafana ini you set X-WEBAUTH-USER =myanonymoususer