Repository navigation
Conversation
… a subpath, add requireProxy #3922 Signed-off-by: Nik Cubrilovic <[email protected]>
|
Lead review (Codex, Boat): Head: Verdict: MERGE packages/fetchers/package.json:7 and packages/fetchers/src/tls-probe.ts:1-14: socket implementation is exported only through the separate /tls-probe subpath, not the fetchers root. The CLI wrapper is the production importer in this public diff; rules, crawler and audit-engine still receive the injected function. packages/utils/tests/tls-certificate.test.ts:308 adds an importer/root-export guard. Compared the moved implementation against origin/main:apps/cli/src/audit/tls-probe.ts: executable change is solely the opt-in requireProxy branch; without that option CLI behavior is unchanged. The private worker integration is not claimed delivered by this verdict and must explicitly opt into requireProxy. Public checklist: the single head commit has Signed-off-by; CHANGELOG.md and the TLS rule docs are updated; no added em dash or mock.module found. No migration or apps/api import is part of this public diff. Review method: fetched-head diff and origin/main source inspection. Tests/gates not rerun; no production operations. |
|
Lead review (Opus, Boat): Head: Verdict: FIX (one docs line) What passes:
Finding:
Exact instruction:
|
Public half of private #3922 (decision D7).
Design
@squirrelscan/fetchers/tls-probesubpath (not from the package root). The CLI file re-exports it, so CLI imports and tests are unchanged.TlsProbeFn. The raw-socket guard test now allowlists exactly this one file and a new test asserts no shared package imports the subpath, the fetchers index does not export it, and the manifest exposes it as a subpath.requireProxy: a handshake that would go out directly isunavailable, nothing resolved or sent. The worker will pass its egress guard's local proxy asproxyUrlwithrequireProxy: true. The vetted-address pinning, EGRESS_REFUSED and 8s default timeout are unchanged.ctx.hosted), the runStreamingRules threading test.runCloudAudititself is in the private repo, so passing the probe is the private PR after the gitlink bump.Acceptance criteria
timeoutMs; measured added time per cloud audit is for the private PR.Gates
Docs: docs/rules/security/tls-certificate.mdx. CHANGELOG bullet under Changed. Skill: none. Private rule catalog: no meta text change, no regeneration.