In my application the PropertyMaskingContextInitializer fails to find a PropertySource with the name "bootstrapProperties" of type CompositePropertySource
I may be missing something, but I'm not sure what this property source is or where it is supposed to come from.
The PropertyMaskingContextInitializer is adding a PropertySource with the name "management.endpoint.env.keys-to-sanitize" of type PropertiesPropertySourceat the highest precedence.
The end result is that the /env actuator endpoint is not fully masked / sanitized and I'm stuck because I am unable to override the management.endpoint.env.keys-to-sanitize property in application.yml or by any other means since it will always be at a lower precedence than what PropertyMaskingContextInitializer provides.
There are two parts to this issue:
PropertyMaskingContextInitializer
fails to find aPropertySource
with the name "bootstrapProperties" of typeCompositePropertySource
PropertyMaskingContextInitializer
is adding aPropertySource
with the name "management.endpoint.env.keys-to-sanitize" of typePropertiesPropertySource
at the highest precedence.The end result is that the
/env
actuator endpoint is not fully masked / sanitized and I'm stuck because I am unable to override themanagement.endpoint.env.keys-to-sanitize
property inapplication.yml
or by any other means since it will always be at a lower precedence than whatPropertyMaskingContextInitializer
provides.