Identity and access Privileged access management 4 min read
What is privileged access management?
A coding agent needs to update one repository and open a pull request. Should it use your personal GitHub token with access to everything you can reach?
-
Treat the agent as its own identity
Privileged access management (PAM) controls powerful accounts and credentials: who can get them, what they can reach, how long they last, and how their use is reviewed. The same questions apply when the actor is an automated agent.
Instead of handing the agent a developer’s personal access token, give the automation its own identity. A GitHub App can receive an installation access token for the repositories where it is installed.
A coding agent requests access through its GitHub App identity. The app receives a temporary token limited to one repository and pull-request permissions, then uses it to open a pull request.
The agent gets its own task credential, not a person’s broad token. In short Give automation its own identity and credential.
-
Constrain the token to the job
Limit the app installation to the repository the agent needs. Request only the required permissions—for example, contents access to prepare a branch and pull-request access to open a review—rather than broad organization administration.
GitHub installation tokens expire after one hour. If the agent’s run takes longer, its integration can request another token under the same narrow policy. Access can also be revoked when it is no longer needed.
In short Choose the repository, permissions, and lifetime deliberately.
-
Control and review privileged use
A PAM workflow can require approval for sensitive access, protect the app’s private key in a secret store, issue short-lived credentials, and log which agent or task used them.
If a task is compromised, revoke its credential and review the audit trail. A short lifetime and narrow permission set reduce exposure, but do not replace reviewing the agent’s changes.
In short Make powerful access temporary, attributable, and revocable.
What PAM doesn’t guarantee
A short-lived token can still be abused while it is valid. PAM can constrain and record access, but it cannot ensure that the agent’s requested change is correct or benign.
A GitHub App is one implementation example, not the definition of PAM. Use the identity and credential controls supported by each system, and keep the permissions narrow.
Keep this
Give an agent its own short-lived credential for one repository and one task.
For automation, separate the agent’s identity from a person’s account, grant the fewest repository permissions needed, issue access for a limited time, and keep an audit trail.- Identity
- Use an app identity for automation, not a developer’s personal token.
- Scope
- Limit the repositories and permissions the credential can reach.
- Time
- Prefer credentials that expire or can be revoked quickly.
- Audit
- Record what requested and used privileged access.
Questions worth carrying
Is PAM only for human administrators?
No. Privileged access controls also matter for services, scripts, and agents that can change production systems or source code. Their identities and credentials need scope, expiry, protection, and review too.
Why not give the agent a developer’s personal access token?
A personal token is tied to that user and can carry access beyond this task. A GitHub App installation token identifies the app installation, can be limited to selected repositories and permissions, and expires after one hour.