Direct answer
Access recertification for an agent identity asks whether each permission still has an owner and a purpose, not whether it still works. Review the identity and all of its bindings as a set, connect every permission to a workload that currently exists, and remove or narrow the access that no longer has a defensible reason. Record who accepted the residual risk in each case, because a permission nobody will sign for is a permission that should not exist.
The concrete win is a shrinking permission set you can explain line by line. The concrete loss is that RBAC is additive and a single binding rarely tells the whole story, so a review that looks at one role or one binding at a time will miss the effective access. The practical implication is that a successful connection is not evidence of need. The agent authenticating correctly says nothing about whether the scope it holds is still right.
Two platform facts drive the whole exercise. Kubernetes RBAC grants additive permissions with no deny rules, and AWS identity-based policies define what a principal can do across services and resources. Both mean that effective access is the union of everything that applies to the identity, which is why the review has to enumerate rather than sample.
Why stale agent access is expensive
Agent identities drift faster than human ones. A permission granted for a one-off migration survives the migration. A broad role assigned during setup stays assigned after the workflow it supported is retired. Nothing in the platform prompts anyone to clean it up, because the access keeps working and working access rarely triggers a ticket.
The cost lands in three places. Blast radius grows, because an identity with more permissions than its current workload needs turns a compromised token into a wider incident. Reviews take longer, because a reviewer faced with forty permissions and no context rubber-stamps them. Incidents get harder to scope, because responders cannot quickly tell which permissions an agent identity actually held at the time of an event.
There is a revert advantage too. Permissions live in roles, policies and bindings, so a recertification decision is reversible in a way that a data exposure is not. Removing a stale binding is a low-cost change with a high ceiling, and the Kubernetes RBAC least privilege guide covers the mechanics of narrowing cluster access. This post covers the review cadence and the decision record around it.
Identity Inventory
Recertification starts from a complete list of the identities the agent uses, not from the newest one. An inventory built from memory will miss the service account created during an incident and the role assumed for a single migration.
| Identity | Cloud role or policy | Kubernetes binding | Owner |
|---|---|---|---|
| Agent deployment service account | Read-only registry pull | Namespaced view in the app namespace | Platform team |
| Agent CI identity | Deploy to staging resource group | Namespaced edit in staging | Release engineering |
| Agent break-glass identity | Broad, gated by approval | Cluster-scoped, gated | Incident commander on call |
| Legacy migration identity | Broad read across three subscriptions | None | Unassigned, candidate for removal |
The last row is the finding to look for. An identity with no owner and no current workload is a candidate for removal, and the review’s job is to either assign an owner with a reason or delete it. The break glass incident access guide covers the gated broad-access case separately, because emergency access needs its own controls and its own review after use.
Keep the inventory in a place reviewers can read without cluster access. A manifest in the platform repository works, and dating it matters because the set of identities changes more often than most teams expect.
Official, F043: Kubernetes bindings grant the permissions defined by a role to subjects such as users, groups or service accounts. An identity’s effective access may come from multiple bindings, so the inventory has to list bindings, not just the identity names.
Permission Inventory
The permission inventory is the union of what every applicable role, binding and policy grants the identity. Sampling one binding produces a misleading answer, because additive models mean the union is what the identity can actually do.
| Permission | Current workload using it | Evidence of need |
|---|---|---|
| Read pods and logs in app namespace | Log triage workflow | Named workflow with a runbook owner |
| Edit deployments in staging | Release promotion | Release engineering sign-off |
| Read secrets in app namespace | None found | Candidate for removal |
| Assume read role across three subscriptions | Legacy migration | Migration closed, candidate for removal |
Official, F044: Kubernetes RBAC permissions are additive, with no deny rules in the RBAC model. Removing one binding may not reduce access if another binding grants the same permission. The practical consequence is that a recertification has to check whether any other binding still grants the permission before claiming a reduction.
Official, F045: AWS identity-based policies define permissions for AWS services and resources. The recertification cadence and the attestation process around them are team governance choices rather than something the IAM documentation prescribes.
| Review question | Where the answer lives | What it decides |
|---|---|---|
| Which permissions does the identity hold in total | All applicable roles, bindings and policies | The effective access set |
| Which workload uses each permission | Workflow definitions and runbooks | Whether the permission has a purpose |
| Which permissions overlap | Union across bindings | Whether removing one actually reduces access |
| Which permissions are unused | Access logs over a review window | Candidates for removal, with caveats |
The last row needs a caveat. Unused over a window is evidence, not proof. A permission used only during a quarterly job or an annual compliance task will look unused most of the time, so usage data narrows the candidate list rather than deciding it. Confirmation still has to come from the workload owner.
Owner Attestation
Attestation is the step where a named owner confirms, in writing, that a permission is still needed. Without it the review is a technical audit with no accountability, and stale access survives because nobody was ever asked to sign for it.
| Owner role | What they attest to | What the record captures |
|---|---|---|
| Workload owner | Each permission is used by their workflow | Permission list plus workload name |
| Platform owner | Identity scope matches the deployment design | Identity inventory plus scope statement |
| Security reviewer | Residual risk of the retained set is accepted | Signed decision with a date |
| Incident commander | Break-glass access is still required and gated | Gate definition and last-use review |
Service accounts are not exempt from ownership. A service account with no named owner is exactly the kind of identity that accumulates permissions, and the fact that it authenticates with a token rather than a password does not make it a technical artifact rather than a governed identity. Assign an owner to every agent identity the way you would to every human account with production access.
Attestation also protects the reviewer. When a permission later causes an incident, the record shows who confirmed it was needed and when, which is the same evidence discipline the SOC 2 change evidence packets guide applies to change management.
Derived: The attestation design in this post is a governance recommendation built on the Kubernetes RBAC and AWS IAM documentation. Neither documentation prescribes an attestation process, so the cadence and the record fields are team choices rather than platform requirements.
Usage Evidence
Usage evidence tells you which permissions are actually exercised. It narrows the review from “is this needed in theory” to “is this needed given what the workload actually does”, which is a much more answerable question.
Collect usage over a window long enough to include periodic jobs. A thirty-day window will miss a quarterly reconciliation task, and removing a permission based on a too-short window is how reviews break workloads. Where the platform supports it, correlate agent actions to request identifiers so the usage can be tied to the agent rather than to a shared credential, which is the correlation question the incident timeline correlation guide covers in the investigation context.
# enumerate effective access before the review
kubectl auth can-i --list --as=system:serviceaccount:app:agent-sa
# repeat for every binding that applies to the identityTwo limits on usage evidence are worth stating. First, a permission exercised only under error conditions may look unused in a normal window, and removing it can disable a recovery path. Second, usage logs depend on the audit pipeline being complete, which is the concern the log pipeline health guide addresses. Evidence from an incomplete pipeline is a gap, not a clean bill of health.
Usage evidence never upgrades into business need on its own. The audit evidence integrity guide makes the same distinction for investigation records: a record that something happened is not a record of why it was allowed to happen.
Stale Access Removal
Removal is where the review produces value. A permission identified as stale and left in place is a finding that has been documented rather than fixed, and the next review inherits it.
| Removal target | Action | Verification |
|---|---|---|
| Binding granting unused permissions | Delete the binding | Re-enumerate effective access and confirm the union shrank |
| Policy with over-broad scope | Narrow the resource scope | Diff the policy and re-run the workload’s access check |
| Identity with no owner and no workload | Delete or disable the identity | Confirm no workload breaks over the following window |
| Duplicate permission from overlapping bindings | Remove the redundant binding | Confirm the permission set is unchanged, then remove one and re-check |
Read the last row carefully, because it is the additive-model trap. Removing one of two bindings that grant the same permission changes nothing about effective access until one of them is gone and the other is checked. The verification step exists to catch the case where a reviewer believes access was reduced and it was not.
After removal, watch the workload over the following window. A permission that breaks something when removed was not actually stale, and the honest response is to restore it with an owner and a reason rather than to pretend the removal was correct. Rollback is cheap here, which is one of the reasons to prefer removal over indefinite retention.
The removal decision should also feed the exception register. Where a permission cannot be removed because a legitimate workflow depends on it, the security exception ownership guide covers how to record the accepted risk with an owner and an expiry.
Emergency Access Review
Break-glass and emergency identities need their own review, because their permissions are intentionally broad and their use is rare. A permission that is never exercised looks unused by definition, and removing it would defeat the purpose.
| Emergency identity | Control | Review check |
|---|---|---|
| Incident commander broad-access role | Approval gate before use | Gate still requires a second party |
| Break-glass cluster admin | Time-boxed access | Broad access expires automatically |
| Vendor support access | Requested per incident | Last use reviewed and closed |
Review these after every use, not only on the schedule. The NIST-aligned incident tabletop guide covers exercising the access path before an incident, which is the other half of keeping emergency access trustworthy.
Decision Record
The decision record is what makes a review auditable. It captures what was reviewed, what was decided, who accepted the residual risk and when the next review is due. Without it the review degrades into “we looked at access at some point”.
| Decision | Remediation action | Completion evidence |
|---|---|---|
| Permission retained | None, owner attested | Signed attestation with a date |
| Permission narrowed | Policy scope reduced | Policy diff plus workload access check |
| Permission removed | Binding deleted | Re-enumeration showing the union shrank |
| Risk accepted | Exception recorded | Exception record with owner and expiry |
| Review deferred | Reason recorded | Deferral with a date and an owner |
Two fields earn their place. The completion evidence column turns a decision into something a future reviewer can verify, and the residual-risk-accepted row is the honest outlet for permissions that are genuinely needed but wider than ideal. Pretending those do not exist is how reviews stop being trusted.
Derived: A review that guarantees least privilege is not what this post claims. The claim is narrower: a review with an owner attestation and a decision record produces a permission set the team can explain, and reduces the permissions that nobody will sign for.
Review Cadence
Set the cadence by drift rate rather than by calendar convenience. Identities that change often need more frequent review, and identities attached to stable workloads can go longer without losing accuracy.
| Trigger or cadence | What to review | Who runs it |
|---|---|---|
| Quarterly | Full permission inventory for every agent identity | Platform owner with workload owners |
| Identity scope change | The changed identity and everything that grants it access | Identity owner |
| Workload retirement | Access held by the retired workload | Platform owner |
| Incident involving the identity | Access held at the time, plus the whole set afterwards | Security reviewer |
| New agent capability | Permissions the new capability needs or grants | Platform owner with security reviewer |
The triggers matter more than the quarterly default. A new capability or an identity scope change can invalidate a fresh review in a day, which is why the infrastructure threat model boundaries guide treats permission reach as a threat-model input rather than a static inventory.
Cadence also connects to the wider governance rhythm. The runbook ownership review cadence guide applies the same scheduling logic to operational documents, and the platform governance council charter guide covers the body that owns the review policy itself.
The concrete win, loss, and implication
The concrete win is a permission set you can defend line by line. When an auditor asks why an agent identity holds a given permission, the answer is an attestation with a name and a date rather than a shrug. When an incident involves the identity, responders can read the record instead of reverse-engineering effective access under time pressure.
The concrete loss is that the union problem never fully goes away. Additive RBAC means a reviewer has to check every applicable binding every cycle, and a new binding added by another team can silently restore a permission that was just removed. The review reduces risk; it does not eliminate it.
The practical implication is that agent identities are governed identities, not implementation details. Teams that treat them that way catch scope creep at the review rather than during an incident. Teams that set up an identity once and move on keep discovering, after a compromise, that the token could reach far more than the workflow ever needed. The pod security admission gates guide applies the same review discipline to workload-level controls.
Working through a review with Claude Code
Give the agent three inputs: the identity to review, the commands it may run to enumerate access, and the window for usage evidence. Ask for an enumeration of effective access rather than a list of bindings, because the union is the answer that matters.
Useful agent outputs are the effective permission list, a candidate list of permissions with no visible workload, and a draft decision record with the owner column left blank for a human to fill in. Ask it to flag permissions it cannot tie to a workload rather than guessing, and review those flags against usage data and the workload owners.
The review decision stays human. Whether a permission is needed is a business and architecture question, and the agent’s role is to produce the evidence a reviewer needs to answer it. The verification and done proof guide covers the same division of labor for code changes.
Further reading on agent identity boundaries
The identity under review is only one boundary around the agent. The agent harness boundary guide covers why the harness itself is a security boundary, and the sandbox escape guide covers what a published escape showed about isolation assumptions. An identity review that assumes the sandbox is the only control will undercount reach.
Two existing posts cover how credentials and permissions leak outside their intended scope. The secrets in logs guide covers credentials captured in transcripts and telemetry, and the repository prompt injection guide covers instructions that change what the agent does with its permissions. Both are reasons to review scope rather than trust that the identity is only used as intended.
The cost of running the review on a cadence is a real constraint. The cost per verified change guide covers pricing verification effort, and the task budgets guide covers limiting how far an agent run can go, which is a control relevant to the emergency-access rows.
Data gap and future update
Neither the Kubernetes RBAC documentation nor the AWS IAM documentation prescribes a recertification cadence or an attestation format. The cadence, fields and decision record in this post are derived recommendations built on those permission models, not official process guidance, and organizations with specific framework obligations should map the record to their own requirements.
Usage evidence quality depends on the audit pipeline behind it, and no specific audit completeness measurement is reported here. A future update could describe how to verify that the logs used as usage evidence are complete enough to base a removal decision on, which overlaps with the audit evidence integrity guide.
No claim is made about how much access any particular review removes, because no such measurement was taken. A future version with a worked example from a real review would need actual enumeration data from a deployment.
Related reading in this batch
Access decisions touch most of the security half of this batch. The cloud IAM permission boundary review guide covers the boundary around the identity rather than the identity itself. The vendor security review checklist guide covers the procurement-side questions that determine what the identity can reach in the first place.
For the failure side of a review, the infrastructure threat model boundaries guide models what an over-broad identity enables, and the blameless postmortem evidence guide covers the review that happens after an identity is implicated in an incident. Cost-side controls on identities are covered by the AWS cost management IAM controls referenced in the sources, and the cloud budget and quota guardrails guide covers the spending boundary separately.
One AI API Key option for OpenAI-format agents
Claude Code uses an Anthropic-format route, so the One AI free model IDs are not a Claude Code model source. The packet records Claude IDs as unavailable on 2026-11-27, and nothing in this post changes that.
OpenAI-format agents have a separate path. One AI API Key offers https://api.oneaiapikey.com/v1, one key, and 46 live free IDs, which is a different client and request format rather than a workaround for Claude Code authentication. Check the free model list and eligibility notes before wiring up an agent, read the quickstart for the request shape, or estimate spend with the cost calculator.
FAQ
Does a successful connection prove the permission is still needed?
No. Authentication working says the credential is valid, not that the scope behind it is correct. Recertification asks about purpose and ownership, which are questions usage logs and connections cannot answer on their own.
Why check every binding instead of just the newest one?
Because Kubernetes RBAC and AWS IAM are additive. Effective access is the union of everything that applies to the identity, and removing one binding may not reduce access if another grants the same permission. A review of only the newest binding misses the rest of the union.
Are service accounts exempt from owner attestation?
No. A service account is a governed identity with production reach, and it needs a named owner the same way a human account does. Identities without owners are the ones that accumulate permissions quietly.
Does completing a review guarantee least privilege?
No. A review produces an explainable permission set with an owner per permission and a record of what risk was accepted. Additive models, bindings added by other teams, and permissions needed only under error conditions all mean the result is a reduction in unexplained access, not a guarantee of minimum access.
How often should agent identities be reviewed?
Quarterly is a reasonable default, with off-cycle reviews whenever an identity’s scope changes, a workload is retired, or the identity is involved in an incident. Identities with intentionally broad access, such as break-glass roles, should also be reviewed after every use.
More Claude Code troubleshooting
- Claude Code Terraform Plans: Review Gates Before Apply
- Claude Code Terraform State: Locking and Access Controls
- Claude Code Terraform Drift: Triage Before Reconciliation
- Kubernetes Server-Side Apply: Ownership Checks for Claude Code
- Claude Code NetworkPolicy: Blast Radius Reviews
- Claude Code Policy as Code: Audit Before Deny
- Claude Code AISVS: Control Mapping for Platform Teams
- Claude Code RACI: Ownership for Infrastructure Changes
- Claude Code Approvals: Risk Tiers for Infrastructure
- Claude Code Change Freezes: Emergency Change Rules
- Claude Code OpenTelemetry: Semantic Conventions for Agents
- Claude Code SLO Alerts: Burn Rate During Changes
- Claude Code Error Budgets: Release Decision Policy
Sources
- Official: Kubernetes RBAC authorization, on bindings granting role permissions to subjects and on additive permissions with no deny rules (F043, F044).
- Official: AWS IAM policies and permissions, defining how identity-based policies express permissions for AWS services and resources (F045).
- Official: AWS Cost Management IAM controls, reference for IAM controls over cost-management data.
- Official: Kubernetes RBAC good practices, guidance on narrowing RBAC grants.
- Independent: OWASP Secure Coding with AI Cheat Sheet, supporting least privilege and human review for agent workflows.