-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds ability to specify a default secret path when loading from vault (…
- Loading branch information
1 parent
689ac8e
commit fad43d7
Showing
20 changed files
with
434 additions
and
289 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
src/main/java/com/github/sitture/envconfig/EnvConfigKey.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
package com.github.sitture.envconfig; | ||
|
||
enum EnvConfigKey { | ||
|
||
CONFIG_PATH("env.config.path"), | ||
CONFIG_ENV("env.config.environment"), | ||
CONFIG_PROFILE("env.config.profile"), | ||
CONFIG_PROFILES_PATH("env.config.profiles.path"), | ||
CONFIG_KEEPASS_ENABLED("env.config.keepass.enabled"), | ||
CONFIG_KEEPASS_FILENAME("env.config.keepass.filename"), | ||
CONFIG_KEEPASS_MASTERKEY("env.config.keepass.masterkey"), | ||
CONFIG_VAULT_ENABLED("env.config.vault.enabled"), | ||
CONFIG_VAULT_ADDRESS("env.config.vault.address"), | ||
CONFIG_VAULT_NAMESPACE("env.config.vault.namespace"), | ||
CONFIG_VAULT_DEFAULT_PATH("env.config.vault.default.secret.path"), | ||
CONFIG_VAULT_SECRET_PATH("env.config.vault.secret.path"), | ||
CONFIG_VAULT_TOKEN("env.config.vault.token"), | ||
CONFIG_VAULT_VALIDATE_MAX_RETRIES("env.config.vault.validate.token.max.retries"); | ||
|
||
private final String property; | ||
|
||
EnvConfigKey(final String property) { | ||
this.property = property; | ||
} | ||
|
||
public String getProperty() { | ||
return this.property; | ||
} | ||
|
||
public String getEnvProperty() { | ||
return EnvConfigUtils.getProcessedEnvKey(this.property); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.