Description
Spring Cloud Config Server verifies that any property sources it loads are from configured locations for security. To do that has used the property source name to get this information.
In boot 2.3.x we got classpath:/configs/application.yaml from applicationConfig: [classpath:/configs/application.yaml]
.
In boot 2.4.0 we updated the parsing logic in spring-cloud/spring-cloud-config@854060b
#24428 changed the property source names and hence broke config server. It has been updated again as seen in the issue below, but this is a brittle approach. We likely didn't say anything in the 2.3.x or prior timeline because it didn't change.
I've added support for checking the location by parsing classpath:/configs/
from Config resource 'class path resource [configs/application.yml]' via location 'classpath:/configs/' (document #0)
which works for both 2.4.0 and 2.4.1.
spring-cloud/spring-cloud-config#1771
/cc @philwebb