Package io.quarkus.vault
Interface VaultKVSecretReactiveEngine
- All Known Implementing Classes:
VaultKvManager
public interface VaultKVSecretReactiveEngine
This service provides access to the kv secret engine, taking care of authentication,
and token extension or renewal, according to ttl and max-ttl.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionio.smallrye.mutiny.Uni<Void>deleteSecret(String path) delete secret for the default kv engine mount path.io.smallrye.mutiny.Uni<Void>deleteSecret(String alias, String path) Deletes the secret at the given path.listSecrets(String path) List all paths under the specified path for the default kv engine mount path.listSecrets(String alias, String path) List all paths under the specified path.readSecret(String path) read secret for the default kv engine mount path.readSecret(String alias, String path) Provides the values stored in the Vault kv secret engine at a particular path.readSecretJson(String path) read secret as json for the default kv engine mount path.readSecretJson(String alias, String path) Provides the values stored in the Vault kv secret engine at a particular path.io.smallrye.mutiny.Uni<Void>Writes the secret at the given path.io.smallrye.mutiny.Uni<Void>writeSecret(String path, Map<String, String> secret) write secret for the default kv engine mount path.
-
Method Details
-
readSecret
Provides the values stored in the Vault kv secret engine at a particular path. This is a shortcut to `readSecretJson(String)` when the secret value is a String, which is the common case.- Parameters:
alias- the name of the kv engine mount path, orfor the default kv engine path- in Vault, without the kv engine mount path- Returns:
- list of key value pairs stored at 'path' in Vault
-
readSecret
read secret for the default kv engine mount path.- See Also:
-
readSecretJson
Provides the values stored in the Vault kv secret engine at a particular path.- Parameters:
alias- the name of the kv engine mount path, orfor the default kv engine path- in Vault, without the kv engine mount path- Returns:
- list of key value pairs stored at 'path' in Vault
-
readSecretJson
read secret as json for the default kv engine mount path.- See Also:
-
writeSecret
Writes the secret at the given path. If the path does not exist, the secret will be created. If not the new secret will be merged with the existing one.- Parameters:
alias- the name of the kv engine mount path, orfor the default kv engine path- in Vault, without the kv engine mount pathsecret- to write at path
-
writeSecret
write secret for the default kv engine mount path.- See Also:
-
deleteSecret
Deletes the secret at the given path. It has no effect if no secret is currently stored at path.- Parameters:
alias- the name of the kv engine mount path, orfor the default kv engine path- to delete
-
deleteSecret
delete secret for the default kv engine mount path.- See Also:
-
listSecrets
List all paths under the specified path.- Parameters:
alias- the name of the kv engine mount path, orfor the default kv engine path- to list- Returns:
- list of subpaths
-
listSecrets
List all paths under the specified path for the default kv engine mount path.- See Also:
-