Skip to content

tech-detect in a local audit only sees a fixed header subset, so header-only fingerprints never match #871

Closed

Description

@nc9

Found on #646. In a local audit, technology detection sees only the response headers the crawler stores on the page record. buildHeaderMap in apps/cli/src/audit/cloud.ts passes content-type, server, a few cache headers, link, server-timing, alt-svc, content-encoding and the CSP. Header-only fingerprints for anything else therefore never match locally. That includes X-CDN and X-Iinfo (Imperva), X-Sucuri-ID (Sucuri), and the other type: "header" detectors in packages/tech-detect. In the reporter's fixture runs, X-CDN: Incapsula produced no technology locally.

Acceptance Criteria

  • Every header name a tech-detect type: "header" detector reads reaches technology detection in a local audit. Either the crawler stores those headers, or detection runs where the full response headers are available.
  • A local audit of a fixture that answers X-CDN: Imperva lists Imperva among its technologies.
  • Stored page records do not grow without bound: only the headers detectors read are kept, with a size cap per value.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugrulessize: S

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions