Repository navigation
feat: v0.0.179 batch E-H - #1764
Merged
Merged
Conversation
… state in sitemap-coverage #1651 Signed-off-by: Nik Cubrilovic <[email protected]>
…t only, engine tests for sitemap read state #1651 Signed-off-by: Nik Cubrilovic <[email protected]>
…1656 Signed-off-by: Nik Cubrilovic <[email protected]>
…#1656 Signed-off-by: Nik Cubrilovic <[email protected]>
…dling #1639 Add --crawl-timeout and [crawler] crawl_timeout (max 6 h), derive the default from page budget and effective per-host rate, report a crawl_timeout partial status with a crawlPhase object (JSON schema 1.12), and report rate-limited or challenged sitemap URLs as unverified instead of orphans. Signed-off-by: Nik Cubrilovic <[email protected]>
Signed-off-by: Nik Cubrilovic <[email protected]>
…lPhase stamping and rebuild #1639 Signed-off-by: Nik Cubrilovic <[email protected]>
…nce #1639 Signed-off-by: Nik Cubrilovic <[email protected]>
…onal probes on a block #1655 Signed-off-by: Nik Cubrilovic <[email protected]>
…reasons #1655 A 429 from an off-origin sitemap host no longer stops the optional probes. Agent access and RSL probes now observe block signals, a block on a configured page is not checked, and a redirect that was not followed has its own not-checked reason. Adds samePathRedirect tests. Signed-off-by: Nik Cubrilovic <[email protected]>
Move the node:tls probe from apps/cli to @squirrelscan/fetchers/tls-probe (egress guard and CONNECT proxy handling unchanged); the CLI path re-exports it. wwwVariant moves to utils/tls-certificate so fetchers does not depend on rules. The raw-socket guard test allowlists the one probe file. Add an audit-engine test that runStreamingRules threads tlsProbe to the rule. Signed-off-by: Nik Cubrilovic <[email protected]>
An explicit http CONNECT proxy wins over the proxy environment and NO_PROXY and is used like an environment proxy (name vetted, CONNECT to the vetted address, TLS inside the tunnel). An unusable URL is not checked, never a direct socket. Unset: behaviour is unchanged. Signed-off-by: Nik Cubrilovic <[email protected]>
…d #3922 A hosted run (RunnerScope.hosted, ctx.hosted) reports security/tls-certificate as not checked without advice about networks, proxies or --offline, and the report hint follows details.environment. The CLI wording is unchanged. Tests cover both wordings and an engine-level verdict change through runStreamingRules. The rule docs describe where the check runs. Signed-off-by: Nik Cubrilovic <[email protected]>
Signed-off-by: Nik Cubrilovic <[email protected]>
…scanned counts) for the dashboard and the published report #3915 Signed-off-by: Nik Cubrilovic <[email protected]>
…lscan.com; reports live on the org's squirrel.report address Signed-off-by: Nik Cubrilovic <[email protected]>
…d_party_scan credit feature Signed-off-by: Nik Cubrilovic <[email protected]>
…affected page #1729 Signed-off-by: Nik Cubrilovic <[email protected]>
…ult, linked skill versions, auto-update, offline scores #1730 Signed-off-by: Nik Cubrilovic <[email protected]>
…utes on macOS and Linux #1733 127.0.0.2 only routes to loopback on Linux. 0.0.0.0 reaches this machine on both and is not on the localhost fast path, so the request tool still carries the probe. Checked by mutation: with the body-sample timeout, the reachability timeout and the request deadline all disabled, the test fails. Signed-off-by: Nik Cubrilovic <[email protected]>
…eason, rendered per reason in every format #1734 Adds LockedRule.reason (plan, provider_error, unsupported_environment) and detail, and cause/causeDetail on notChecked entries; all optional. Reports with no reason keep today's wording. JSON schema 1.12 (lockedRules, notChecked cause). Docs: reports.mdx, configuration/output.mdx. Agent skill: no change needed (the reason is data in the report an agent already reads). Signed-off-by: Nik Cubrilovic <[email protected]>
… page and header evidence #1735 crawl/schema-noindex-conflict: pages and items (capped sample, sorted by URL) with each page's schemaTypes and blockedBy, true count in details.occurrences and details.pagesTruncated. security/csp: every check names the page (pages, details.pageUrl) and header; csp-unsafe-scripts and csp-wildcard add the directive carrying the weak source, its value (cut to 300 chars) and a directives list. Prose unchanged. Verified in the streaming engine (golden test, no DOM) and with a local squirrel audit --offline of a fixture site: affectedPages, items and details came out as documented. Docs: both rule pages. No rule count change; README/docs index untouched. Agent skill: no change needed. Signed-off-by: Nik Cubrilovic <[email protected]>
…rried invariant, rotated-set test #1031 Public half only. Criteria 1 and 2 (a count of pages with a finding and no page record) need the hosted store's GROUP BY (private repo#3509); the docs now state the real semantics and the invariant, and a test pins a capped run that rotates its pages. Signed-off-by: Nik Cubrilovic <[email protected]>
…ne repeated across 5+ cards; pin the short contact page #1441 Narrow relaxation only. The 20% deduction cap, the raw-density limit and the floor are unchanged, so AC1 and AC3 (a card-dominated page, and raising the cap on large grids) still await the cap decision: the pins for the card-dominated 24-card page stay as they were (the shipping note is now deductible but the cap leaves it counted). AC2 (short contact page with a plain menu) pinned; AC6 docs updated. Signed-off-by: Nik Cubrilovic <[email protected]>
…s and skips the cloud checks #2729 Signed-off-by: Nik Cubrilovic <[email protected]>
…ome, so missing and present-but-weak differ #1737 Check rename: hsts-no-pages, hsts-not-applicable, hsts-missing, hsts-malformed, hsts-disabled, hsts-max-age-short, hsts (adequate, kept); x-frame-options-no-pages, x-frame-options-missing, x-frame-options-allow-from, x-frame-options-invalid, x-frame-options-csp-frame-ancestors, x-frame-options (valid header, kept). Check names are part of finding identity, so findings that carried the old single name re-key once on the next audit: a missing, short or invalid header appears as a new finding and the old one resolves. Golden finding-messages updated (two lines). Docs: both rule pages list the names. Agent skill: no change. Signed-off-by: Nik Cubrilovic <[email protected]>
…e chain, the five-hop cap and a loop #1281 Checkpoint. The feature itself (resolver, consent, exit 4, MCP handshake, SSRF guard per hop, destination estimate and registration, outputs, docs, skill) is on main; the cloud alias of the original URL on the website row is the one open criterion and is a hosted change (private). No local https fixture exists, so the http to https to www chain stays a resolver unit test; the e2e covers the multi-hop shape. Signed-off-by: Nik Cubrilovic <[email protected]>
… dead domain, reserved suffix), awaiting-confirmation gets its own warning, pass message says what was verified #1739 #1740 Signed-off-by: Nik Cubrilovic <[email protected]> #1739: links/broken-external-links severity is error. Confirmed broken (404, 410, 'domain does not exist', 'invalid link: no such domain suffix') fails under broken-external-links; 5xx, timeouts, TLS and connection errors and other 4xx warn under possibly-broken-external-links; a first failure awaiting its confirming check (unverifiedReason awaiting-confirmation) warns under awaiting-confirmation-external-links ('likely broken, being confirmed'), no longer under waf-blocked-external-links; walls, rate limits, refused and not-requested still only inform. #1740: a link under .invalid, .test or .example (RFC 6761) on a public site's audit is answered as 'no such domain suffix' without a lookup and is never sent to the cloud checker, not listed as refused; a private-network audit looks it up. A non-resolving name on a real TLD stays broken ('domain does not exist'); a local NXDOMAIN is confirmed on a second lookup, and a resolver timeout or SERVFAIL is unverifiable, never broken. refused-external-links covers only private, loopback, link-local and metadata addresses and no longer mentions DNS. The pass message says 'X of Y verified working; Z could not be verified or were not checked' when any link was not verified. The solution says a lapsed domain can be re-registered. Squashed into one commit because the rule file's edits for both issues interleave. Score impact on the local fixture (one 404 link, one dead host, one working): overall 31 -> 31, Reliability 87 -> 75, failures 4 -> 5. The private side confirms a first 404 itself (#3991).
…that ran never return an empty list (#1741) Signed-off-by: Nik Cubrilovic <[email protected]>
…blish cap keeps coverage-gap rows (#1749) Signed-off-by: Nik Cubrilovic <[email protected]>
… than 1 s with their measured time #1751 Signed-off-by: Nik Cubrilovic <[email protected]>
…e computed background and counts what it cannot measure #1752 Signed-off-by: Nik Cubrilovic <[email protected]>
…sized image, perf/total-byte-weight names the heaviest resource #1753 Signed-off-by: Nik Cubrilovic <[email protected]>
Signed-off-by: Nik Cubrilovic <[email protected]>
…#1754 Signed-off-by: Nik Cubrilovic <[email protected]>
Signed-off-by: Nik Cubrilovic <[email protected]>
Signed-off-by: Nik Cubrilovic <[email protected]>
…arm host, so it stops flapping near the limit #1751 Signed-off-by: Nik Cubrilovic <[email protected]>
… missing meta, lang fix/regress diff Signed-off-by: Nik Cubrilovic <[email protected]>
…s own host #1758 Signed-off-by: Nik Cubrilovic <[email protected]>
Signed-off-by: Nik Cubrilovic <[email protected]>
…1743 Signed-off-by: Nik Cubrilovic <[email protected]>
Signed-off-by: Nik Cubrilovic <[email protected]>
… rule limit held back #1757 Signed-off-by: Nik Cubrilovic <[email protected]>
Closed
…e-site linked stylesheets #1756 Signed-off-by: Nik Cubrilovic <[email protected]>
…ylesheet paints as not measured #1756 Signed-off-by: Nik Cubrilovic <[email protected]>
…ed to a page #1760 Signed-off-by: Nik Cubrilovic <[email protected]>
… whatever the crawl order #1761 Signed-off-by: Nik Cubrilovic <[email protected]>
…undle and script-limit fixes Signed-off-by: Nik Cubrilovic <[email protected]>
…#1750) Signed-off-by: Nik Cubrilovic <[email protected]>
…ce, to 8 levels, and bounds the selector guard #1756 Signed-off-by: Nik Cubrilovic <[email protected]>
…e (CodeQL polynomial-redos) Signed-off-by: Nik Cubrilovic <[email protected]>
…lean pass, product-discovery goes through parser/dom, refused fetches stop optional probes (#1741, #1651, #1655) Signed-off-by: Nik Cubrilovic <[email protected]>
…0.0.179 until the private API matches (#1738, #1743) Signed-off-by: Nik Cubrilovic <[email protected]>
…tml, text and markdown reports (#1734) Signed-off-by: Nik Cubrilovic <[email protected]>
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.
Integration bundle E+F+G+H for v0.0.179, rebased on v0.0.178 (main b6c3dbc). One PR, one CI run, one train. It replaces batch E (#1763, now a draft) and the single PRs and Boat patches listed below.
Closes
Batch E (from #1763)
--crawl-timeout,crawl_timeoutpartial reason), sitemap denial handling, schema 1.12 docscrawl/sitemap-coverageBatches F, G, H
Release order
#1639 adds the partial reason
crawl_timeout, which the private API validates. After this merges, the private gitlink bump must deploy BEFORE the v0.0.179 version bump and tag.Docs for issues as action plans and for the cloud version were dropped from this bundle: the private API does not match them yet. They go in a later bundle once the private side ships.
JSON report schema
E keeps 1.12 (
crawlPhase,lcp-preloadpage evidence). #1734 is 1.13 (lockedRules,cause,causeDetail). #1744 is 1.14 (meta.pageTypes). All three are inlimits.ts,docs/configuration/output.mdxand the version tests.Score note
Rules that ran and found nothing now record a clean pass instead of an empty checks list (nine rules: the four page integrity rules, kit-signature, cloaking and known-malicious-url as skipped when off, content/date-agreement, schema/rating-scope). Pass rows count toward the score, so scores can rise by about a point. The canonical golden pins this (health 53 to 54, 105251 to 108253 findings).
Rule meta text or name changes (private catalog regen needed in the gitlink bump)
slow-blocking-script(over 2 s, or over 1 s from a warm host)color-contrast-unresolved; the old "Limited contrast analysis" info is goneleaked-secrets-unfetched; items carrysourcePagesandmeta.occurrenceshttp://links are no longer reported; kindinsecure-self-linkremoved)meta.solutionchanged again (linked stylesheets); text inside a container a linked sheet paints is unresolvedleaked-secrets-unfetchedmessage now says "script limit or the asset fetch cap"; newctx.site.scriptsNotReadUrlspagesChecked,pageCountIsFloorpossibly-broken-external-links,awaiting-confirmation-external-links(feat(rules): an external link confirmed broken is an error, not a warning #1739)meta.checks; declared for leaked-secrets, hsts, x-frame-options, csp, dev-leakage, render-blocking, color-contrast, redirect-chains and the nine formerly silent rules, with a ratcheting baseline testredirect-chain-multi-hop), perf/bad-caching, security/csp, crawl/schema-noindex-conflictRule cache format is now
prc-6(#1756 addsstylesheetBackgroundsto the page-rule context).Verified
Rebuilt by cherry-picking F, G and H onto the E base; CHANGELOG rebuilt so Unreleased holds exactly the bundle's bullets and released sections equal origin/main.
extract-changelog.awkfor 0.0.179,test-changelog-extraction.shandcheck-released-changelog.sh origin/mainpass. Gates run locally by explicit path: tsgo in core-contracts, utils, rules, report, audit-engine, crawler, fetchers, parser and cli; apps/cli format:check and lint; docsmake validate; the schema, report, rules declaration, golden (streaming canonical, finding messages), publish-cap, render-blocking, leaked-secrets, page-type, nut-shop, MCP and template fan-out tests. golden-baseline was not run (machine out of swap). DCO sign-off on every commit.Agent skill: needs a change for the local MCP
list_pagestool andmeta.pageTypes(private issue squirrelscan/repo#4010).