Skip to content

v2.10.0

Latest

Choose a tag to compare

@amartinezfayo amartinezfayo released this 27 Nov 17:17
5abbbd9

Added

  • Experimental exp/witwpt package, 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.WithSlogger and workloadapi.WithSlogger options to log through a *slog.Logger (#449)
  • tlsconfig.VerifyConnection and tlsconfig.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 Claims field of witsvid.SVID (#410)
  • GetWITSVID method on workloadapi.WITSource, which returns the default WIT-SVID (#410)

Changed

  • Minimum Go version is now go1.26.0, following our support policy (#440, #447)
  • The tlsconfig Hook functions that verify the peer X509-SVID (HookTLSClientConfig, HookMTLSClientConfig, HookMTLSServerConfig and HookMTLSWebServerConfig) now also set VerifyConnection, and the two server ones also set WrapSession and UnwrapSession. 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.WithDialTLSConfigBase and spiffetls.WithListenTLSConfigBase now clone the base TLS configuration instead of modifying it (#447)
  • jwtsvid.ParseAndValidate and jwtsvid.ParseInsecure now reject tokens with a missing aud claim or an empty aud value (#442)
  • Bundle marshaling in bundle/jwtbundle, bundle/spiffebundle and exp/bundle/witbundle is now deterministic, with JWT and WIT authorities emitted in sorted key ID order (#433)
  • The experimental witsvid.Source interface now requires a GetWITSVID method, so existing implementations need to add it (#410)
  • Other dependency updates.

Fixed

  • The TLS configurations built by spiffetls/tlsconfig that verify the peer X509-SVID now also verify and authorize it on resumed sessions, which Go does not pass to VerifyPeerCertificate. 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 spiffebundle a missing or unknown use. Those entries are now ignored, as the SPIFFE bundle specification requires (#444, #448)
  • The federation handler now sets the Allow header on 405 responses (#434)