Repository navigation
Conversation
|
Reviewed the diff. This is a tests, docs and comment change with no behaviour change, and I found nothing that blocks it.
(nit) (nit) |
…gent redirect decision is written down - probe-redirect-headers: a global fetch spy shows the metadata hop is never sent and the redirect to it was; probeFetch rejects with EgressRefusedError; a control redirect to a public address off the site IS followed, so the metadata case cannot pass for another reason (a deadline, a mock miss) - headersForRedirect keeps a User-Agent set through custom headers on a cross-origin hop, on purpose (it names the client, not a credential); comment plus test; docs say so Refs squirrelscan/repo#3332. Signed-off-by: Nik Cubrilovic <[email protected]>
…checks its verdict; docs name every kept header Refs squirrelscan/repo#3332. Signed-off-by: Nik Cubrilovic <[email protected]>
12793c9 to
64b96ed
Compare
|
Reviewed the diff. I found no blocking issues. I read the code only and didn't run the tests.
The behaviour is unchanged, the new tests assert the |
Public half of squirrelscan/repo#3332, follow-ups to the #957 redirect header work. The private half is the cloud pace probe.
packages/audit-engine/tests/probe-redirect-headers.test.ts). Covers probeFetch, the cloaking probe and the soft-404 confirmation.probeFetchrejects withEgressRefusedError.packages/utils/src/headers.ts). AUser-Agentset through the custom headers survives a cross-origin redirect hop: it names the client, it is not a credential, and dropping it would send the hop agentless.packages/utils/tests/redirect-headers-user-agent.test.ts.docs/configuration/crawler.mdxnow lists the generic client headers that survive a cross-origin hop.No behaviour change, so no CHANGELOG entry. Skill: no change.
Gates:
scripts/test-suites.ts --check;make validate.An independent review found no blocking issues. Its lows are fixed: docs wording, the spy failing closed, and the soft-404 verdict assert.