feat(web_fetch): add allowed_private_hosts config for SSRF bypass#4590
Merged
Conversation
|
I'm guessing this didn't make it into the v0.6.2 release? |
2 tasks
rareba
added a commit
to rareba/zeroclaw
that referenced
this pull request
Mar 29, 2026
…F bypass Add `allowed_private_hosts` field to `HttpRequestConfig` enabling explicit opt-in access to specific private/internal hosts, mirroring the web_fetch implementation from PR zeroclaw-labs#4590. This provides a more granular alternative to the existing blanket `allow_private_hosts` boolean. Closes zeroclaw-labs#4868
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
allowed_private_hostsfield toWebFetchConfigfor explicit opt-in access to private/internal hostsblocked_domainstakes precedence overallowed_private_hostsTest plan
allowed_private_host_bypasses_ssrf_block- allowed private IP worksunallowed_private_host_still_blocked- non-listed private IP blockedblocklist_overrides_allowed_private_host- blocked_domains winsallowed_private_host_with_port- host:port matching worksCloses #4549