# Vault KV Secrets with escape characters

**URL:** <https://discuss.hashicorp.com/t/vault-kv-secrets-with-escape-characters/13267>\
**Category:** Vault\
**Tags:** terraform-enterprise, consul-vault\
**Created:** [August 24, 2020, 12:06pm UTC](https://discuss.hashicorp.com/t/vault-kv-secrets-with-escape-characters/13267 "2020-08-24T12:06:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![copeia](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/copeia/32/10906_2.png) [@copeia](https://discuss.hashicorp.com/u/copeia)\
**Post date:** [August 24, 2020, 12:06pm UTC](https://discuss.hashicorp.com/t/vault-kv-secrets-with-escape-characters/13267/1 "2020-08-24T12:06:41Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![Tyrantoodle](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/tyrantoodle/32/13073_2.png) [@Tyrantoodle](https://discuss.hashicorp.com/u/Tyrantoodle)\
**Post date:** [October 15, 2020, 1:02pm UTC](https://discuss.hashicorp.com/t/vault-kv-secrets-with-escape-characters/13267/2 "2020-10-15T13:02:26Z")

</div>

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