nucleus-identity-projection
Identity projection lifter for the Nucleus substrate. Lifts a
SPIFFE JWT-SVID into the typed body of a
Projection::Identity variant, then verifies it
offline against a published JWKS.
Wire shape
Verifier path
use ;
let body: IdentityBody = from_value?;
let token = verify_identity_projection?;
println!;
Checks performed:
- Body version matches
IDENTITY_BODY_VERSION(1). - JWKS contains an Ed25519 key with
kid == body.issuer_kid. - JWT signature verifies (Algorithm::EdDSA).
- JWT
audmatchesbody.audience. - JWT
submatchesbody.subject. - JWT
expis in the future.
SPIFFE reference
JWT-SVID per the SPIFFE specification.
License
Dual-licensed under MIT OR Apache-2.0.