Grafana returns 401 on direct image render link from the image renderer
See original GitHub issueWhat happened: Following the instruction on https://grafana.com/docs/grafana/latest/administration/image_rendering/#remote-rendering-service . Image Renderer throws error on unauthorized access to grafana.
What you expected to happen: Image Renderer should be able to call grafana for direct rendered image
How to reproduce it (as minimally and precisely as possible): Following the instruction on https://grafana.com/docs/grafana/latest/administration/image_rendering/#remote-rendering-service
Anything else we need to know?:
Environment:
- Grafana Image Renderer version: latest
- Grafana version: 6.5.3
- Installed plugin or remote renderer service: As a service on a container
- OS Grafana Image Renderer is installed on: container
- User OS & Browser: Mac OS / Chrome
- Others:
1/21/2020 4:48:04 PM{"level":"info","message":"Render request received', 'url', http://grafana:3000/d-solo/N4gOslEWk/grafana-alert-troubleshooting?orgId=1&panelId=2&render=1"}
1/21/2020 4:48:04 PM{"0":"msg","1":"Failed to load resource: the server responded with a status of 401 (Unauthorized)","2":"url","3":"http://grafana:3000/d-solo/N4gOslEWk/grafana-alert-troubleshooting?orgId=1&panelId=2&render=1","4":"line","6":"column","level":"error","message":"Browser console error"}
Issue Analytics
- State:
- Created 4 years ago
- Comments:9 (6 by maintainers)
Top Results From Across the Web
Grafana image renderer plugin 401/Unauthorized error ...
Trying to install and configure grafana image renders to have reports with pdf and inline images. I need to send report to emails....
Read more >Grafana Image Renderer Data Source Authentication
I'm running Grafana 7.0.3 with Grafana Image Renderer 2.0.0 installed ... When I try and render an image from a graph (Share ->...
Read more >Troubleshoot image rendering - Grafana documentation
Troubleshoot image rendering. In this section, you'll learn how to enable logging for the image renderer and you'll find the most common issues....
Read more >Set up image rendering | Grafana documentation
Set up image rendering. Grafana supports automatic rendering of panels as PNG images. This allows Grafana to automatically generate images of your panels...
Read more >Security release: New versions of Grafana and Grafana Image ...
On July 21, an internal security review identified an unauthorized file disclosure vulnerability in the Grafana Image Renderer plugin when HTTP ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

We also ran into this, there’s a Grafana deployment with 2 pods in k8s for us, and Grafana renderer as separate deployment. And GF_RENDERING_CALLBACK_URL is using a k8s Service, so might hit one of the 2 Grafana pods, sometimes failing sometimes succeeding. Would be nice to have support for this setup too.
Closed by https://github.com/grafana/grafana/pull/22031 and will be included in Grafana v6.7.0. You’ll need to configure rendering callback url in Grafana to be able for renderer to callback into public/load balancer url.