Describe the bug
I have an application that bootstraps its using Vault properties. When I hit the management endpoint, I see the vault properties printed in plain text.
@Configuration
@VaultPropertySource("kv/secret/password")
public class VaultPropertySourceConfiguration {
}
@ConfigurationProperties(prefix = "user")
public class UserProperties {
public String password;
}
When I run this application, field password gets populated properly. However, when I hit the Spring management endpoint, I see that user.password is masked. However, user.password.previous is not; it's in plan text.
spring boot version: 2.4.13
spring framework version: 5.3.15
spring cloud version: 2020.0.5
Describe the bug I have an application that bootstraps its using Vault properties. When I hit the management endpoint, I see the vault properties printed in plain text.
Sample In Vault, I have the following:
Path:
kv/secret/password
Value at this path:
In my application I have the following:
When I run this application, field
password
gets populated properly. However, when I hit the Spring management endpoint, I see thatuser.password
is masked. However,user.password.previous
is not; it's in plan text.spring boot version: 2.4.13 spring framework version: 5.3.15 spring cloud version: 2020.0.5