Allow anonymous read for /api/system/healtcheck endpoint or require less privileges

I’m considering to use the /api/system/healtcheck endpoint with a monitoring system (Nagios) to poll for the global Sonarqube service status.

Problem is, in order to do so, I need to generate a user token who has at least administrator access to Sonarqube functions. Since my monitoring plugin is a simple read-only health checker, I’m quite reluctant to grant such privileges for that.

Is it possible to grant anonymous access to the healthcheck endpoint ? If this is not possible (because of privacy concerns I share completely) is it at least possible to consider access to this endpoint with a minimal privilege level ?

Welcome to the community! I suggest you to get inspired by this example we provide for docker :