All checks were successful
INV-INT9 issue.status write-ownership / int9-guard (pull_request) Successful in 8s
ctx.http.fetch נחסם ע"י הגנת-SSRF של Paperclip כלפי 127.0.0.1:8001 (stale-case-reminder, weekly-feedback-analysis); sync-case-status קיבל 401 על GET /api/cases (session-only) ועובר לנתיב המינימלי /api/cases/status-index שנוסף ל-legal-ai (PR #1118). Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
17 lines
680 B
TypeScript
17 lines
680 B
TypeScript
/**
|
|
* `fetch` of the worker process — used by the scheduled jobs that read legal-ai's
|
|
* internal-machine routes at `http://127.0.0.1:8001`. `ctx.http.fetch` is host-mediated
|
|
* and Paperclip's SSRF guard rejects loopback/private targets ("All resolved IPs for
|
|
* 127.0.0.1 are in private/reserved ranges"), which is why `stale-case-reminder` and
|
|
* `weekly-feedback-analysis` failed (legal-ai #1117). `LegalApi` already uses this fetch.
|
|
*
|
|
* Kept in its own module (no TypeScript parameter properties) so `node --test` can
|
|
* load it in strip-only mode.
|
|
*/
|
|
export function fetchLegalApi(
|
|
url: string,
|
|
init?: RequestInit,
|
|
): Promise<Response> {
|
|
return fetch(url, init);
|
|
}
|