Lab · 13 / 16
Admin for one hour.
An engineer needs root on a production database to fix an incident. With PAM nobody holds that power permanently: it is granted for one task, watched, and taken back.
- Admin
- an engineer with a personal account
- PAM
- vault, broker and recorder
- Approver
- a second person who okays the task
- Server
- a production database server
- sign in + MFA
Step 1 of 6
A normal account, a strong login
In plain words You enter the vault room with your own badge and a second proof. Your badge alone opens nothing important.
The engineer signs in to PAM with a personal account through the IdP, with phishing-resistant MFA. That account has no admin rights of its own.
- request: root · db-prod-01 · 60 min
Step 2 of 6
Asking for access to one target
In plain words You say exactly which door, for how long and why, with the incident number.
The request names the target, the duration and a ticket. PAM can check the ticket in the ITSM tool and apply policies: which teams may ask for which servers, and at what times.
target: db-prod-01 (root) duration: 60 min reason: INC-48213 · replication stuck mode: SSH via PAM proxy, recorded - approve?
Step 3 of 6
Four eyes
In plain words A second person looks at the request before the key leaves the safe.
Production access needs an approver who is not the requester. For emergencies there is a break-glass path: immediate access, reviewed afterwards.
- approved · 60 min
Step 4 of 6
Access granted, with a timer
In plain words The yes comes with an expiry: after one hour the door closes on its own.
The approval is time-boxed and tied to the ticket. Nothing has changed on the server yet.
- session · credential injected
Step 5 of 6
The vault opens a session for youAn account is created just for this task
In plain words Someone opens the door for you with the master key, and you never touch the key.A key is cut for you, works only on this door, and melts after an hour.
PAM takes the root password from the vault and injects it into the SSH session through its proxy. The engineer never sees it. Every keystroke and command is recorded, and risky commands can be blocked.PAM creates a temporary account or adds the person to an admin group only for this window: zero standing privileges. The session still goes through the proxy and is recorded.
$ ssh ada@pam-proxy.example.com -t db-prod-01 [PAM] session 7f3a recorded · ends 09:47 root@db-prod-01:~# systemctl restart replication - end · rotate / remove
Step 6 of 6
The password is rotatedThe temporary account is removed
In plain words When you hand the key back, the lock is changed, so a copy would be useless.When the hour ends, the key is gone and there is nothing left to steal.
After check-in PAM sets a new random root password. The recording and the command log go to the SIEM, linked to the ticket and the approver.PAM deletes the account or removes the group membership. The recording and the command log go to the SIEM, linked to the ticket and the approver.
Flow complete.
Example domains and values. Nothing leaves your browser.