spring-cloud-config icon indicating copy to clipboard operation
spring-cloud-config copied to clipboard

Add API To Config Server To Return Configuration Only For Profiles

Open ryanjbaxter opened this issue 2 years ago • 1 comments

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.

ryanjbaxter avatar Jun 16 '23 15:06 ryanjbaxter

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

ryanjbaxter avatar Jun 16 '23 19:06 ryanjbaxter