Interview Prep/Ansible/Security and Secrets

What are the alternatives to Ansible Vault for secrets, and when do you use them?

IntermediateProductionSecurity and Secrets
Answer

Vault is simple and works offline, but secrets are static and rotation is manual. For larger setups pull secrets at run time from a manager through lookup plugins: HashiCorp Vault (community.hashi_vault), AWS Secrets Manager or SSM Parameter Store (amazon.aws), Azure Key Vault, CyberArk, or AAP's credential plugins.

Run-time lookups give central rotation, audit trails and per-identity access. The costs are an extra dependency in every run and that the controller needs credentials to the secret store. We usually use Vault for bootstrap secrets (the secret manager's own credentials) and the secret manager for everything else.

All Ansible questions Roadmap: Ansible

More on Security and Secrets