Qraukus, hashicorp vault , multiple mount path in the properties quarkus.vault.kv-secret-engine-mount-path #36061
Unanswered
chakerfezai
asked this question in
Q&A
Replies: 2 comments 1 reply
-
/cc @vsevel (vault) |
Beta Was this translation helpful? Give feedback.
0 replies
-
You can create a class and use the same source code as the method VaultKvManager.readSecret(String) located on quarkus-vault extension. Here is an example using quarkus-vault 1.1.0 : public Map<String, String> readSecret(String mount, String path) {
String clientToken = this.vaultAuthManager.getClientToken();
VaultKvSecretV2 secret = this.vaultInternalKvV2SecretEngine.getSecret(clientToken, mount, path);
return secret.data.data;
} Your can inject all dependencies by using @Inject annotation. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Beta Was this translation helpful? Give feedback.
All reactions