Skip to content

Conversation

wowapxah
Copy link

 ## Summary
 This PR adds support for environment variable placeholders in VaultEnvironmentEncryptor, allowing dynamic configuration of Vault paths using environment variables.
 
 ## Changes
 - Add `replaceEnvironmentPlaceholders` method to resolve `${VAR_NAME}` placeholders
 - Support environment variable substitution in vault keys and parameter names
 - Add comprehensive test coverage for various placeholder scenarios
 - Handle missing environment variables gracefully by keeping original placeholders
 - Add proper Javadoc documentation for new functionality
 
 ## Testing
 - All existing tests pass
 - Added 8 new test methods covering various scenarios
 - Tested with existing and non-existing environment variables
 
 ## Benefits
 This enhancement allows dynamic configuration of Vault paths using environment variables, making the configuration more flexible and environment-specific.

…ptor

- Add replaceEnvironmentPlaceholders method to resolve  placeholders
- Support environment variable substitution in vault keys and parameter names
- Add comprehensive test coverage for various placeholder scenarios
- Handle missing environment variables gracefully by keeping original placeholders
- Add proper Javadoc documentation for new functionality

This enhancement allows dynamic configuration of Vault paths using
environment variables, making the configuration more flexible and
environment-specific.

Signed-off-by: Pavel Andrusov <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants