Spring Boots Config Data support separates loading config data into two steps, configuration data without profiles and then configuration with profiles. We try our best to label PropertySources as PROFILE_SPECIFIC in ConfigServerConfigDataLoader but its error prone because depending on the configuration of the config server the profile separator could be anything. AWS Secrets Manage, AWS Parameter Store and Vault all allow for profile separator configuration.

We know when the config data API is only requesting profile specific property sources so we could make a specific request to the config server to just return the profile specific property sources.

Comment From: ryanjbaxter

See https://github.com/spring-projects/spring-boot/issues/25766 https://github.com/spring-projects/spring-boot/commit/5774ea3f0c81de9776fc06cfbcb7c7d055f26333