This is an automated email from the ASF dual-hosted git repository.

mridulpathak pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ofbiz-plugins.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 5ae64bdd7 Upgrade vault-java-driver to 6.2.3 in secretshub
5ae64bdd7 is described below

commit 5ae64bdd72740dd2767d36710fbe28e0d9d354be
Author: Mridul Pathak <[email protected]>
AuthorDate: Sun Oct 25 22:31:02 2026 +0530

    Upgrade vault-java-driver to 6.2.3 in secretshub
    
    vault-java-driver 6 turned Vault into an interface, so the HashiCorp Vault 
provider creates its clients with Vault.create(config), which builds a 
VaultImpl with the same constructor logic as the 5.x Vault class.
---
 secretshub/build.gradle                                               | 2 +-
 .../apache/ofbiz/hashicorpvault/HashicorpVaultSecretsProvider.java    | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/secretshub/build.gradle b/secretshub/build.gradle
index abff2679e..11896e711 100644
--- a/secretshub/build.gradle
+++ b/secretshub/build.gradle
@@ -50,7 +50,7 @@ dependencies {
 
     pluginLibsCompile 'com.google.cloud:google-cloud-secretmanager:2.99.0'
 
-    pluginLibsCompile 'io.github.jopenlibs:vault-java-driver:5.4.0'
+    pluginLibsCompile 'io.github.jopenlibs:vault-java-driver:6.2.3'
 }
 
 // AWS SDK v2 and others bundle several items that conflict with OFBiz's 
global exclusions
diff --git 
a/secretshub/src/main/java/org/apache/ofbiz/hashicorpvault/HashicorpVaultSecretsProvider.java
 
b/secretshub/src/main/java/org/apache/ofbiz/hashicorpvault/HashicorpVaultSecretsProvider.java
index 5e2c398e7..cf43fab79 100644
--- 
a/secretshub/src/main/java/org/apache/ofbiz/hashicorpvault/HashicorpVaultSecretsProvider.java
+++ 
b/secretshub/src/main/java/org/apache/ofbiz/hashicorpvault/HashicorpVaultSecretsProvider.java
@@ -193,7 +193,7 @@ public final class HashicorpVaultSecretsProvider implements 
SecretProvider {
                         .engineVersion(kvVersion)
                         .sslConfig(ssl)
                         .build();
-                token = new Vault(bootConfig)
+                token = Vault.create(bootConfig)
                         .auth()
                         .loginByAppRole(roleId, secretId)
                         .getAuthClientToken();
@@ -210,7 +210,7 @@ public final class HashicorpVaultSecretsProvider implements 
SecretProvider {
 
             Debug.logInfo("HashicorpVaultSecretsProvider: initialized 
address=" + address
                     + " auth=" + authMethod + " kv-version=" + kvVersion, 
MODULE);
-            return new Vault(config);
+            return Vault.create(config);
 
         } catch (VaultException e) {
             throw new RuntimeException("HashicorpVaultSecretsProvider: 
initialization failed: " + e.getMessage(), e);

Reply via email to