Interface VaultConfigHttpClientV1

All Superinterfaces:
VaultConfigHttpClient<VaultResponseV1>

@Client(value="${vault.client.uri}", configuration=VaultClientConfiguration.class) public interface VaultConfigHttpClientV1 extends VaultConfigHttpClient<VaultResponseV1>
A non-blocking HTTP client for Vault - KV v2.
Since:
1.2.0
Author:
thiagolocatelli
  • Field Details

  • Method Details

    • readConfigurationValues

      @Get("/v1/{backend}/{vaultKey}") @Produces(single=true) @Retryable(attempts="${pool.retry-count:3}", delay="${pool.retry-delay:1s}") org.reactivestreams.Publisher<VaultResponseV1> readConfigurationValues(@NonNull @Header("X-Vault-Token") @NonNull String token, @NonNull @NonNull String backend, @NonNull @NonNull String vaultKey)
      Reads an application configuration from Vault.
      Specified by:
      readConfigurationValues in interface VaultConfigHttpClient<VaultResponseV1>
      Parameters:
      token - Vault authentication token
      backend - The name of the secret engine in Vault
      vaultKey - The vault key
      Returns:
      A Publisher that emits a list of VaultResponseV1
    • getDescription

      default String getDescription()
      Specified by:
      getDescription in interface VaultConfigHttpClient<VaultResponseV1>
      Returns:
      The client description