---
title: "Verify which Kubernetes service account a failing pod uses | Proofline"
description: "Inspect the running pod's service account when a workload reports a Kubernetes API 403."
url: https://proofline.sh/learn/kubernetes-pod-service-account-forbidden/
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/)

# Verify which Kubernetes service account a failing pod uses

Inspect the running pod's service account when a workload reports a Kubernetes API 403. The intended account in a deployment template may differ from the account used by a pod that still runs from an earlier revision.

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

Suppose a fictional worker should use `report-reader`, but the audit record names `system:serviceaccount:jobs:default`. Read the assigned account from the affected pod.

```
kubectl get pod report-worker-7d46d -n jobs \
  -o jsonpath='{.spec.serviceAccountName}{"\n"}'
```

If the pod uses `default` and the deployment should use `report-reader`, route the configuration mismatch to the workload owner. Keep grants on the dedicated account. If the pod already lists `report-reader`, check whether this client uses a separate kubeconfig or other credentials, and match the audit event to the specific pod. The Pod spec identifies the assigned service account. The API event identifies the credentials used for that request. [Kubernetes service accounts](https://kubernetes.io/docs/concepts/security/service-accounts/) · [Assign a service account to a pod](https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/)

[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
    
-   ### [Diagnose a Kubernetes RoleBinding in the wrong namespace](/learn/kubernetes-rolebinding-wrong-namespace/)
    
    Permission errors The Proofline team November 24, 2026 1 min read
