Lack of effect when setting endpoints.health.sensitive = false in spring boot drive

In my application.yml application:

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

but when I request / uptime, I always get only:

{"status":"UP"}

Any idea for more information?

+4
source share
2 answers

Have you tried to access other endpoints?

I think that protection is enabled for actuator endpoints that make the full content unavailable, to access the full content, which you must disable for security, or to use its basic credentials for authentication.

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

management:
   security:
           enabled: false
+9

http://docs.spring.io/spring-boot/docs/current-SNAPSHOT/reference/htmlsingle/#production-ready-endpoints

health

Shows application health information (when the application is secure, a simple ‘status’ when accessed over an unauthenticated connection or full message details when authenticated).

- ?

NB: , health.sensitive .

+1

Source: https://habr.com/ru/post/1651634/


All Articles