From d1adf67e99dd145406350668316e1527882643a1 Mon Sep 17 00:00:00 2001 From: Kevin Wooten Date: Tue, 26 Mar 2024 13:30:32 -0700 Subject: [PATCH] Allow applying a read timeout to JDKVaultHttpClient --- .../io/quarkus/vault/runtime/client/VaultClientProducer.java | 1 + 1 file changed, 1 insertion(+) diff --git a/runtime/src/main/java/io/quarkus/vault/runtime/client/VaultClientProducer.java b/runtime/src/main/java/io/quarkus/vault/runtime/client/VaultClientProducer.java index 057773c5..ee5b1b22 100644 --- a/runtime/src/main/java/io/quarkus/vault/runtime/client/VaultClientProducer.java +++ b/runtime/src/main/java/io/quarkus/vault/runtime/client/VaultClientProducer.java @@ -52,6 +52,7 @@ VaultClient createVaultClient(VaultHttpClient vaultHttpClient, VaultRuntimeConfi var vaultClientBuilder = VaultClient.builder() .baseUrl(config.url().orElseThrow(() -> new VaultException("no vault url provided"))) .executor(vaultHttpClient) + .requestTimeout(config.readTimeout()) .logConfidentialityLevel(config.logConfidentialityLevel()); configureAuthentication(vaultClientBuilder, config);