Files
ruflo/v3/@claude-flow/cli/src/transfer
Reuven d9fd359565 fix(security): add fetch timeouts to verify + IPFS HEAD probe (audit_1776853149979)
Two no-timeout fetch sites a hung remote could pin indefinitely:

  src/commands/verify.ts:fetchWitness
    Bare fetch(url) for the verification manifest. Now AbortSignal.timeout(30000) —
    a sub-MB JSON over a public CDN should never need more than 30s, and we'd
    rather fail fast than hang the verify CLI.

  src/transfer/ipfs/upload.ts:checkContent
    HEAD probe to an IPFS gateway, no timeout. Now AbortSignal.timeout(10000) —
    HEAD without a body has no excuse to take longer.

Other no-timeout sites (download.ts streaming, upload.ts large POSTs) are
deliberately left alone — an absolute timeout would falsely abort slow but
progressing transfers of large blobs. Those need a connect-vs-transfer
timeout split, deferred to a separate change.

Verified:
- tsc --noEmit clean
2026-05-03 20:18:56 -04:00
..
2026-01-08 18:39:20 +00:00
2026-01-08 18:53:03 +00:00
2026-01-08 18:39:19 +00:00
2026-01-13 15:58:33 +00:00
2026-01-08 18:58:03 +00:00
2026-01-08 18:42:24 +00:00
2026-01-08 18:40:26 +00:00
2026-01-08 18:57:23 +00:00
2026-01-08 18:42:08 +00:00
2026-01-08 18:42:08 +00:00
2026-01-08 21:01:28 +00:00