Secrets manager does not work as expected with @ConfigurationProperties("prefix") #1205
Labels
component: secrets-manager
Secrets Manager integration related issue
status: waiting-for-feedback
Waiting for feedback from issuer
Type: Bug
Component: Secrets Manager
Describe the bug
Spring Cloud version: 3.1.1
Secrets manager does not work as expected with
@ConfigurationProperties("prefix")
. Given the following secret:And the following
ConfigurationProperties
:I expect
foo
to resolve tobar
, but it resolves tonull
instead.Without specifying
prefix
, the following works:exampleFoo
now resolves tobar
.It is also possible to make it work by adding the following to
application.properties
:example.foo=${EXAMPLE_FOO}
Using
?prefix=example.
and the following secrets also works:Sample
N/A. The description above should be enough.
The text was updated successfully, but these errors were encountered: