﻿# Pod-bound tokens: offline JWT checks do not establish current Pod existence

An external broker can validate a signed token after its bound Pod disappears. Compare offline verification with TokenReview and separate lifecycle checks from permission.

Author: Retrivium team
Updated: 2026-11-06
Canonical URL: https://retrivium.ai/journal/enterprise-ai-pod-bound-token-offline-review-deletion/
Language: en

## Retire the worker and examine its remaining identity

An enterprise credential broker accepts a Pod-bound Kubernetes service-account token from an assistant worker. The Pod is later deleted, but a captured test credential still passes the broker's offline JWT validator before its expiration. Signature validation can be correct while the broker has not checked whether the bound object still exists. Decide whether the broker needs current bound-object validity, rather than assuming every validator enforces the same lifecycle boundary.

## Distinguish signed claims from current object state

The [Kubernetes service-account administration guide](https://kubernetes.io/docs/reference/access-authn-authz/service-accounts-admin/) explains that external offline JWT validation does not establish that embedded bound-object claims remain current. A token can still be considered valid by that validator after the object disappears, until token expiry. The signed Pod identity records a binding at issuance; it is not a live query about the cluster. Do not turn a decoded Pod name into proof of a running workload.

## Choose the validation path the requirement needs

The same guide requires TokenReview for clients needing assurance that bound claims remain valid. This involves the API server in validation rather than only its published signing keys. The [Pod service-account configuration guide](https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/) describes invalidation against the API when the associated Pod or ServiceAccount is deleted. Preserve the distinction between API-server lifecycle enforcement and a separate external verifier. TokenReview authentication still does not decide which enterprise secrets that workload may retrieve.

## Bind broker policy to stable workload identity

Record the trusted cluster, service-account identity, intended recipient and bound object identity used by the broker's policy. Names can be reused, so inspect the identity information returned by the selected validation contract rather than matching only a display label. Keep the token and review credentials outside model context. If TokenReview is unavailable, the broker needs an explicit operation outcome. An offline fallback that silently drops the live-object requirement changes the authorization design.

## Rehearse deletion with harmless credentials

Use an authorized test Pod and a broker role restricted to disposable test data. Observe the offline validation result and the API review result before deletion. Delete the bound object through the normal lifecycle, then observe each validation path according to the API server's documented deletion timing. Include recreation with the same name to check identity handling. Acceptance evidence records the actual object identity, validation path and broker decision. No cluster test, token capture exercise or revocation timing measurement was performed here.

## Keep rotation and deletion assurance separate

[Projected token rotation](/journal/kubernetes-projected-serviceaccount-token/) concerns expiration, audience and clients adopting refreshed files. This question concerns current bound-object state at an external receiver. [Client-history trust](/journal/guide-pydantic-ai-client-history-trust/) supplies the related rule that conversational claims cannot authorize access. The broker's review should state whether it verifies only a signed credential or also asks the cluster to validate its binding. Neither outcome establishes a human user's business permission or proves that a previously completed secret retrieval was reversed when the Pod disappeared.
