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.
More on Security and Secrets
How do you set up a secure automation user and SSH access?BeginnerHow do you give the automation user sudo with least privilege?IntermediateHow do you read AWS Secrets Manager and SSM parameters in a playbook?IntermediateHow do you integrate HashiCorp Vault with Ansible?AdvancedHow do you stop secrets from leaking into logs and output?BeginnerHow do you handle the vault password in CI/CD?Intermediate