---
title: "Check pods/log when kubectl can read a pod but cannot read its logs | Proofline"
description: "Kubernetes authorizes a pod read and a pod log read against different resource names. A rule for get on pods does not cover get on pods/log."
url: https://proofline.sh/learn/kubernetes-pods-log-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/)

# Check pods/log when kubectl can read a pod but cannot read its logs

Kubernetes authorizes a pod read and a pod log read against different resource names. A rule for get on pods does not cover get on pods/log.

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

In a fictional on-call rotation, an operator can inspect a pod in `reports` but `kubectl logs` returns Forbidden. Run both authorization queries in the same user context so the subresource is the only difference.

```
kubectl auth can-i get pod/report-worker-7d46d -n reports
kubectl auth can-i get pod/report-worker-7d46d --subresource=log -n reports
```

These requests ask about authorization and do not fetch log content. If the checks return yes and no respectively, take the named subresource and namespace to the policy owner. Ask whether the log content is within the operator's role. If authorization already allows the request, read the original error and check whether the client used the same identity, pod and cluster. [RBAC resource and subresource syntax](https://kubernetes.io/docs/reference/access-authn-authz/rbac/#referring-to-resources) · [kubectl auth can-i](https://kubernetes.io/docs/reference/kubectl/generated/kubectl_auth/kubectl_auth_can-i/)

[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
    
-   ### [Find an API group mismatch in a Kubernetes RBAC denial](/learn/kubernetes-rbac-wrong-api-group/)
    
    Permission errors The Proofline team November 24, 2026 1 min read
