Search code examples
helidon

How to protect access to /metrics and /health in Helidon MP?


/metrics and /health are usefull endpoints in Helidon MP but can disclose too much information publicly

Is there a way to protect access to those endpoints ? With login/password or IP whitefiler ?

I didn't find anything on this in /metrics and /health documentation, stackoverflow.


Solution

  • The security section in Helidon docs describes how you can protect your endpoints through one of the various auth integrations. Authorization is a vast topic, choose your poison wisely!