Vault KV Secrets with escape characters

Using a HA vault/consul cluster to store KV secrets which are then pulled via terraform to build more vault resources. I am able to store the password fine by escaping the slashes in the api call on creation just fine.

The issue I am seeing now, I need to use that password as a variable in my Terraform code and then pass it again via api to further configure other Vault namespaces, however as the password contains the escape characters the vault api does not accept my variable.

Does Vault/Terraform contain anything to account for escape characters being used in variables?

1 Like

@copeia - I have the same use case. Were you able to find any solution for this?