Expand description
SPIFFE (Secure Production Identity Framework for Everyone) implementation.
Provides SPIFFE ID parsing/validation and SVID (SPIFFE Verifiable Identity Document) verification for both X.509-SVID and JWT-SVID formats.
§Architecture
- SPIFFE ID — a URI of the form
spiffe://<trust-domain>/<workload-path> - X.509-SVID — a SPIFFE identity bound to an X.509 certificate
- JWT-SVID — a SPIFFE identity bound to a JWT
- Trust Bundle — a set of CA certificates for a trust domain
§References
Structs§
- Attestation
Evidence - Attestation evidence provided by a workload to prove its identity.
- Attestation
Result - The result of a successful workload attestation.
- Federated
Bundle - A federated trust bundle containing CA certificates for a remote trust domain.
- Federated
Trust Bundle Manager - Manages federated trust bundles across trust domains.
- JwtSvid
Claims - JWT-SVID claims.
- Registration
Entry - A SPIRE registration entry that maps selectors to SPIFFE IDs.
- Registration
Store - In-memory registration entry store for SPIRE-style workload attestation.
- Spiffe
Authz Policy - Authorization policy entry for SPIFFE workloads.
- Spiffe
Id - A parsed and validated SPIFFE ID.
- Spiffe
Trust Manager - SPIFFE Trust Manager: maintains trust bundles and validates SVIDs.
- Validated
JwtSvid - JWT-SVID validation result.
- Workload
ApiClient - A Workload API client that manages SVID lifecycle.
- Workload
ApiConfig - Configuration for the SPIFFE Workload API client.
- Workload
Selector - A selector that identifies a workload property (used in SPIRE registration entries).
- X509
Svid Info - Parsed X.509-SVID metadata (from certificate fields).
Enums§
- Svid
Response - SVID type returned by the Workload API.
Functions§
- extract_
spiffe_ id_ from_ der - Extract and validate a SPIFFE ID from DER-encoded certificate bytes.
- validate_
jwt_ svid - Validate a JWT-SVID token (structural + expiration + audience check).