Enforce network access domain allowlist for Duo Chat web search
Problem
Web search sends a user's question to an external search provider and brings back pages from across the web. Group owners can already turn web search on or off, but they can't keep Duo away from specific sites they don't trust or don't want used as sources.
What to change
Let admins add a denylist of domains that GitLab Duo never searches or reads.
- Web search gets its own list, separate from the Agent Platform network access lists. It livesn GitLab.com and on the instance for self-managed.
- Domains only, up to 100. Subdomains are included, so blocking example.com also blocks docs.example.com. No paths and no wildcards. *.example.com is saved as example.com, since it means the same thing.
- The list applies to searching and to opening pages, on every model. If a model's built-in search can't apply the list, that model's searches go through the AgentCore fallback instead of running unfiltered.
- Help text: "GitLab Duo won't search or read these websites when web search is on. Subdomains are included. You can add up to 100 domains."
Out of scope
- An allowlist. The requirement came from the Priyanka persona in Scenario 3, and I haven't found a customer who needs it yet. If one comes up, or AppSec needs an allowlist for page fetches, we'll open a separate issue.
- Sharing or merging with the Network access lists.
- Showing users a message when a site is blocked. That's tracked in #633484.
How we'll know it worked
- With a domain on the denylist, search results from that domain and its subdomains don't c
- Duo can't open a page on a blocked domain, on every model
- No model searches without the denylist applied when one is set
- Admins can't save more than 100 domains, a path, or an entry that isn't a domain, and they see why
Edited by Dasha Adushkina