@rstreamlabs/webtty 1.9.0 → 1.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +39 -9
- package/dist/{chunk-7OHAFDJE.mjs → chunk-6DA72SBW.mjs} +2615 -2065
- package/dist/index.d.mts +140 -126
- package/dist/index.d.ts +140 -126
- package/dist/index.js +2617 -2065
- package/dist/index.mjs +5 -1
- package/dist/node.d.mts +1 -1
- package/dist/node.d.ts +1 -1
- package/dist/node.js +2631 -2069
- package/dist/node.mjs +20 -6
- package/examples/filesystem-sidecar/package.json +4 -4
- package/examples/remote-command/package.json +4 -4
- package/package.json +8 -7
package/README.md
CHANGED
|
@@ -389,15 +389,45 @@ WebTTY E2E encryption.
|
|
|
389
389
|
Protocol suite identifiers currently represented in the WebTTY protobuf
|
|
390
390
|
contract are:
|
|
391
391
|
|
|
392
|
-
| Field | Protocol identifiers
|
|
393
|
-
| ------------------ |
|
|
394
|
-
| `payloadSuite` | `aes-256-gcm`, `chacha20-poly1305`
|
|
395
|
-
| `keyEnvelopeSuite` | `hpke-x25519-hkdf-sha256-aes-256-gcm`, `hpke-x25519-hkdf-sha256-chacha20-poly1305` |
|
|
396
|
-
|
|
397
|
-
The helpers
|
|
398
|
-
HPKE/X25519/HKDF-SHA256/AES-256-GCM
|
|
399
|
-
|
|
400
|
-
|
|
392
|
+
| Field | Protocol identifiers |
|
|
393
|
+
| ------------------ | ------------------------------------------------------------------------------------------------------------------------------- |
|
|
394
|
+
| `payloadSuite` | `aes-256-gcm`, `aes-256-gcm-random-nonce`, `chacha20-poly1305` |
|
|
395
|
+
| `keyEnvelopeSuite` | `hpke-x25519-hkdf-sha256-aes-256-gcm`, `p256-hkdf-sha256-aes-256-gcm-random-nonce`, `hpke-x25519-hkdf-sha256-chacha20-poly1305` |
|
|
396
|
+
|
|
397
|
+
The helpers support two complete E2E profiles. Existing applications keep using
|
|
398
|
+
the default HPKE/X25519/HKDF-SHA256/AES-256-GCM profile. Applications that need
|
|
399
|
+
to interoperate with a FIPS build of the Go client or engine must select the
|
|
400
|
+
P-256/HKDF-SHA256/AES-256-GCM random-nonce profile and use WebTransport:
|
|
401
|
+
|
|
402
|
+
```ts
|
|
403
|
+
const keyEnvelopeSuite = "p256-hkdf-sha256-aes-256-gcm-random-nonce" as const;
|
|
404
|
+
const identity = await generateWebTTYE2EIdentity(keyEnvelopeSuite);
|
|
405
|
+
const payloadCrypto = await createWebTTYE2EClientPayloadCrypto({
|
|
406
|
+
recipients: [
|
|
407
|
+
{
|
|
408
|
+
keyEnvelopeSuite,
|
|
409
|
+
keyId: serverKeyId,
|
|
410
|
+
publicKey: serverPublicKey,
|
|
411
|
+
},
|
|
412
|
+
],
|
|
413
|
+
});
|
|
414
|
+
|
|
415
|
+
const client = new WebTTY(
|
|
416
|
+
{ transport: "webtransport", url },
|
|
417
|
+
{ payloadCrypto },
|
|
418
|
+
);
|
|
419
|
+
```
|
|
420
|
+
|
|
421
|
+
Standard rstream endpoints accept both profiles. FIPS Go builds accept only the
|
|
422
|
+
P-256 random-nonce profile and WebTransport. ChaCha20-Poly1305 identifiers remain
|
|
423
|
+
reserved for forward compatibility and are rejected by the current helpers.
|
|
424
|
+
|
|
425
|
+
This JavaScript implementation is protocol-compatible with the FIPS profile;
|
|
426
|
+
it does not embed the validated Go Cryptographic Module and is not itself a
|
|
427
|
+
validated FIPS 140-3 cryptographic module. The **FIPS 140-3 Inside — Go
|
|
428
|
+
Cryptographic Module, Certificate #5247 (Overall Security Level 1)** statement
|
|
429
|
+
applies only to the corresponding Go client and engine artifacts that embed
|
|
430
|
+
and enforce that module, not to browser WebCrypto or this JavaScript package.
|
|
401
431
|
|
|
402
432
|
Do not derive payload keys from passwords or application strings.
|
|
403
433
|
|