Describe the bug
With the native profile active, the health status according to org.springframework.cloud.config.server.config.ConfigServerHealthIndicator is UP, even when the Environment that it finds has no property sources.
An API request for the same name and profiles that the health indicator uses returns 404 Not Found when spring.cloud.config.server.accept-empty is false. I would expect the health indicator to respect the value of spring.cloud.config.server.accept-empty and return DOWN when the Environment has no property sources.
Spring Boot: 3.4.2
Spring Cloud: 2024.0.0
Sample
https://github.com/cselagea/spring-cloud-config-health-empty-env
Describe the bug
With the
nativeprofile active, the health status according toorg.springframework.cloud.config.server.config.ConfigServerHealthIndicatorisUP, even when theEnvironmentthat it finds has no property sources.An API request for the same
nameandprofilesthat the health indicator uses returns404 Not Foundwhenspring.cloud.config.server.accept-emptyisfalse. I would expect the health indicator to respect the value ofspring.cloud.config.server.accept-emptyand returnDOWNwhen theEnvironmenthas no property sources.Spring Boot: 3.4.2
Spring Cloud: 2024.0.0
Sample
https://github.com/cselagea/spring-cloud-config-health-empty-env