SPIFFE
SPIFFE (Secure Production Identity Framework for Everyone) defines how workloads get a cryptographic identity: a SPIFFE ID, carried in a SPIFFE Verifiable Identity Document (SVID), issued by a trust domain whose keys are published as a bundle, and delivered locally through the Workload API. Federation exchanges bundles between trust domains. SPIRE is the reference implementation. This skill pins the SPIFFE standards in the spiffe/spiffe repository at commit f97c46d and SPIRE v1.15.3, and produces an issuer, validator, workload integration or review that meets their rules.
Follow the workflow below step by step. Every rule here comes from a source in Sources, with the document and section it cites. When a rule and the pinned source disagree, the source wins; when the source has a newer revision than the pin, follow the refresh steps.
Inputs (fill in, or ask before starting)
- Role: SVID issuer or control plane, workload that fetches SVIDs, validator (server or client authenticating a peer), bundle endpoint operator, or federation consumer.
- Target version: SPIFFE standards (Stable) at
mainf97c46d (current, the default). SPIFFE Incubating standards (WIT-SVID, Workload API §7, Broker API and Broker Endpoint) are a preview with posture track: never emit them in a default or production code path. The standards are versioned by commit and stability level, not by number; SPIRE versions are implementation versions. Seereferences/versions.md. - SVID types: X.509-SVID (mTLS), JWT-SVID (bearer tokens across proxies), or the Incubating WIT-SVID (proof of possession).
- Trust domains: the local trust domain name and any federated trust domains.
- Implementation: SPIRE, another SPIFFE implementation, or a library that talks to the Workload API.
- Sources: when refreshing this skill or when a rule looks out of date, check the latest commit on
spiffe/spiffemain, the stability banner of each standard, and the latest SPIRE release, then every URL in Sources. Update the pins and bump the version.
Invariants
- SPIFFE IDs are strict URIs. The scheme MUST be
spiffe; the trust domain MUST be non-empty, lowercase[a-z0-9.-_], with no port or userinfo; there MUST NOT be a query or fragment; path segments MUST be[a-zA-Z0-9.-_]with no empty,.or..segments and no trailing/(SPIFFE-ID §2, §2.1, §2.2). - Validate against the SVID's own trust domain bundle. Validators MUST choose the bundle for the trust domain the SVID resides in, and treat a peer with no matching bundle as untrusted (Trust Domain and Bundle §3; Workload API §4.6, §6.3; Federation §7.3).
- Never merge bundles. Bundle contents from different trust domains MUST NOT be merged (Federation §4.2).
- One URI SAN per X.509-SVID. Validators MUST reject X.509-SVIDs with more than one URI SAN (X509-SVID §2).
- Only leaf certificates authenticate. The validator MUST check
cA=false, nokeyCertSignorcRLSign, schemespiffeand a non-root path, after RFC 5280 path validation (X509-SVID §5.1, §5.2). Signing certificates MUST NOT be used for authentication (X509-SVID §3.2). - JWT-SVIDs are restricted JWTs.
algMUST be one of RS, ES or PS 256/384/512;audandexpMUST be present; validators MUST reject a token whoseaudlacks their own value (JWT-SVID §2.1, §3.2, §3.3, §4). - Unknown keys are ignored, and an empty bundle invalidates. Clients MUST ignore JWKs with unknown
ktyoruse; a bundle with no usable keys means all SVIDs of that trust domain are invalid (Trust Domain and Bundle §4.1.3, §4.2). - The Workload Endpoint is local and unauthenticated. It MUST be served over gRPC and MUST NOT require client authentication; every request MUST carry the metadata
workload.spiffe.io: trueor be rejected (Workload Endpoint §3, §5). - Workload API responses are full state. Every stream message MUST carry the full set of information. Clients MUST NOT keep a value after a message sets it to default or empty, and SHOULD treat missing data as a redaction (Workload API §4.3, §4.4).
- Federation parameters are explicit. Bundle endpoint clients MUST be configured with the endpoint URL, profile and trust domain name; none of them can be inferred from another (Federation §5.1, §7.2).
- Bundle endpoints need no client authentication. Servers MUST NOT require client authentication and MUST serve the latest bundle; clients MUST support both
https_webandhttps_spiffe(Federation §5, §5.2.1.3, §5.2.2.3). - WIT-SVIDs are never bearer tokens. A WIT-SVID MUST NOT be accepted without proof of possession of the
cnfkey and MUST NOT be sent in theAuthorizationheader (WIT-SVID §4, §5, §7.1).
Workflow
- Pick the version and scope the work. Build on the Stable standards at the pinned commit. Confirm the role, SVID types, trust domains and implementation from Inputs.
->
references/versions.md✓ The design records thespiffe/spiffecommit and SPIRE version, names each trust domain, which SVID type each link uses, and who validates what. - Design SPIFFE IDs. Pick trust domain names and a path scheme, and validate IDs with the parsing rules.
->
references/spiffe-id.md✓ Every ID passes the SPIFFE-ID §2 rules, and the trust domain name is unlikely to collide. - Issue or validate X.509-SVIDs. Apply the URI SAN, basic constraints, key usage and leaf validation rules.
->
references/x509-svid.md✓ A certificate with two URI SANs,cA=trueor a root path is rejected. - Issue or validate JWT-SVIDs. Restrict
alg, requireaudandexp, and transmit as a bearer token. ->references/jwt-svid.md✓ A token withalgHS256, noaud, or another service's audience is rejected. - Publish and consume bundles. Build JWK Set bundles and bundle maps, and select keys by
use. ->references/bundles.md✓ X.509 roots come only fromx509-svidentries and JWT keys only fromjwt-svidentries. - Integrate with the Workload API. Locate the endpoint, set the metadata header, stream updates and handle error codes.
->
references/workload-api.md✓ The workload reconnects immediately on stream loss and rotates SVIDs without restarting. - Federate trust domains. Serve and consume bundle endpoints with
https_weborhttps_spiffe, and keep the trust domain binding. ->references/federation.md✓ Each foreign bundle is stored with its configured trust domain and refreshed at its refresh hint. - Map to SPIRE if it is used. Configure the server, agents, attestors, registration entries and federation.
->
references/spire.md✓ Registration entries use selectors that only the intended workload matches. - Track WIT-SVID if proof of possession is needed. It is part of the Incubating preview: prototype it only when asked, behind a feature flag.
->
references/wit-svid.md,references/versions.md✓ No code path accepts a WIT-SVID without a proof of possession, and no default path emits one. - Bridge to WIMSE or OAuth if needed. Map SPIFFE IDs, bundles and SVIDs onto WIMSE terms, or authenticate an OAuth client with its SVID per draft-ietf-oauth-spiffe-client-auth-02.
->
references/wimse-and-oauth.md✓ The authorization server keys bundles by trust domain from a configured bundle endpoint, and never validates an X.509-SVID with the system trust store or a JWT-SVID with keys found only throughiss. - Upgrade to the pinned commit (only when code follows an older revision, or a specification is promoted). Follow the upgrade section.
->
references/versions.md✓ The recorded commit is f97c46d, and root-path X.509-SVID leaves are rejected.
Verify before done
- SPIFFE ID parsing rejects uppercase trust domains, ports, query strings, empty segments and trailing slashes.
- mTLS peers are matched against an allowed SPIFFE ID or trust domain after X.509-SVID leaf validation.
- JWT-SVID validation checks
alg,aud,expand the signature against the subject trust domain'sjwt-svidkeys. - Bundles are stored as
<trust domain, bundle>pairs, and no validator uses a pooled root store. - Workload API clients send
workload.spiffe.io: true, honorSPIFFE_ENDPOINT_SOCKET, and do not retry onInvalidArgument. - Bundle endpoints serve UTF-8 JSON over HTTPS without client authentication, and clients follow redirects only temporarily.
- Federation configuration is distributed through a channel that resists tampering (Federation §7.1).
Reference index
references/versions.md: how the standards are versioned, the Stable line and the Incubating preview, what changed by commit, and upgrade steps.references/spiffe-id.md: SPIFFE ID syntax, trust domain names, collisions, length, parsing, SVID trust and assertion safety.references/x509-svid.md: X.509-SVID SAN, leaf and signing certificates, constraints, key usage, validation and bundle entries.references/jwt-svid.md: JWT-SVID header and claims, validation, transmission, bundle entries and replay risks.references/bundles.md: trust domains, the bundle JWK Set format, bundle maps, refresh and key reuse.references/workload-api.md: the Workload Endpoint transport, location, authentication and errors, and the Workload API profiles and RPCs.references/federation.md: bundle endpoints, key rollover,https_webandhttps_spiffe, relationship lifecycle and security.references/spire.md: SPIRE server and agent, attestation, registration entries, federation configuration and fetching SVIDs.references/wit-svid.md: the Incubating WIT-SVID profile of the WIMSE Workload Identity Token.references/wimse-and-oauth.md: how SPIFFE maps to the IETF WIMSE drafts, and OAuth client authentication with JWT-SVIDs, X.509-SVIDs and WIT-SVIDs.
Related skills
jwt, for JWT and JWS validation that JWT-SVIDs and WIT-SVIDs build on:npx skills add ScaleDockHQ/scaledock-skills --skill jwtwimse, for the IETF workload identity drafts (WIT, WPT, HTTP signatures, mutual TLS) that WIT-SVID profiles:npx skills add ScaleDockHQ/scaledock-skills --skill wimseoauth, for the OAuth 2.0 framework, client authentication and token endpoint rules that SPIFFE client authentication profiles:npx skills add ScaleDockHQ/scaledock-skills --skill oauth
Sources
Status uses the publishing body's own maturity term. Checked is the date the source was last read.
- SPIFFE overview: Stable, main at f97c46d (2026-09-26), checked 2026-10-05.
- The SPIFFE Identity and Verifiable Identity Document: Stable, main at f97c46d (2026-09-26), checked 2026-10-05.
- The X.509 SPIFFE Verifiable Identity Document: Stable, main at f97c46d (2026-09-26), checked 2026-10-05.
- The JWT SPIFFE Verifiable Identity Document: Stable, main at f97c46d (2026-09-26), checked 2026-10-05.
- The SPIFFE Trust Domain and Bundle: Stable, main at f97c46d (2026-09-26), checked 2026-10-05.
- The SPIFFE Workload API: Stable (§7 WIT-SVID Profile Incubating), main at f97c46d (2026-09-26), checked 2026-10-05.
- The SPIFFE Workload Endpoint: Stable, main at f97c46d (2026-09-26), checked 2026-10-05.
- SPIFFE Federation: Stable, main at f97c46d (2026-09-26), checked 2026-10-05.
- The WIT SPIFFE Verifiable Identity Document: Incubating, main at f97c46d (2026-09-26); Draft posture: track, checked 2026-10-05.
- SPIFFE Specification Stability: Process document, main at f97c46d (2026-09-26), checked 2026-10-05.
- The SPIFFE Broker API: Incubating, main at f97c46d (2026-09-26); Draft posture: track, checked 2026-10-05.
- The SPIFFE Broker Endpoint: Incubating, main at f97c46d (2026-09-26); Draft posture: track, checked 2026-10-05.
- spiffe/spiffe commit history: Repository history, main at f97c46d (2026-09-26), no tags or releases, checked 2026-10-05.
- SPIRE v1.15.3: Released (latest), v1.15.3 (2026-08-21), checked 2026-10-05.
- SPIRE Concepts: Documentation, spiffe.io docs latest, checked 2026-10-02.
- Deploying a Federated SPIRE Architecture: Documentation, spiffe.io docs latest (written against SPIRE 1.11.2), checked 2026-10-02.
- Working with SVIDs: Documentation, spiffe.io docs latest, checked 2026-10-02.
- draft-ietf-wimse-arch-08: Workload Identity in a Multi System Environment (WIMSE) Architecture: WG draft (Informational), -08 (6 July 2026); Draft posture: name, checked 2026-10-05.
- draft-ietf-wimse-identifier-03: Workload Identifier: WG draft (Standards Track), -03 (6 July 2026); Draft posture: name, checked 2026-10-05.
- draft-ietf-wimse-workload-creds-02: WIMSE Workload Credentials: WG draft (Standards Track), -02 (2 July 2026); Draft posture: name, checked 2026-10-05.
- draft-ietf-oauth-spiffe-client-auth-02: OAuth SPIFFE Client Authentication: WG draft (Standards Track), -02 (15 June 2026); Draft posture: build (JWT-SVID and X.509-SVID methods), track (WIT-SVID method), checked 2026-10-05.