Class PropertyMaskingEnvironmentPostProcessor
java.lang.Object
io.pivotal.spring.cloud.config.client.PropertyMaskingEnvironmentPostProcessor
- All Implemented Interfaces:
org.springframework.boot.env.EnvironmentPostProcessor
public class PropertyMaskingEnvironmentPostProcessor
extends Object
implements org.springframework.boot.env.EnvironmentPostProcessor
Ensure client applications have `keys-to-sanitize` set so boot will automatically mask
sensitive properties. If client has manually set this property, merge it with any SCS
specific keys that need to be sanitized
Need to search for the composite source `configService:vault:...` or `configService:credhub-` and add them to `keys-to-sanitize` because Boot doesn't support recursively sanitizing all properties in a single source
- Author:
- Ollie Hughes, Craig Walls, Dylan Roberts
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidpostProcessEnvironment(ConfigurableEnvironment environment, org.springframework.boot.SpringApplication application)
-
Constructor Details
-
PropertyMaskingEnvironmentPostProcessor
public PropertyMaskingEnvironmentPostProcessor()
-
-
Method Details
-
postProcessEnvironment
public void postProcessEnvironment(ConfigurableEnvironment environment, org.springframework.boot.SpringApplication application) - Specified by:
postProcessEnvironmentin interfaceorg.springframework.boot.env.EnvironmentPostProcessor
-