fix(security): prevent gatewayUrl SSRF

This commit is contained in:
Peter Steinberger
2026-02-14 20:53:30 +01:00
parent e95ce05c1e
commit c5406e1d24
4 changed files with 61 additions and 2 deletions

View File

@@ -20,7 +20,7 @@ describe("gateway tool defaults", () => {
expect(opts.url).toBeUndefined();
});
it("passes through explicit overrides", async () => {
it("accepts allowlisted gatewayUrl overrides (SSRF hardening)", async () => {
callGatewayMock.mockResolvedValueOnce({ ok: true });
await callGatewayTool(
"health",