How to turn off or disable the swagger page of Grafana (version information: 10.0.13)

How to turn off or disable the swagger page of Grafana (version information: 10.0.13)
Hope to visit the Grafana Swagger page( http://192.168.122.80:3000/swagger )When returning 404 or other error messages

why do you need to turn it off
can a non admin person see it?

Because the vulnerability security scanning software believes that it is unsafe to expose the Swagger page in the production environment and needs to be closed
Everyone can access this page

2 Likes

tell it to be quiet :laughing:. maybe a setting in this scanning software that would ignore this endppoint. this endpoint is a public endpoint and be found elsewhere in the public domain including grafana documentation. each endpoint in swagger is only available if one has aceess to the token. that is what needs to be protected and maybe also https with proper certs

1 Like

Try to rename file public/views/swagger.html and restart Grafana

1 Like