Class HttpVaultBackend

java.lang.Object
com.scivicslab.turingworkflow.plugins.vault.HttpVaultBackend
All Implemented Interfaces:
VaultBackend

public class HttpVaultBackend extends Object implements VaultBackend
VaultBackend that calls the Vault HTTP API directly. Reads VAULT_ADDR and VAULT_TOKEN from environment variables.
  • Constructor Details

  • Method Details

    • get

      public String get(String path, String fieldName) throws VaultException
      Description copied from interface: VaultBackend
      Reads a named field from a Vault KV v2 secret.
      Specified by:
      get in interface VaultBackend
      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