Added
- Experimental
exp/witwptpackage, which mints Workload Proof Tokens (WPTs) bound to a WIT-SVID and a request target (#415) - Support for ML-DSA keys in X509-SVIDs, JWT-SVIDs, WIT-SVIDs and bundles. ML-DSA support requires building with Go 1.27 or later. With earlier Go versions, ML-DSA keys in bundles are ignored (#440)
federation.WithSloggerandworkloadapi.WithSloggeroptions to log through a*slog.Logger(#449)tlsconfig.VerifyConnectionandtlsconfig.WrapVerifyConnection, which verify and authorize the peer X509-SVID on every handshake, including resumed sessions (#447)- Custom claims on WIT-SVIDs are now available through the
Claimsfield ofwitsvid.SVID(#410) GetWITSVIDmethod onworkloadapi.WITSource, which returns the default WIT-SVID (#410)
Changed
- Minimum Go version is now go1.26.0, following our support policy (#440, #447)
- The
tlsconfigHook functions that verify the peer X509-SVID (HookTLSClientConfig,HookMTLSClientConfig,HookMTLSServerConfigandHookMTLSWebServerConfig) now also setVerifyConnection, and the two server ones also setWrapSessionandUnwrapSession. Existing callbacks are wrapped, so they must be set before hooking, and a configuration should be hooked only once. Session ticket keys must be set on the hooked configuration (#447) spiffetls.WithDialTLSConfigBaseandspiffetls.WithListenTLSConfigBasenow clone the base TLS configuration instead of modifying it (#447)jwtsvid.ParseAndValidateandjwtsvid.ParseInsecurenow reject tokens with a missingaudclaim or an emptyaudvalue (#442)- Bundle marshaling in
bundle/jwtbundle,bundle/spiffebundleandexp/bundle/witbundleis now deterministic, with JWT and WIT authorities emitted in sorted key ID order (#433) - The experimental
witsvid.Sourceinterface now requires aGetWITSVIDmethod, so existing implementations need to add it (#410) - Other dependency updates.
Fixed
- The TLS configurations built by
spiffetls/tlsconfigthat verify the peer X509-SVID now also verify and authorize it on resumed sessions, which Go does not pass toVerifyPeerCertificate. Authorizers are now also called on resumed handshakes, and mTLS servers fall back to a full handshake when the client certificate of a session no longer verifies (#447) - Bundle parsing no longer fails on JWKS entries with an unsupported key type, or in
spiffebundlea missing or unknownuse. Those entries are now ignored, as the SPIFFE bundle specification requires (#444, #448) - The federation handler now sets the
Allowheader on 405 responses (#434)