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
| Evidence | Question it answers |
|---|---|
| Provider audit event | Which identity did the provider record for this request? |
| Operation, permission and full resource name | Which access decision did the request ask the provider to make? |
| Session, policy and request attributes | Which layer could explain refusal for that exact tuple? |
| Read-only comparison | Can 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#
- Unexpected AWS CLI caller
- Assumed role on a CloudTrail event
- Trust policy rejects AssumeRole
- Deploy request lacks PassRole
- ECS application uses the task role
AWS policy evaluation#
- Role permissions boundary
- Session policy narrows a role
- Organizations policy on the caller
- Organizations policy on the resource
- VPC endpoint policy
- Simulator and live request disagree
- Cross-account S3 object read
- S3 HeadObject returns 403
- S3 bucket listing fails for one prefix
- S3 reaches a KMS decrypt denial
- KMS key policy and IAM grant
Google Cloud IAM#
- Denied principal in an audit log
- Service account token minting
- Permission to attach a service account
- Application Default Credentials choose another principal
- Inherited allow binding
- A conditional binding does not match
- Inherited deny policy
- Principal access boundary
- Policy Troubleshooter returns Unknown
- Group membership has yet to propagate
- Cloud Storage object read versus listing
- VPC Service Controls rejects the request
Kubernetes API#
- Subject in a Kubernetes audit event
- Pod service account
- RoleBinding in the wrong namespace
- Pod logs subresource
- Named resource grant and list selector
- API group mismatch
- Admission denies an authorized request
- Impersonation check itself is forbidden
PostgreSQL#
- Session identity and effective role
- Membership and inherited privileges
- Schema usage and table access
- Sequence privilege on insert
- Default privileges and the creating role
- Row-level security and empty results
- Column grants and expanded projections
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.