Skip to content

docs(cloud): the ten third-party rules: category page and one page per rule - #1804

Closed
nc9 wants to merge 1 commit into
mainfrom
docs/third-party-rules
Closed

nc9 wants to merge 1 commit into
mainfrom
docs/third-party-rules

Conversation

@nc9

@nc9 nc9 commented Nov 13, 2026

Copy link
Copy Markdown
Contributor

Closes #1802

Public docs for the ten third-party/* cloud rules: docs/cloud/third-party/index.mdx (the scan, sampling, sensitive-page rule, limits) and one page per rule, with Cloud-tab navigation, a row in docs/cloud/rules.mdx, links from the Security and rules overview pages, docs/index.mdx and the README, and a redirect from /rules/third-party so the announcement and dashboard links resolve.

Where the pages live, and why not docs/rules/

The rules are a private plugin pack, so they are not in the open-source registry. Under docs/rules/ that breaks three checks that tie the directory to the registry: packages/rules/tests/docs-rule-pages.test.ts (every rule page needs a **Rule ID** a loaded rule has), the glossary generator (it reads every docs/rules/** page and wants a hub entry), and docs-index-rule-counts.test.ts (a README or docs/index.mdx category row must match the registry's count). So the pages are under docs/cloud/third-party/ and the README and docs/index.mdx mention the rules as prose beside the gap-analysis note, not as a counted category row (the same way gap analysis is handled). Say if you would rather extend the registry-bound checks to allow cloud-only rule pages; that is a separate change.

What is stated, and where it comes from (private repo, origin/main)

  • Ten rules, ids, severities and descriptions: packages/third-party/src/rules/index.ts (the rule pack at the end of the file); weight 1.
  • Thresholds as untuned defaults (10, 15, 25 companies; 5 on one sensitive page; exclusive boundaries; counted in companies): packages/third-party/src/thresholds.ts header and vendor-count.
  • At most 8 sampled pages, home first, then sensitive-looking paths, then spread evenly; 60 s step budget, 45 s API deadline; never fails the audit: apps/worker-agent/src/third-party-scan.ts.
  • Sensitive page decided from the URL path only (wallet, checkout, login, account words, locale and container handling, content sections excluded): packages/third-party/src/scan.ts (pageSensitivityOf).
  • Skipped, never passed, when the scan cannot run or a blocklist is unavailable or truncated, with the exact messages: readScanOutcome and humanizeScanSkip in the rules file.
  • Critical for a failing compromised-script, at least high for session replay and the sensitive-page count: apps/api/src/lib/issue-triage/critical.ts and third-party-severity.ts.
  • Unattributed host classes and lists: packages/third-party/src/classifier.ts; the three blocklists and their refresh: apps/api/src/lib/third-party-scan/blocklists.ts.
  • No credits charged: apps/api/src/routes/v1/services-third-party-scan.ts; no vendor score in any customer surface: packages/private-contracts/src/third-party-section.ts.
  • Availability is worded to be true before and after the scan is switched on for every plan (private #4138): the pages say a cloud audit includes the scan once it is switched on for your organization's plan, and that an audit without it has no Third parties section.
  • Not claimed: alerts (flag-gated, off at ship), the order of vendors, and any per-site disable of these rules.

Checked

make validate in docs/ (62 tests, links, anchors, glossary); packages/rules docs-rule-pages and docs-index-rule-counts (51); no em dashes; sentence-case headings. The web prose:check belongs to the private repo's apps/web content, not these docs.

Agent skill: no change needed. The skills do not list rules by name or count, and the rules reach an agent through get_report like any other.

nik

…r rule, nav, redirect and overview links #1802

Signed-off-by: Nik Cubrilovic <[email protected]>
@nc9

nc9 commented Nov 13, 2026

Copy link
Copy Markdown
Contributor Author

Landed in bundle #1805, rebase-merged to main.

nik

@nc9 nc9 closed this Nov 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docs: the ten third-party/* cloud rules (category page and one page per rule)

1 participant