Repository navigation
fix(engine): explicit SiteData flag for whether an audit may request other hosts #2109 - #2176
Merged
Merged
Conversation
nc9
force-pushed
the
boat/sitedata-allow-external-2109
branch
from
November 22, 2026 12:55
9569e84 to
817ac88
Compare
nc9
added a commit
that referenced
this pull request
Nov 22, 2026
…ests on it #2176 Signed-off-by: Nik Cubrilovic <[email protected]>
nc9
marked this pull request as ready for review
November 22, 2026 13:32
…at probe other hosts #2109 Signed-off-by: Nik Cubrilovic <[email protected]>
…ounterpart #2109 Signed-off-by: Nik Cubrilovic <[email protected]>
…ests on it #2176 Signed-off-by: Nik Cubrilovic <[email protected]>
Signed-off-by: Nik Cubrilovic <[email protected]>
nc9
force-pushed
the
boat/sitedata-allow-external-2109
branch
from
November 22, 2026 13:52
2358a0f to
88216e0
Compare
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.
Closes #2109
Adds
SiteData.mayRequestOtherHosts, set by the engine in both site-data builders (blocking and streaming; the late pass spreads the streaming one). It isconfig.external_links.enabled !== false;--offlineand targeted runs already switch that off inmergeOptionsToConfig. Absent reads as false.security/supabase-rlsandreliability/broken-formsread the flag.supabase-rlsleavesLINK_VERDICT_RULE_IDS(runs in the normal pass);broken-formsstays because it still reads the verdicts.Acceptance criteria
late-link-verdicts-2144> "SiteData.mayRequestOtherHosts" (both passes, 3 cases each); CLIaudit-options.test.ts(offline, targeted, externalLinksEnabled false).reads mayRequestOtherHosts, not externalLinks(both rules),link-verdict-rules-2144passes.link-verdict-rules-2144andlate-link-verdicts-2144pass. The order test now has a fixture that names a Supabase project (as asked in the issue comment) and asserts the rule runs in the first pass.Gates
format:check, lint, typecheck clean. CI suites: rules 12521 pass 0 fail; audit-engine 2372 pass 0 fail; cli audit-options 30 pass. Mutation check: forcing the flag to true fails 2 engine tests.
Skill change: none. Docs: none.