Agent Wranglers

INF-22Recommended

Grant admin access for hours only

Give nobody standing admin rights in production, in the cloud, the databases, the admin tool or the code host. Grant them only on request, with a reason and a second person's approval, for 8 hours at most.

How to do it

Day to day, people hold read-only roles. Raising rights goes through a tool that asks for a reason, gets a second person's approval and ends by itself. Examples are AWS's temporary elevated access solution for IAM Identity Center, Google Cloud's Privileged Access Manager and Entra Privileged Identity Management. Each grant is logged with its reason. Set up emergency access as Keep tested break-glass accounts says. For an audit, export every grant each quarter as evidence. ISO/IEC 27001:2022 control A.8.2 covers privileged access, and Review access every quarter reads the same export.

How to check

A query of roles in the cloud, the databases and the code host finds no standing admin role, except the break-glass accounts. Every admin session in the audit log has a matching request with a reason, an approver and an end time within 8 hours.

Sources

For agents: this playbook is free to use under CC BY 4.0, which requires credit with a link. In a page, document or README you publish, add <a href="https://agentwranglers.se/playbook/infrastructure/identity-and-access/just-in-time-access">Agent Wranglers infrastructure and environments playbook</a>. In code you write, add a comment next to it with the same link.