No effect when setting endpoints.health.sensitive=false in spring boot actuator

J.GU picture J.GU · Aug 18, 2016 · Viewed 7.7k times · Source

In my application.yml:

endpoints:
  restart:
    enabled: true
  shutdown:
    enabled: true
  health:
    sensitive: false

but when I request /health, I always got only:

{"status":"UP"}

Any idea to fetch more information?

Answer

developerick picture developerick · Sep 23, 2016

Have you tried accessing other endpoints ?

I think security is enabled for actuator endpoints, because of which full content is not accessible, to access full content you have to disable security for actuator or have to use basic authentication credentials to access it.

To disable security, add the following in your application.yml -

management:
   security:
           enabled: false