Security
3 in-depth guides on security for teams running self-hosted, privacy-first web analytics.
3 guides on security.
All 51Architecture 25Metrics 13DuckDB 9Performance 9Privacy 9SQL 7Comparison 5Data Modeling 5Self-Hosting 4Google Analytics 3Security 3AI 2MCP 2A/B Testing 1API 1Caching 1Integrations 1SEO 1
Safely Letting Users Run SQL Against Your Analytics
Exposing a SQL editor to users means accepting arbitrary queries. Parse-and-allowlist beats regex blocklists, plus row caps, statement timeouts and per-site scoping that cannot be escaped.
Aug 26, 20268 min readRead
Storing Third-Party API Keys Safely in a Self-Hosted App
Users paste credentials into your app. How to encrypt them at rest with AES-256-GCM, why the key must never come back to the browser, and what a masked hint is for.
Aug 20, 20267 min readRead
Multi-Tenant Analytics: Isolating Sites Properly
One instance, many sites, many users. Membership tables over ownership columns, enforcing scope in middleware rather than per-route, and why the AI and SQL layers need the same check.
Aug 8, 20268 min readRead