Skip to content

SiteData: explicit flag for whether an audit may request other hosts (stop inferring it from externalLinks) #2109

Description

@nc9

security/supabase-rls (pub#1883) and reliability/broken-forms decide whether the audit may contact other hosts by checking site.externalLinks === undefined. That field is filled by the external link check, so both rules have to be in LINK_VERDICT_RULE_IDS and wait for the late link-verdict pass. For a probing rule that ties its requests to the 30 s reserve left after the link check: on an aggressive run with a deadline, supabase-rls can now be capped more often (reported as not checked, never as a pass).

An explicit flag would let these rules run in the normal pass.

Acceptance Criteria

  • SiteData carries an explicit flag for "this audit may request other hosts", set by the engine in both passes, and false on --offline, on targeted runs and with [external_links] enabled = false.
  • security/supabase-rls and reliability/broken-forms read that flag instead of site.externalLinks, and leave LINK_VERDICT_RULE_IDS unless they also read the verdicts.
  • Tests cover each of the three "off" cases and the "on with zero external links" case.
  • The link-verdict-rules-2144 and late-link-verdicts-2144 tests pass.

Activity

  1. added
    enhancement
    size: S
    rules
    on Nov 17, 2026
  2. nc9 commented on Nov 17, 2026

    @nc9
    ContributorAuthor

    From the pub#1883 confirm review: the engine order test (late-link-verdicts-2144.test.ts:263) asserts the ordering correctly, but its loop over security/supabase-rls checks proves nothing, because the fixture has no Supabase project. The fix for this issue should add a fixture page that names a Supabase project and tables, so the order test exercises the rule for real.

    nik

  3. added theissue type on Nov 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementrulessize: S

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions