You share deeply personal goals with Histriva. Here is exactly how we protect them.
Encryption
Every AI conversation is encrypted with a unique AES-256-GCM key before storage — the database only ever sees ciphertext
Envelope encryption pattern: each conversation gets its own key, wrapped by a master key
Passwords are hashed with bcrypt — we never store plaintext passwords
All data is encrypted in transit via HTTPS/TLS
GDPR & CCPA rights
Right to erasure (GDPR Article 17) — request deletion and you have 30 days to cancel. Your identifying details are then erased, and your data, including encrypted conversations, is permanently deleted 120 days after your request
Data portability (GDPR Article 20) — export all your data as JSON, HTML, or CSV anytime from Settings
We honor CCPA deletion requests — contact privacy@histriva.com
Analytics are opt-in only — no tracking until you explicitly consent
No dark patterns in consent flows — two clear options, no pre-checked boxes
Access control
API-layer authentication via signed JWT sessions scopes every query to your user ID on every request
Row-Level Security (RLS) enabled on every database table as database-layer defense-in-depth behind that primary API-layer check
Server-side only database access — the database key never reaches your browser
Admin operations are isolated and justified in code — user-facing routes use user-scoped clients
AI data handling
Anthropic (our AI provider) does not use API data for training and deletes it within 30 days by default — per their published commercial terms
Only sanitized coaching context reaches the AI model — not your full conversation history
Imminent-crisis signals are caught by a fast local keyword screen with no AI call; subtler signals are classified by a dedicated safety pass — see Automated safety classification below
AI output is filtered through a two-pass safety system before reaching you
Your data controls
Export all your data as JSON, HTML, or CSV — goals, habits, conversations, scores, everything — from Settings at any time
Delete your account from Settings. Your data is permanently deleted 120 days after your request. A record of the erasure stays in our audit log, and database backups expire within 7 days
Analytics consent toggle in Settings — revoke consent anytime and PostHog stops tracking immediately
You own your data. We don't sell it, share it for advertising, or use it to train AI models
Vendor commitments
Anthropic: API data is not used for training and is deleted within 30 days by default, per its published commercial terms
Supabase: SOC 2 Type II certified, data encrypted at rest and in transit
Sentry: coaching content scrubbed before error reports are sent — no conversation data in error logs
PostHog: PII stripped from all analytics events — only anonymous user IDs and domain-level metrics. Session replays mask every text node and input value at the recorder, so we capture interaction shape (clicks, scrolls, navigation) but never readable content
Automated safety classification
Every message you send to the AI coach is run through a multi-layer safety classifier (a fast automated screen, then AI-confirmed). The classifier looks for crisis signals like suicidal ideation, self-harm, abuse, eating disorder, substance crisis, or acute distress.
When a signal is detected at Tier 0 (imminent crisis) or Tier 1 (elevated risk), we log a SafetyEvent row containing only: tier, category, optional domain, and timestamp. We do NOT store the message text in the safety event itself — the row is metadata, not content.
Tier 0 (imminent crisis) and Tier 1 (elevated risk) trigger a crisis-response message with relevant hotlines and resources before the AI continues. Tier 2 (supportive) softens the coaching tone for the rest of the conversation. Tier 3 (no signal) does nothing.
Safety event categories are limited to a fixed set: SUICIDAL_IDEATION, SELF_HARM, HARM_TO_OTHERS, ABUSE_VICTIM, FINANCIAL_DESPERATION, EATING_DISORDER, SUBSTANCE_CRISIS, ACUTE_DISTRESS, MILD_DISTRESS. There are no free-text or hidden categories.
The classification is used for your safety, not to restrict you — it does not lock or suspend your account. It can show a crisis-response message, soften the coaching tone, and pause nudges. After an imminent-crisis signal, an account deletion request starts its grace period later unless you choose to proceed now, and data export is never delayed.
High-risk signals alert our team. Sentry and an admin email through Resend receive your user ID and the safety metadata, never the message text. PostHog receives the tier and category under a system ID, not yours.
You can request a copy of your safety event history at any time via the Settings → Data Portability flow (GDPR Article 20). The export includes the same tier / category / domain / timestamp values described above.
If you believe a safety event was incorrectly logged or want a human to review the classification, email privacy@histriva.com. Per GDPR Article 22, you have the right to request human review of automated decisions and to contest the outcome.
Infrastructure
Application hosted on Netlify with automatic HTTPS and DDoS protection
Database hosted on Supabase (AWS) with automated daily backups, retained for 7 days
Rate limiting on all API endpoints to prevent abuse
CSRF protection via origin header verification on all mutations
Content Security Policy headers to prevent XSS attacks
Security concerns?
If you discover a vulnerability or have a security question, contact us at security@histriva.com