Interview Prep/Ansible/Security: Vault, Become and Compliance

A teammate committed `.vault_pass` to Git. What now?

BeginnerScenarioSecurity: Vault, Become and Compliance
Answer

Situation read → Leaked master secret.

What I'd do →

  1. Treat every vault encrypted with it as compromised.
  2. Rekey vaults with a new password and rotate the secrets inside.
  3. Remove the file from history if policy requires (git filter-repo), but assume it is already exposed.
  4. Add it to .gitignore and a pre-commit secret scanner.

Why → Deleting the file does not delete history or clones.

Interview tip → Say "rotate first, clean history second".

All Ansible questions Roadmap: Ansible

More on Security: Vault, Become and Compliance