Closed epheatt closed 5 years ago
@epheatt I have tried reproducing the issue locally, but have been unable to do so. Which version of the Mule runtime are you using? If running via studio, which version of studio are you using?
In my sample, I am connecting to a local vault server that has this configuration:
ui = true
storage "inmem" {}
listener "tcp" {
address = "127.0.0.1:8200"
tls_cert_file = "ssl/vault-cert.pem"
tls_key_file = "ssl/vault-privkey.pem"
}
In my sample project, my configuration looks like this (using Vault properties provider version 0.3.0, Anypoint Studio version 7.3.2, Mule runtime version 4.1.4):
<vault-properties-provider:config name="Vault_Properties_Provider_Config">
<vault-properties-provider:token-connection vaultUrl="https://127.0.0.1:8200" engineVersion="v2" vaultToken="s.t3Lh3e4cQdWoqGrtAW6oH88m" >
<vault-properties-provider:ssl-properties pemFile="ssl/root-cert.pem" />
</vault-properties-provider:token-connection>
</vault-properties-provider:config>
root-cert.pem is the parent cert for vault-cert.pem.
I changed the pemFile path to be "${mule.home}/apps/${app.name}/ssl/root-cert.pem" and the null pointer error for the properties was resolved so I guess the resource was just not getting resolved to a relative path. In the current annotated version of the code I see the verifySSL override has been removed, is there any intention of reintroducing the ability to disable verification for development environments?
The verifySSL parameter has been added back in with 0.3.2.
When using a combination a basic vaultToken and ssl pemFile (holding the chain cert) a null pointer is thrown by spring properties resolver when connecting to a https vault url. When pemFile is removed and verifySSL=false able to successfully connect with a token to a https vault url