Case Study: User and SSH Access¶
Section status: outline
This case study is scoped but not yet written in full prose. The sections below define what it will cover.
Problem¶
A team of engineers needs individual, auditable SSH access to a fleet of servers — no shared accounts, no shared keys — and offboarding someone should be a one-line inventory change, not a manual per-server cleanup.
What It Will Cover¶
ansible.builtin.user/groupfor per-engineer accounts, looped over ateam_membersvariableansible.builtin.authorized_keyper user, sourced from individually named public key files (files/keys/<username>.pub)- Revoking access: removing an entry from
team_membersand re-running the playbook to remove both the account and its key — the idempotent teardown case, not just the idempotent setup case sudoers.dper-user drop-in files instead of one shared sudoers block, for auditable least-privilegebecome
Interview Questions¶
- How would you design this playbook so revoking one engineer's access is a single, safe re-run?
- Why individual accounts and keys instead of one shared "deploy" account for a whole team?
Next¶
Continue to Vault Secrets Case Study.