WebTransport keying material export
- Category
- Network / Connectivity
- Type
- New or changed feature
- Status
- Proposed (Chrome Proposed)
- Intent stage
- None
WPT details: https://wpt.fyi/results/webtransport/export-keying-material.https.any.html?label=experimental&label=master&aligned, https://wpt.fyi/results/webtransport/idlharness.https.sub.any.html?label=experimental&label=master&aligned
Summary
Adds WebTransport.exportKeyingMaterial(), which allows an application to derive cryptographic keying material bound to an established WebTransport session. The method accepts application provided binary label and context values and a requested output length and returns a Promise<Uint8Array>. Chromium supports label and context values up to 255 bytes and output lengths from 1 through 4096 bytes. For WebTransport over HTTP/3, Chromium includes the WebTransport CONNECT stream ID in the TLS exporter context. This ensures that separate WebTransport sessions derive different keying material even when they share the same underlying HTTP/3 connection.
Motivation
Applications sometimes need cryptographic keying material bound to an authenticated transport session, for example to bind an application protocol, authentication exchange, or application-level encryption context to a WebTransport session without performing an additional key exchange. TLS exporters derive application-specific secret material without exposing the TLS traffic keys. WebTransport.exportKeyingMaterial() exposes this mechanism through application-provided binary label and context values and an explicit output length. Multiple WebTransport sessions can share one HTTP/3 connection. Chromium therefore includes the WebTransport CONNECT stream ID in the exporter context, ensuring that different sessions derive different keying material even when callers use identical application labels and contexts.
Standards & signals
- Specification: https://www.w3.org/TR/webtransport/#dom-webtransport-exportkeyingmaterial
- Firefox: Positive — Firefox is updating its implementation to the current three-argument API.
- Safari: In development — WebKit has landed an implementation of the current three-argument WebTransport.exportKeyingMaterial(label, context, outputLength) API.
- Web developers: Positive — The proposal received 10 👍 reactions and requests from developers, including libp2p, for TLS-session binding and channel-binding use cases.
- Tracking bug: https://issues.chromium.org/issues/556304550
Ecosystem
- Web Platform Tests: https://wpt.fyi/results/?q=webtransport%2Fexport-keying-material
- Chrome Platform Showcase: https://chrome-platform-showcase.paulkinlan-ea.deno.net/features
- GenDN reference: https://gendn.paulkinlan-ea.deno.net/features
- chrome.dev demos search: https://www.google.com/search?q=site%3Achrome.dev+WebTransport%20keying%20material%20export
- MDN Web Docs: https://developer.mozilla.org/en-US/search?q=WebTransport%20keying%20material%20export
- Baseline status: https://webstatus.dev/?q=WebTransport%20keying%20material%20export
Explainers: https://github.com/w3c/webtransport/blob/main/explainer.md