# What characters are allowed in a vault-id?

**URL:** <https://forum.ansible.com/t/what-characters-are-allowed-in-a-vault-id/38671>\
**Category:** Ansible Project\
**Created:** [January 30, 2024, 1:43pm UTC](https://forum.ansible.com/t/what-characters-are-allowed-in-a-vault-id/38671 "2024-01-30T13:43:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dnmvisser](https://avatars.discourse-cdn.com/v4/letter/d/8e8cbc/32.png) [@dnmvisser](https://forum.ansible.com/u/dnmvisser)\
**Post date:** [January 30, 2024, 1:43pm UTC](https://forum.ansible.com/t/what-characters-are-allowed-in-a-vault-id/38671/1 "2024-01-30T13:43:19Z")

</div>

As it says on the tin. What are the requirements for a vault-id?  
Length? Characters? What not?  
Looking at the docs I’m guessing it cannot contain @ or ; but is there more?

thx

Dick

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/ansible/original/1X/1882d9a01da5d8996a862359b0913cc568a39b84.svg) [@system](https://forum.ansible.com/u/system)\
**Post date:** [January 30, 2024, 2:34pm UTC](https://forum.ansible.com/t/what-characters-are-allowed-in-a-vault-id/38671/2 "2024-01-30T14:34:43Z")

</div>

No explicit limitations exist, but now that you ask I'm thinking there  
should be.

---

<div class="post-metadata">

**Author:** ![Nico\_Kadel-Garcia](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/nico_kadel-garcia/32/9998_2.png) [@Nico\_Kadel-Garcia](https://forum.ansible.com/u/Nico_Kadel-Garcia)\
**Post date:** [January 30, 2024, 4:57pm UTC](https://forum.ansible.com/t/what-characters-are-allowed-in-a-vault-id/38671/3 "2024-01-30T16:57:47Z")

</div>

Syntactic sugar is always an issue with configuration tools.  
Punctuation like "@", "$", ",", "!", quotation marks and anything that  
may be interpreted on the fly by a scripting language or by regexp  
pattern matching is a problem.
