fix(search): enforce blockedProviders setting on search endpoint (#11100) - #11125
Merged
diegosouzapw merged 3 commits intoAug 22, 2026
Merged
diegosouzapw merged 3 commits into
diegosouzapw merged 3 commits into
Conversation
rqzbeh
force-pushed
the
fix/mcp-web-search-blocked-providers
branch
2 times, most recently
from
August 22, 2026 15:04
7994f6c to
d941cab
Compare
diegosouzapw
force-pushed
the
fix/mcp-web-search-blocked-providers
branch
from
August 22, 2026 19:12
753a914 to
5f57502
Compare
diegosouzapw
merged commit Aug 22, 2026
367ae2f
into
diegosouzapw:release/v3.8.50
5 of 7 checks passed
muhamadgalihsaputra
pushed a commit
to niyatna/NiyatnaRoute
that referenced
this pull request
Sep 27, 2026
…gosouzapw#11100) (diegosouzapw#11125) Cherry-picked the three value commits onto the current tip, dropping the stale base-red sync commits. Focused tests: search-blocked-providers-11100 + search-registry/searxng-loopback/chat-guard/x-search suites 65/65. Fixes diegosouzapw#11100 (endpoint half) — GET /v1/search now honors blockedProviders via getAllSearchProviders. Thank you @rqzbeh!
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.
Fixes #11100.
Root Cause
getAllSearchProviders()inopen-sse/config/searchRegistry.tsreturned all search providers without filtering out those present inblockedProviderssettings.Fix
getAllSearchProviders(blockedProviders: string[] = [])inopen-sse/config/searchRegistry.tsto filter out disabled providers and any provider matchingisProviderBlockedByIdOrAlias(p.id, blockedProviders).GET /v1/searchinsrc/app/api/v1/search/route.tsto passblockedProvidersfrom settings togetAllSearchProviders(blockedProviders).Test Coverage
Added unit test
tests/unit/search-blocked-providers-11100.test.tsverifyinggetAllSearchProvidersfilters out blocked providers.