vault password
The password that unlocks Vault-encrypted data; Ansible needs it at run time and it must never be stored in the repository.
Anyone holding the vault password can decrypt every secret encrypted with it.
In more detail
Supply it with --ask-vault-pass, a password file outside the project, or a script that fetches it from a secret store. Who can read the password decides who can read every secret it protects, so control and rotate it like any other credential.
Related terms
- Ansible Vault — Ansible's built-in feature and command for encrypting secrets such as passwords and keys so the encrypted files can live in the project.
- vault ID — A label attached to Vault-encrypted data that names which password protects it, so one project can use different passwords for different environments.
- secret store — A dedicated service that stores secrets such as passwords and keys, controls who may read them and records each access.
- key rotation — Replacing a password or key with a new one on a schedule or after a suspected leak, and re-encrypting what it protected.
Taught in
- Securing Data With Ansible Vault — Ansible Configuration Management at Scale
- Vault IDs And Multiple Passwords — Ansible Configuration Management at Scale
- Users And Groups From A List, With Passwords That Settle — RHCE in Ansible (EX294): Automate Red Hat Systems
- Ansible Vault: Secrets Encrypted, Runs Without A Prompt — RHCE in Ansible (EX294): Automate Red Hat Systems
- Drill: People, Passwords And sudo From The Vault — RHCE in Ansible (EX294): Automate Red Hat Systems
- Mock Exam, Part 1: Seven Tasks Across Three Sections — RHCE in Ansible (EX294): Automate Red Hat Systems