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

    Modifier and Type
    Method
    Description
    get(String path, String fieldName)
    Reads a named field from a Vault KV v2 secret.
  • Method Details

    • get

      String get(String path, String fieldName) throws VaultException
      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