Skip to content

External link check: the link cache is not keyed by egress policy, and a private site's links go to the cloud bulk check #775

Closed

Description

@nc9

Follow-ups from the review of #773 (#770):

  1. The global link cache is not keyed by egress policy. A private site's audit (private networks allowed) caches results for public names that resolve to private addresses, and for redirect chains it followed into private hosts. A later public site's audit serves those cached results without vetting them: refusedWithoutLookup only settles what the URL alone says, so a public name that resolves privately passes it.
  2. A signed-in audit of a private site sends private, .local and single-label links to the cloud dead-links check. These links pass the private-site policy, and the CLI's bulk checker has no non-public gate. The cloud refuses them (blocked_non_public_host), and the CLI then probably records that answer as an error, which is reported broken and cached. Internal URLs also leave the machine. Not verified end to end.

Acceptance Criteria

  • A result is not cached, or is cached per policy, when the policy that produced it allows private networks, so a public site's audit never reads a verdict a private-network check produced.
  • The bulk checker is never sent a link whose host is non-public (an IP literal or name), whatever the audit's policy. Those links take the local check. A test with a private site and a signed-in bulk checker shows none are sent.
  • A cloud refusal of a non-public host is never recorded as a broken link.

Activity

  1. added
    bug
    P2
    size: S
    security
    on Oct 14, 2026
  2. added 5 commits that reference this issue on Oct 15, 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

    P2bugsecuritysize: S

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions