auditing-ansible-become-and-vault-trustlisted
Install: claude install-skill UnboundCompute/security-agent-skills
# Auditing Ansible become and vault trust: when the control node runs as root everywhere
An agentless configuration tool is a fleet-wide root shell with a scheduler. The control node connects to
every managed host and runs tasks that escalate privilege, and it decrypts the secrets those tasks need. Two
trust questions decide the blast radius. First, escalation scope: become is often set at the play or role
level so every task runs privileged, and any role, variable, or templated input that flows into those tasks
runs as root on every host it touches. Second, secret handling: vault-encrypted values are only as protected
as the decryption key, and a key exposed to the runner, passed on a command line, or logged is a fleet-wide
secret leak. When a play escalates and decrypts across many hosts, an untrusted role or an exposed key is not
one host's problem. You audit this by scoping where escalation applies and tracing what runs under it, and by
checking how vault secrets are decrypted and whether the key or the plaintext leaks.
## When to use
- Playbooks escalate privilege with become across managed hosts, often at the play or role level.
- Roles, collections, or variables come from shared or external sources and run under that escalation.
- Vault-encrypted secrets are decrypted on the control node, and the key or plaintext handling may leak.
## Scope check
Audit playbooks and vault handling only for fleets and control nodes you own or are authorized to assess, on
non-produc