Class KubectlVaultBackend
java.lang.Object
com.scivicslab.turingworkflow.plugins.vault.KubectlVaultBackend
- All Implemented Interfaces:
VaultBackend
VaultBackend that reads secrets via kubectl exec into a Vault pod.
Used when Vault is ClusterIP-only inside a k8s cluster.-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
KubectlVaultBackend
-
-
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
-