BetterCloud / vault-java-driver

Zero-dependency Java client for HashiCorp's Vault
https://bettercloud.github.io/vault-java-driver/
335 stars 224 forks source link

VaultConfig is failing to normalise address when loading from environment #200

Open rtib opened 4 years ago

rtib commented 4 years ago

When setting up an address having a trailing slash (/), the driver will work fine since VaultConfig#address will normalise the address. Providing the same address via environment variable VAULT_ADDR and let the driver load it, the VaultConfig#build method is bypassing the address normalisation, ending up in a broken config.

juggernaut0 commented 4 years ago

Just got bit by this, would be nice to have consistent behaviour.