Interface VaultBackend
- All Known Implementing Classes:
HttpVaultBackend,KubectlVaultBackend
public interface VaultBackend
Strategy for reading a field from a Vault KV v2 secret.
Two implementations exist:
HttpVaultBackend and KubectlVaultBackend.-
Method Summary
-
Method Details
-
get
Reads a named field from a Vault KV v2 secret.- 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
-