How do you protect the control node?
BeginnerProductionSecurity and Secrets
Answer
The control node can reach (and usually root) every managed host, so it is a high-value target.
- Dedicated, patched host or ephemeral CI runner/EE container, not a shared laptop.
- Restrict who can log in, require MFA, and log sessions.
- Keep SSH keys and vault passwords out of the file system where possible (use an agent or short-lived creds).
- Network rules: it may reach hosts on 22, but nothing should reach it.
- Review who can merge to branches that production pipelines run.
Compromise of a pipeline equals compromise of the fleet, so treat CI configuration as production code.
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?IntermediateWhat are the alternatives to Ansible Vault for secrets, and when do you use them?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?Beginner