Sanitizes network requests/responses for session replay by redacting sensitive data.
// Source: https://github.com/vellum-ai/vellum-assistant | License: MIT | Copyright 2025 Vellum AI // Provided via justclaw.it.com; keep this notice with the code. /** * Scrub sensitive data from session-replay network records before they are * recorded. Built for the replay provider's `network` config: a request/response * sanitizer receives the record and returns a scrubbed copy (or `null` to drop * it entirely — unused here; we scrub in place rather than drop). * * Scrubbed surfaces: * - headers — auth/cookie headers redacted by name * - url/referrer — every query-param VALUE redacted (keys kept) plus any * parametric fragment. Like bodies, query params can carry * arbitrary user content under generic keys (e.g. `?q=<search>`), * ... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key