-
Couldn't load subscription status.
- Fork 41.6k
Description
From original report: https://jira.spring.io/browse/SEC-3141
QUOTE:
Environment: Spring Boot 1.3.0.M5 with embedded Tomcat
I've set up a Spring Boot project and added the Actuator dependency, so that I can make use of the monitoring functionality.
Per default, all endpoints except 2 (health and info) are sensitive (http://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/#production-ready-endpoints). The sensitive ones require HTTP basic authentication per default.
I would like all endpoints to be considered sensitive. To do this, I set the following 2 properties in my application.properties:
endpoints.health.sensitive=true
endpoints.info.sensitive=true
This makes those endpoints, which are insensitive per default, sensitive. I would expect all management endpoint requests to now require HTTP basic authentication. Unfortunately, now NONE of them require authentication.
Strangely, when I make only 1 of the 2 insensitive-per-default endpoints sensitive, everything works as expected. For example, when I only explicitly configure endpoints.health.sensitive=true, then the health endpoint requires authentication, but the info endpoint is still freely accessible.