spring-attic / spring-cloud-aws

All development has moved to https://github.com/awspring/spring-cloud-aws Integration for Amazon Web Services APIs with Spring
https://awspring.io/
Apache License 2.0
589 stars 376 forks source link

AWS Parameter Store properties are being refreshed by Actuator Irrespective of Profile used #796

Open ahmadimt opened 2 years ago

ahmadimt commented 2 years ago

Type: Bug

Component: "Parameter Store"

Describe the bug We are using spring-cloud-starter-aws-parameter-store-config-2.2.5.RELEASE for storing and retrieving the properties from AWS Parameter store and actuator for dynamically refreshing the properties. We have multiple profile-specific properties in same AWS parameter store. When we are calling /refresh in one environment, it is refreshing all the properties irrespective of the environment the /refresh endpoint is called. For example, we have two environment dev and qa and the same AWS parameter store is used to store properties. They are separated based on the profiles like below for DEV: /abcd/xyz/dev/web/username for QA: /abcd/xyz/qa/web/username

When we are calling the /refresh endpoint after making changes to the dev specific properties the qa specific properties are also getting refreshed and visa-versa.