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