Service account, pod and registration entry exist, and even after minutes the pod gets no SVID. SPIRE recognized the pod but finds no matching entry – because one selector uses a key the k8s plugin does not know.
Symptom
kubectl exec -n laden inventur -- /opt/spire/bin/spire-agent api fetch x509 -socketPath /run/spire/sockets/agent.sock rpc error: code = PermissionDenied desc = no identity issued command terminated with exit code 1
The pod asks the Workload API but gets no identity.
Diagnosis
Compare what the agent observes with what the entry requires.
sudo -u spire /opt/spire/bin/spire-server entry show -spiffeID spiffe://gebaeude.test/laden/inventur -socketPath /run/spire-server/api.sock Selector : k8s:ns:laden Selector : k8s:serviceaccount:inventur kubectl logs -n spire spire-agent-5c4sd --since=1m level=debug msg="PID attested to have selectors" pid=139081 selectors="[type:\"k8s\" value:\"sa:inventur\" type:\"k8s\" value:\"ns:laden\" type:\"k8s\" value:\"node-name:id1\" …
Causes
k8s:saThe key serviceaccount does not exist
The agent writes sa:inventur. The k8s plugin has no key serviceaccount, so the entry matches nobody.
No warningSPIRE does not validate selectors
SPIRE created the entry without a warning – the server does not check whether a selector will ever be produced. Selectors are strings.
Fix
sudo -u spire /opt/spire/bin/spire-server entry update -entryID 5473a239-6422-4b43-904a-3ce32b26e550 -parentID spiffe://gebaeude.test/knoten/labor -spiffeID spiffe://gebaeude.test/laden/inventur -selector k8s:ns:laden -selector k8s:sa:inventur -socketPath /run/spire-server/api.sock Revision : 1 Selector : k8s:ns:laden Selector : k8s:sa:inventur
Don't: Write selectors from memory. Copy them from the agent's DEBUG log.
Workload and AI agent identity hands-on, day 6: registration entries and SVIDs – which pod gets which SPIFFE ID.
Go to day 6 →
FAQ
What does "no identity issued" mean in SPIRE?
The agent recognized the process and determined its selectors, but no registration entry matches all of them.
Does an SVID arrive right after the fix?
In the course api fetch x509 returned "Received 1 svid" with spiffe://gebaeude.test/laden/inventur after a few seconds.