-
-
Notifications
You must be signed in to change notification settings - Fork 69.5k
feat: configurable SSRF/private-address policy for FakeIP/proxy environments #24454
Copy link
Copy link
Closed as not planned
Closed as not planned
Copy link
Labels
staleMarked as stale due to inactivityMarked as stale due to inactivity
Description
Type
Feature request
Problem
In many real-world deployments (including Chinese network environments), FakeIP/proxy-based routing is commonly used together with Telegram automation and web_fetch/browser features. In this mode, blocking private/internal IPs too aggressively breaks normal workflows:
web_fetch/URL fetching can fail with:Blocked: resolves to private/internal/special-use IP address
which prevents accessing some valid external resources.
- Telegram media retrieval may fail with
Failed to fetch mediawhenapi.telegram.orgresponses are routed through proxy/FakeIP and get treated as private addresses by SSRF checks.
Why this matters
- In many China proxy setups, using local real DNS directly is not always feasible and may expose usage patterns.
- FakeIP is a practical workaround for GFW-related network constraints.
- Users need a configurable policy instead of hardcoded strict behavior.
Request
Please provide configuration options to control private-address/SSRF handling:
web_fetch.privateAddressPolicy: strict | allowlist | off(default:strict)web_fetch.privateAddressAllowlist: ["api.telegram.org", ...]web_fetch.allowProxyPrivateBypass: true/false- Clear logs/telemetry for URLs blocked by this policy
Acceptance
- Telegram media fetch from
api.telegram.orgworks when explicitly allowlisted in proxy/FakeIP environments. - Security posture remains strict by default, with controlled opt-in relaxation.
- Behavior is configurable, avoiding manual downgrade/rollback as workaround.
This is a feature request to support production environments where FakeIP is widely used.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
staleMarked as stale due to inactivityMarked as stale due to inactivity
Type
Fields
Give feedbackNo fields configured for issues without a type.