Interview Prep/Ansible/Security and Secrets

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.

All Ansible questions Roadmap: Ansible

More on Security and Secrets