Commit Graph
35 Commits
Author SHA1 Message Date
Tim Smart ba3d81a3ad Assert the error tag for small-order X25519 peers
Native deriveBits rejects a small-order X25519 public key with an
OperationError on Node, Bun and Deno, which currently surfaces as Unknown.
A peer's invalid key is rejected input data, so expect InvalidData.
2026-10-09 20:38:48 +00:00
Tim Smart 172b1413da Cover KDF parameter ownership after an operation starts
Mutating a PBKDF2 options object's iteration count after the operation
starts must not change the result. This currently fails on every runtime
because the Web Crypto backend reads the count after its first await.
2026-10-09 20:38:48 +00:00
Tim Smart fa05398960 Migrate Crypto tests and cover HMAC verification and backend contract 2026-10-09 20:38:48 +00:00
Tim Smart d176c06326 Migrate Crypto tests and cover public API guarantees 2026-10-09 20:38:47 +00:00
Tim Smart 97b8107341 Reduce Crypto tests to focused contract coverage
Replace per-runtime copies of the RSA-OAEP, HMAC, and PBKDF2 tests with one
shared describeCrypto suite of published known-answer vectors, following the
node-shared *.test-utils.ts convention. Drop tests that mock SubtleCrypto
internals, inspect batching or freezing, or exercise the internal HChaCha20
helper, and keep one core regression test per random-sampling fix plus one
for make's argument validation.
2026-10-09 20:38:47 +00:00
Sebastian Lorenz a8257a32de Batch random shuffle draws in Crypto 2026-10-09 20:38:47 +00:00
Sebastian Lorenz df9c3c0796 Buffer small random-byte requests in the Node crypto service
Each native random fill costs about as much for 4 KiB as for 7 bytes, so
serving per-draw requests from a reusable buffer makes randomShuffle about
15x faster on Node and 3x on Bun. Requests return fresh copies, consumed
bytes are zeroed, and the buffer is discarded before a V8 startup snapshot
is serialized so snapshot-started processes never share random bytes.
2026-10-09 20:38:47 +00:00
Sebastian Lorenz a7af335c42 Add ECDH/X25519 key agreement and AES-CTR to Crypto
Add deriveSharedSecret for full-length ECDH and X25519 shared secrets,
rejecting mismatched keys and all-zero X25519 output (RFC 7748). Add
AES-CTR secret keys and cipher options, deriveBits key usage, and raw
import/export of ECDSA, ECDH, Ed25519, and X25519 public keys. Key usages
are now reported in a canonical order across backends.
2026-10-09 20:38:47 +00:00
Sebastian Lorenz 4f5902333a Address Crypto review findings
Default importJwk usages to the JWK key_ops, bound PBKDF2 iterations and
length to Web Crypto's 32-bit limits, sample narrow integer ranges without
BigInt, report a missing SubtleCrypto backend explicitly, reuse shared
digest paths in Deno, and avoid leaving XChaCha plaintext in the Buffer pool.
2026-10-09 20:38:46 +00:00
Michael Arnaldi d2e0cd0506 Add HKDF, Argon2id, XChaCha20-Poly1305, and JWK support 2026-10-09 20:38:46 +00:00
Michael Arnaldi a1a99a2b15 Expand Crypto with encryption, signing, and key management 2026-10-09 20:38:46 +00:00
Sebastian Lorenz 9dbd07e006 Accept address and name server inputs in the Dns services (#8973) 2026-10-09 18:29:30 +00:00
effect-bot 93410da528 Add stderr terminal detection to Stdio (#8938) 2026-10-09 21:12:56 +13:00
Sebastian Lorenz d4f7dc3300 Add TLSA records to DNS services (#8953) 2026-10-09 09:02:21 +02:00
Sebastian LorenzandTim Smart a9b5148225 Add DNS resolution to effect/net (#8880)
Co-authored-by: Tim Smart <hello@timsmart.co>
2026-10-09 07:34:40 +02:00
Tim 8e5ab22a42 Fix Esc cancellation for CLI prompts (#8934) 2026-10-08 22:06:24 +00:00
Tim 0a6f270e21 Allow NodeTerminal fixtures time to start under CI load (#8930) 2026-10-09 09:27:28 +13:00
Tim b9e7821be3 Add DatagramSocket (UDP) module (#8409) 2026-10-08 21:16:57 +13:00
effect-botandTim Smart 182e26dae1 Add FileSystem noFollow open option and positional reads (#8900)
Co-authored-by: Tim Smart <hello@timsmart.co>
2026-10-08 06:46:46 +00:00
Tim f1aedb0a67 Fix forceKillAfter cleanup after non-zero process leader exit (#8736) 2026-10-04 20:03:50 +00:00
Tim 20276b3b48 Serialize NodeTerminal fixture tests (#8393) 2026-09-22 21:22:08 +00:00
Tim 1b4461ec3a Move unstable Effect modules to top-level paths (#8354) 2026-09-22 13:06:30 +12:00
Dan van der MerweandTim Smart 05a6405d3d fix(platform-node): clean process groups after successful leader exit (#8245)
Co-authored-by: Tim Smart <hello@timsmart.co>
2026-09-15 14:53:24 +12:00
samandTim Smart 6d55555b83 fix(FileSystem): keep stat when optional inode exceeds MAX_SAFE_INTEGER (#8164)
Co-authored-by: Tim Smart <hello@timsmart.co>
2026-09-11 09:33:40 +12:00
Tim b43bfd644a Align CLI constructor names with Schema and Config (#8121) 2026-09-08 02:53:46 +00:00
Tim 4ab4e838a4 Fix filesystem and HTTP file range precision loss (#8110) 2026-09-07 15:10:03 +12:00
93f32c93ca Migrate filesystem byte counts to ByteSize (#7552)
Co-authored-by: Tim Smart <hello@timsmart.co>
Co-authored-by: Architect <tim.smart@effectful.co>
2026-09-07 01:38:23 +00:00
Xia Chao 2f106a5245 fix(platform): propagate upstream NodeStream duplex failures (#8071) 2026-09-05 09:19:33 +00:00
Tim ba2fd822e9 Wait for the process group in NodeChildProcessSpawner release and kill (#8018) 2026-09-04 21:11:02 +12:00
Kit LangtonandTim Smart 615c41e193 fix(NodeSink): invalidate drain callbacks on interruption (#7714)
Co-authored-by: Tim Smart <hello@timsmart.co>
2026-09-03 05:03:00 +00:00
Kit LangtonandTim Smart 163cebdc19 fix(NodeFileSystem): classify watch events relative to their target (#7710)
Co-authored-by: Tim Smart <hello@timsmart.co>
2026-09-03 04:26:33 +00:00
Kit LangtonandTim Smart 37cdd692ad fix(NodeFileSystem): accept empty writeAll buffers (#7708)
Co-authored-by: Tim Smart <hello@timsmart.co>
2026-09-03 16:07:04 +12:00
Kit LangtonandTim Smart d0a6c5eee0 fix(NodeSink): capture writable finalization errors (#7712)
Co-authored-by: Tim Smart <hello@timsmart.co>
2026-09-03 16:03:41 +12:00
Aari 2ae5a96266 Fix zero maxBytes handling in NodeStream (#7233) 2026-08-14 11:13:07 +12:00
Sebastian Lorenz c7fa11044c Move platform packages (#7169) 2026-08-10 11:28:58 +02:00