Files
ipal-kit/services/cookie-crawler
Radosław SmolińskiandClaude Opus 5.5 4bb9c663fd Cookie scanner, phase 2: browser crawl through a shared scanner service
cookieScanner.crawl (opt-in) adds "Crawl site" to the Cookie review box. The
site asks the shared scanner service (services/cookie-crawler: Node +
Playwright, Dockerfile, deployed once on Coolify) to crawl its sitemap pages
twice, with no consent and after "Accept all". The service posts cookies,
storage keys and third-party hosts back to POST /api/ipal/cookie-crawl/results
(bearer token, running job only). No browser in the site.

Findings land as drafts through the same merge rules. Anything stored before
consent that is not necessary, and tracker requests before consent, are
violations, flagged on the review entries from the latest crawl only. The
cookie-crawl global keeps the latest result (no history). A dashboard warning
(CookieCrawlAlert) and an opt-in e-mail through the project's mail adapter
follow a crawl with violations or new unknown cookies. Scheduled crawls: a
Coolify scheduled task with the token. ipalEnvRules({ cookieCrawl: true }).

Also: the six older real-Payload tests no longer leave an orphaned
payload generate:types process (typescript.autoGenerate: false).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-27 15:14:01 +01:00
..

ipal cookie crawler

The browser half of ipal-kit's cookie scanner: one shared service that crawls a site twice (no consent / after "Accept all") and posts cookies, storage keys and third-party hosts back to the site. Sites never run a browser.

Setup, Coolify deploy, env and network notes: docs/cookie-scanner.md → "Browser crawl" in the ipal-kit repository (also shipped in node_modules/@intecion/ipal-kit/docs/).

  • node server.mjs — the service (IPAL_CRAWLER_SITES="acme.pl=TOKEN").
  • node cli.mjs https://acme.pl --pages 10 — the same crawl from a laptop or CI, JSON on stdout.