opencode
opencode copied to clipboard
[FEATURE]: webfetch allowed/blocked URLs
Feature hasn't been suggested before.
- [x] I have verified this feature I'm about to request hasn't been suggested before.
Describe the enhancement you want to request
Having the ability to allow/block certain URLs from webfetch would greatly improve security when using build mode.
This issue might be a duplicate of existing issues. Please check:
- #5529: [FEATURE]: Add per-agent filesystem boundaries (allow/deny paths) + optional run-as user for bash - Comprehensive feature request for per-agent access controls that includes URL/fetch restrictions
- #6318: [FEATURE]: Limit tool (e.g. write, edit) permissions to specific folders - Related feature for tool-level permission restrictions
These issues discuss broader security and access control features that may encompass or relate to URL filtering for webfetch.
Feel free to ignore if your specific use case isn't fully addressed by these existing discussions.