fix: preserve dns pinning for strict web SSRF fetches

This commit is contained in:
Peter Steinberger
2026-03-02 15:54:18 +00:00
parent a3d2021eea
commit 345abf0b20
9 changed files with 83 additions and 9 deletions

View File

@@ -220,6 +220,7 @@ async function uploadSlackFile(params: {
},
policy: SLACK_UPLOAD_SSRF_POLICY,
proxy: "env",
dangerouslyAllowEnvProxyWithoutPinnedDns: true,
auditContext: "slack-upload-file",
});
try {

View File

@@ -168,6 +168,7 @@ describe("sendMessageSlack file upload with user IDs", () => {
expect.objectContaining({
url: "https://uploads.slack.test/upload",
proxy: "env",
dangerouslyAllowEnvProxyWithoutPinnedDns: true,
auditContext: "slack-upload-file",
}),
);