spring-cloud / spring-cloud-connectors

Library to let cloud applications connect to services
Apache License 2.0
185 stars 161 forks source link

PropertyMaskingContextInitializer prevents configuration of "keys-to-sanitize" #300

Closed datagitlies closed 5 years ago

datagitlies commented 5 years ago

There are two parts to this issue:

  1. 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.
  2. The PropertyMaskingContextInitializer is adding a PropertySource with the name "management.endpoint.env.keys-to-sanitize" of type PropertiesPropertySource 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 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.

datagitlies commented 5 years ago

wrong project ... see pivotal-cf/spring-cloud-services-connector#127