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

A new hire needs access to staging vault only. How do you set that up?

BeginnerScenarioSecurity: Vault, Become and Compliance
Answer

Situation read → Least-privilege secrets.

What I'd do → Give them only the staging vault ID password and use separate vault files per environment so the prod files remain unreadable.

Why → The prod password is never shared, so prod files stay opaque to them.

Interview tip → Combine with separate inventories and CI roles.

All Ansible questions Roadmap: Ansible

More on Security: Vault, Become and Compliance