---
title: "Find the subject of a forbidden Kubernetes API request in audit logs | Proofline"
description: "Use the audit event for the failed API call when the workload's error leaves out its identity."
url: https://proofline.sh/learn/kubernetes-audit-forbidden-user/
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/)

# Find the subject of a forbidden Kubernetes API request in audit logs

Use the audit event for the failed API call when the workload's error leaves out its identity. Compare the recorded user and any impersonated user before choosing which subject to investigate.

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

In a fictional cluster, a controller receives a 403 while watching deployments in `reports`. The matching audit event has `responseStatus.code: 403`, `verb: watch`, and `objectRef.resource: deployments`. The `user.username` field names `system:serviceaccount:jobs:report-watcher`. If `impersonatedUser` is present, keep both identities in the receipt and ask whether the request failed before or after impersonation was accepted. [Kubernetes auditing](https://kubernetes.io/docs/tasks/debug/debug-cluster/audit/) · [Audit Event API fields](https://kubernetes.io/docs/reference/config-api/apiserver-audit.v1/)

Use a read-only query of the configured audit sink by time, audit ID when available, and request attributes. A metadata-level audit policy can record user, resource and verb without recording request bodies. If the audit policy omitted this request, the current pod or credential configuration can suggest a caller but cannot establish which identity made the historical call.

[Trace another denied request](/learn/permission-denied-request-triage/).

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

-   ### [Trace a permission denial to the caller and the policy](/learn/permission-denied-request-triage/)
    
    Permission errors The Proofline team November 24, 2026 3 min read
    
-   ### [Verify which Kubernetes service account a failing pod uses](/learn/kubernetes-pod-service-account-forbidden/)
    
    Permission errors The Proofline team November 24, 2026 1 min read
