spring-cloud / spring-cloud-vault

Configuration Integration with HashiCorp Vault
http://cloud.spring.io/spring-cloud-vault/
Apache License 2.0
270 stars 151 forks source link

Suggest to use Accepted Profiles instead of Active Profiles #723

Open matthew-hwang opened 3 months ago

matthew-hwang commented 3 months ago

Is your feature request related to a problem? Please describe. If profiles are set only through spring.profiles.default property, spring-cloud-vault cannot process for this profiles.

Describe the solution you'd like I expect this to be resolved by using Profiles::getAccepted() instead of Profiles::getActive() in VaultConfigDataLocationResolver.getKeyValueProperties() image

Describe alternatives you've considered No

Additional context With application.yml as below

spring:
  profiles:
    default: development