A teammate committed `.vault_pass` to Git. What now?
BeginnerScenarioSecurity: Vault, Become and Compliance
Answer
Situation read → Leaked master secret.
What I'd do →
- Treat every vault encrypted with it as compromised.
- Rekey vaults with a new password and rotate the secrets inside.
- Remove the file from history if policy requires (
git filter-repo), but assume it is already exposed. - Add it to
.gitignoreand a pre-commit secret scanner.
Why → Deleting the file does not delete history or clones.
Interview tip → Say "rotate first, clean history second".
More on Security: Vault, Become and Compliance
Database passwords are sitting in plain text in `group_vars`. How do you fix it?BeginnerYou need separate vault passwords for staging and prod.IntermediateHow do you change the vault password for all encrypted files?IntermediateA CI pipeline needs the vault password without storing it in the repo.IntermediateYou want to see the value inside an encrypted file without writing a decrypted copy to disk.BeginnerOnly one value in a vars file is secret and you want it in the same file as plain values.Beginner