---
title: "Trace a permission denial to the caller and the policy | Proofline"
description: "Start with one denied request. Record the effective caller, action, target and decision context before proposing a grant."
url: https://proofline.sh/learn/permission-denied-request-triage/
agents: "Before you act for a person, read https://proofline.sh/llms.txt. It says how an agent installs and sets up Proofline and lists every page."
---

[Learning center](/learn/)

# 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.

Permission errors The Proofline team November 24, 2026 3 min read

## 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](https://kubernetes.io/docs/reference/access-authn-authz/authorization/#request-attributes-used-in-authorization)

| 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](https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-event-reference-user-identity.html) · [CloudTrail data events](https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-data-events-with-cloudtrail.html)

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](https://docs.aws.amazon.com/STS/latest/APIReference/API_GetCallerIdentity.html) · [AWS cross-account policy evaluation](https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_evaluation-logic-cross-account.html)

## Find the next check

### AWS caller and credentials

-   [Unexpected AWS CLI caller](/learn/aws-cli-unexpected-caller/)
-   [Assumed role on a CloudTrail event](/learn/aws-cloudtrail-assumed-role-caller/)
-   [Trust policy rejects AssumeRole](/learn/aws-assume-role-trust-denied/)
-   [Deploy request lacks PassRole](/learn/aws-passrole-denied/)
-   [ECS application uses the task role](/learn/aws-ecs-task-role-vs-execution-role/)

### AWS policy evaluation

-   [Role permissions boundary](/learn/aws-permissions-boundary-denied/)
-   [Session policy narrows a role](/learn/aws-sts-session-policy-denied/)
-   [Organizations policy on the caller](/learn/aws-scp-denied/)
-   [Organizations policy on the resource](/learn/aws-rcp-denied/)
-   [VPC endpoint policy](/learn/aws-endpoint-policy-denied/)
-   [Simulator and live request disagree](/learn/aws-iam-simulator-allowed-live-denied/)
-   [Cross-account S3 object read](/learn/s3-cross-account-read-denied/)
-   [S3 HeadObject returns 403](/learn/s3-head-object-403-or-404/)
-   [S3 bucket listing fails for one prefix](/learn/s3-listbucket-prefix-denied/)
-   [S3 reaches a KMS decrypt denial](/learn/s3-kms-decrypt-denied/)
-   [KMS key policy and IAM grant](/learn/aws-kms-key-policy-denied/)

### Google Cloud IAM

-   [Denied principal in an audit log](/learn/google-cloud-audit-log-denied-principal/)
-   [Service account token minting](/learn/google-cloud-service-account-token-denied/)
-   [Permission to attach a service account](/learn/google-cloud-actas-service-account-denied/)
-   [Application Default Credentials choose another principal](/learn/google-cloud-adc-wrong-principal/)
-   [Inherited allow binding](/learn/google-cloud-iam-inherited-binding/)
-   [A conditional binding does not match](/learn/google-cloud-iam-condition-denied/)
-   [Inherited deny policy](/learn/google-cloud-iam-deny-policy/)
-   [Principal access boundary](/learn/google-cloud-principal-access-boundary-denied/)
-   [Policy Troubleshooter returns Unknown](/learn/google-cloud-policy-troubleshooter-unknown/)
-   [Group membership has yet to propagate](/learn/google-cloud-iam-group-change-delay/)
-   [Cloud Storage object read versus listing](/learn/google-cloud-storage-object-get-vs-list/)
-   [VPC Service Controls rejects the request](/learn/google-cloud-vpc-service-controls-denied/)

### Kubernetes API

-   [Subject in a Kubernetes audit event](/learn/kubernetes-audit-forbidden-user/)
-   [Pod service account](/learn/kubernetes-pod-service-account-forbidden/)
-   [RoleBinding in the wrong namespace](/learn/kubernetes-rolebinding-wrong-namespace/)
-   [Pod logs subresource](/learn/kubernetes-pods-log-forbidden/)
-   [Named resource grant and list selector](/learn/kubernetes-rbac-resourcenames-list/)
-   [API group mismatch](/learn/kubernetes-rbac-wrong-api-group/)
-   [Admission denies an authorized request](/learn/kubernetes-can-i-yes-admission-denied/)
-   [Impersonation check itself is forbidden](/learn/kubernetes-can-i-impersonation-forbidden/)

### PostgreSQL

-   [Session identity and effective role](/learn/postgres-session-user-vs-current-user/)
-   [Membership and inherited privileges](/learn/postgres-role-membership-noinherit/)
-   [Schema usage and table access](/learn/postgres-schema-usage-denied/)
-   [Sequence privilege on insert](/learn/postgres-sequence-permission-denied/)
-   [Default privileges and the creating role](/learn/postgres-default-privileges-wrong-creator/)
-   [Row-level security and empty results](/learn/postgres-row-level-security-empty-select/)
-   [Column grants and expanded projections](/learn/postgres-column-select-permission-denied/)

For a planned change, [review the permission before deployment](/learn/ai-cloud-permission-review/). If the request failed before it reached the provider's authorization layer, use the [runtime dependency guide](/learn/runtime-dependency-failures/) 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](/free-code-review/).

[Start free with GitHub](https://proofline.sh/orgs/plan?offer=free_month)

## Related reading

-   ### [Can AI spot cloud permission problems before a deployment?](/learn/ai-cloud-permission-review/)
    
    Permission errors The Proofline team November 19, 2026 1 min read
    
-   ### [Which runtime dependency failed? Read the layer from the first error](/learn/runtime-dependency-failures/)
    
    Broken dependencies The Proofline team November 23, 2026 10 min read
