Expand description
Key registry for JWS (JWT/DPoP/delegation) signature verification.
Supports rotation: a new key with the same kid can be added while the
old one remains valid for a configurable grace period.
Lives in agentguard-core (not agentguard-auth) because the registry
itself has no auth-specific dependencies — Algorithm and KeyMaterial
are the JOSE primitives, and the same registry is shared by the JWT
validator (agentguard-auth), the DPoP verifier (which doesn’t
currently use a registry but could), and the delegation verifier
(agentguard-core::delegation).
Structs§
- KeyRegistry
- Thread-safe registry of trusted verification keys, keyed by
kid. - Parse
Algorithm Error - Error from parsing a
Algorithmstring.
Enums§
- Algorithm
- JWS signing algorithm (RFC 7518, RFC 8725 §3.1).
- KeyMaterial
- Key material — abstracted so the registry can hold heterogeneous keys.
Constants§
- DEFAULT_
KEY_ KID_ CAP - Default cap on the number of distinct
kids aKeyRegistrywill hold. Mirrors the cap enforced insideJwtValidator::refresh_jwksso the two cannot drift.