Learning center

Trace a permission denial to the caller and the policy

Start with one denied request. Record the effective caller, action, target and decision context before proposing a grant. Those details tell you which owner can change the outcome.

Build a receipt from one failure#

Save the timestamp and request ID where available. Keep the provider's operation and permission names as distinct fields. A Kubernetes request to read pod logs, for example, authorizes get on the pods/log subresource. Save attributes that can affect the decision, such as account, namespace, conditions or network path. Share only the fields the recipient needs and omit credentials and payloads. Kubernetes request authorization attributes

EvidenceQuestion it answers
Provider audit eventWhich identity did the provider record for this request?
Operation, permission and full resource nameWhich access decision did the request ask the provider to make?
Session, policy and request attributesWhich layer could explain refusal for that exact tuple?
Read-only comparisonCan you distinguish a wrong target, a missing grant and an applicable restriction?

Worked example with a wrong resource account#

Suppose a reporting worker gets AccessDenied on GetObject immediately after a configuration change. Its CloudTrail S3 data event has userIdentity.type = AssumedRole and a session issuer ARN ending in role/report-reader in account 111122223333. The request names a reports bucket that the team's inventory places in account 444455556666. The approved worker configuration calls for a different bucket in the worker's own account. The audit event confirms the role and shows the request went to the unexpected bucket. This example assumes S3 data event collection was already enabled. CloudTrail identity fields · CloudTrail data events

From the same credential context, aws sts get-caller-identity checks who a new call would use. Compare the bucket name in the recorded request with the approved deployment configuration. If those names differ and the approved target is still correct, send the configuration drift to the worker's owner. The recorded denial provides no reason to grant access to the other account. If the other bucket is the approved destination, ask its owner to check the resource policy for that exact caller and object path. STS GetCallerIdentity · AWS cross-account policy evaluation

Find the next check#

AWS caller and credentials#

AWS policy evaluation#

Google Cloud IAM#

Kubernetes API#

PostgreSQL#

For a planned change, review the permission before deployment. If the request failed before it reached the provider's authorization layer, use the runtime dependency guide to locate the first failure.

One month of free code review.

New organizations get one calendar month of hosted code review for private and public GitHub repositories. No card or cloud connection required. Eligibility and fair-use terms.

Start free with GitHub

Related reading