← All research notes

SPIFFE for AI Workloads

An identity pattern for short-lived AI services, including the integration work it actually requires.

TECHNICAL FIELD NOTE · Methods and design hypotheses. Measured results require independently traceable evidence.

A private network does not establish the identity of a workload. When an inference worker calls a document store or another service, the receiver needs to know which workload made the call and whether it should be trusted.

SPIFFE defines workload identities. SPIRE can issue verifiable identity documents after attesting a node and the process making the request. This is useful for ephemeral services because identity can follow the workload rather than a machine image.

What the standard provides

The SPIFFE Workload API provides X.509-SVIDs, JWT-SVIDs and trust bundles. An X.509-SVID encodes a SPIFFE ID in a certificate. Consumers use a trusted bundle to validate the identity presented by a peer.

The Workload API is not a universal drop-in feature for every model server. An application must use a compatible client library, proxy or sidecar. Verify the actual integration path for the selected vLLM, gateway or LiteLLM version before promising mutual TLS.

Attestation and authorization

SPIRE attests nodes and workloads against configured selectors. The resulting identity says which workload was authenticated. It does not decide which resources that workload is allowed to access.

Write authorization rules separately. Deny unrecognised IDs. Protect the Workload API socket and the trust bundle lifecycle. Define rotation and revocation behavior for each process that consumes a certificate.

Rotation is an integration test

A Workload API client can receive updated SVID material. Whether a specific server handles an update without dropped connections depends on its TLS integration. Test certificate renewal while real traffic flows and record the behavior.

Do not assume a fixed rotation interval or a particular signal such as SIGUSR2; these are implementation choices, not guarantees of the SPIFFE specification.

Evidence to collect

Validate identity issuance, failed attestation, rejected trust domains, certificate expiry, rotation and policy denial. Correlate identity evidence with request traces without logging private keys or sensitive customer input.

SPIFFE provides an identity foundation, not automatic compliance certification. Compliance claims require evidence against the applicable controls and the real deployed environment.

Primary references

Specifications and guidance relevant to the methods discussed. These links are not endorsements or evidence of a deployed implementation.

SPIFFE: Working with SVIDsSPIFFE: Concepts and trust domains

Question the assumptions. Test the implementation.

Explore the laboratory