feat: native allowedDomains/deniedDomains network filtering #1
Reference in New Issue
Block a user
Delete Branch "feat/domain-filtering-proxy"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
allowedDomainsanddeniedDomainsfields tonetworkconfig, enablingper-domain outbound filtering without external tools like mitmproxy
outbound target the sandbox allows
NODE_OPTIONS=--require) that patchesfetch(),http/https.Agent.prototype.createConnection, anddns.lookuptoroute all traffic through the filtering proxy — including libraries that create
custom agents (node-fetch, axios, got) and apps that do pre-fetch DNS resolution
for SSRF protection
supported (e.g.
*.example.com,*)Config example
original implementation: as the allowed/denied domain in configuration is exactly what was removed completely out of the template/configuration - there should not be anything filtering at this level per say, all goes through internalai proxy