Class HttpVaultBackend
java.lang.Object
com.scivicslab.turingworkflow.plugins.vault.HttpVaultBackend
- All Implemented Interfaces:
VaultBackend
VaultBackend that calls the Vault HTTP API directly.
Reads VAULT_ADDR and VAULT_TOKEN from environment variables.-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
HttpVaultBackend
- Throws:
VaultException
-
-
Method Details
-
get
Description copied from interface:VaultBackendReads a named field from a Vault KV v2 secret.- Specified by:
getin interfaceVaultBackend- Parameters:
path- KV path in CLI notation (e.g., "keycloak-local-llm/test-users")fieldName- name of the field inside the secret's data map- Returns:
- field value as String
- Throws:
VaultException- if the secret cannot be read or the field is absent
-