You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the awsparamstore ( and also the awssecretsmanager ) provider a request such as GET /default/profile1,profile2,profile3 returns configurations in the order of profile1,profile2 and profile3, not respecting the "last-wins" approach
I think, at a minimum, there should be consistency between the providers, and ideally the last-wins approach should be used everywhere.
This affects us as property overrides defined in later profiles in Parameter store were not taking effect, but this approach was working when using the native provider and local properties files
Sample
Tested using Spring Boot 3.1.8 as a client, Spring Cloud Config Server 4.0.4 as the server
Describe the bug
When using the
native
environment provider a request such asGET /default/profile1,profile2,profile3
will return configuration from profile3,profile2, and profile1 in that order respecting the "last-wins" approach described here: https://docs.spring.io/spring-boot/docs/current/reference/html/features.html#features.external-config.files.profile-specificWhen using the
awsparamstore
( and also theawssecretsmanager
) provider a request such asGET /default/profile1,profile2,profile3
returns configurations in the order of profile1,profile2 and profile3, not respecting the "last-wins" approachI think, at a minimum, there should be consistency between the providers, and ideally the last-wins approach should be used everywhere.
This affects us as property overrides defined in later profiles in Parameter store were not taking effect, but this approach was working when using the native provider and local properties files
Sample
Tested using Spring Boot 3.1.8 as a client, Spring Cloud Config Server 4.0.4 as the server
Spring boot client code:
application.properties:
DemoApplication.java:
native provider
"native-profile3" should be the winning property value (and is) :
awsparamstore provider
"ssm-profile3" should be the winning property value (but is not - "ssm-profile1" wins) :
The text was updated successfully, but these errors were encountered: