Repository navigation
Security hardening for Workload API sources, offline JWT verification and response validation, with public error-type
changes.
Security and correctness
- Authoritative permission denials withdraw monitored source material until a valid complete response reauthorizes it.
Byte-identical recovery notifies subscribers. - Accepted X.509 updates replace trust even when identity selection fails or the selected identity is expired. Identity acquisition returns
NoSuitableSvidrather than falling back to an older identity. - New immutable source-state observations expose coherent material revisions, withdrawal reasons, usability and terminal status.
- Offline JWT verification enforces optional
nbf, exclusive expiration (exp == nowis expired), and a strict JOSE header policy. - Trusted JWK validation enforces algorithm/use/key-operation restrictions, matching EC parameters, canonical RSA encoding and a minimum 2048-bit modulus.
- Workload API clients validate mandatory response fields and every returned SVID entry, including non-default entries.
Transport outages and rejected malformed updates retain previously accepted source permission. Already-acquired credentials remain caller-owned.
Source lifecycle
- Pending client creation and stream setup respond to cancellation.
- Shutdown retains join ownership across cancelled, concurrent and repeated callers. Graceful timeout requests abort and then joins owned supervisor work.
- Invalid fixed endpoints fail during construction.
- Unsupported required source RPCs return
UnsupportedRpcduring startup.
Shutdown deadlines do not preempt blocking synchronous callbacks or destructors.
Dependency-owned workers and established connections have separate lifetimes.
Breaking changes and migration
Dependency-specific error payloads are replaced with crate-owned wrappers:
Pkcs8DecodeErrorJwtVerificationErrorJsonErrorX509ParseErrorandX509ExtensionIdEndpointParseErrorGrpcStatusErrorandTransportConnectError
Several foreign-error From implementations were removed. Construct certificates from DER bytes rather than an x509-parser certificate.
Rename matches on TransportError::Tonic to TransportError::Connect. Use TransportError::status, status_with_source or connect when constructing transport errors.
Endpoint, EndpointError, LimitKind and MetricsErrorKind are now non-exhaustive; external matches need a wildcard arm. Some error types no longer implement PartialEq, Eq, Clone or Copy.
Applications making recovery decisions should handle source withdrawal, unusable identity selection and terminal startup failures. Use state() when identity and trust must come from one coherent revision.
Most consumers using constructors and propagating errors need no source changes.
Dependency considerations
Existing advisory exceptions for RUSTSEC-2023-0071 and RUSTSEC-2026-0387 remain in the RustCrypto dependency graph; this release does not claim those issues are fully resolved. The AWS-LC JWT backend avoids the crypto-bigint 0.5 dependency
path associated with RUSTSEC-2026-0387.
Compatibility
- Minimum supported Rust version remains 1.88.
- No default features are enabled.
- Select exactly one backend when enabling offline JWT verification.
- The published package includes the Apache-2.0 license text.