Security & privacy architecture
serpvi ingests your search performance, live visitor telemetry, and payment webhooks. We isolate tenants at every storage boundary, default to cookieless collection, and avoid holding credentials broader than the job requires.
| Layer | Primary control | Operational guarantee |
|---|---|---|
| Multi-tenant OLAP isolation | ClickHouse Row Policy + tenant-scoped CTE views | Every analytical query is constrained at the storage and query layers to the authenticated workspace and permitted site IDs. |
| Agent & API authentication | OAuth 2.1 + PKCE & scoped API keys | Separate read and write scopes; state-mutating MCP actions require explicit write credentials and confirm-gated execution. |
| First-party analytics (s.js) | Cookieless by default (~4.5 KB gzipped) | Sets zero cookies or persistent browser storage; visitor IDs use daily-rotating server-side salted hashes and raw IP addresses are never stored. |
| Opt-in session replay (replay.js) | Client-side PII masking (~8.3 KB gzipped) | Off by default; masks password, payment, and form inputs before upload, supports strict text masking, and supports on-demand hard deletion. |
| Connector credentials | Read-only OAuth scopes & encrypted tokens | Google Search Console and GA4 integrations request read-only scopes; OAuth refresh tokens and webhook signing secrets are encrypted at rest. |
| Webhook & fetch hardening | Cryptographic HMAC verification & SSRF guards | Payment webhooks verify provider signatures before ingestion; public URL inspection tools enforce strict SSRF blocks against private/loopback IP ranges. |
| Retention & GDPR DSAR | Configurable TTL up to 3 years + portable export | Automated TTL partition expiry, admin portable JSON export, and live tenant purge on deletion requests (with statutory billing/audit retention and rolling off-site backup expiry within 30 days). |
| Disaster recovery | Daily encrypted off-site backups | Automated daily backups encrypted prior to off-site transfer with routine integrity verification and rolling retention expiry (no instant cold-backup destruction claims). |
Tenant isolation & ClickHouse Row Policy
Workspace isolation is enforced in depth rather than relying solely on application-level filters. Analytical queries against ClickHouse execute under row-level tenant policies scoped to the requesting workspace's authorized sites, and read-only analytical SQL endpoints execute inside tenant-shadowed CTE views with strict AST allowlists, join/CTE ceilings, and short execution timeouts.
OAuth 2.1 + PKCE & prompt-injection hygiene for MCP
Connecting AI agents to live production telemetry introduces two distinct risks: overly broad credentials and untrusted visitor strings (page paths, search queries, referrers, JS error stacks) attempting prompt injection.
- Least-privilege scopes: MCP clients authenticate via OAuth 2.1 with PKCE or scoped API keys separating read-only analytics from write actions (
mcp:write). - Confirm-gated mutations: destructive or state-changing tools (such as deleting a funnel, goal, experiment, or session replay) preview the action by default and require explicit confirmation.
- Untrusted-data boundaries: visitor-supplied strings are explicitly tagged as quoted data in AI diagnostic outputs so connected models treat them as evidence rather than instructions.
Privacy by design & honest compliance posture
We design serpvi to minimize personal data collection — cookieless default tracking, no persisted raw IP addresses, client-side PII masking on opt-in session replays, and DSAR export/hard-delete workflows (detailed in our Privacy Policy). We do not display third-party compliance badges (such as SOC 2 Type II or ISO 27001) that have not been formally audited; instead, we publish exact technical controls so your team can evaluate our architecture honestly.
Responsible disclosure
If you discover a security vulnerability in serpvi, our SDKs, or our MCP server, please email hello@serpvi.com with reproduction details. We acknowledge reports promptly and coordinate fixes before public disclosure.