1. Zero Data Retention (ZDR) for AI Models
The central security question for accounting firms using AI is: Does an external model provider retain or train on our client data? No. Pernee enforces Zero Data Retention by default across all AI workflows.- Gateway-Enforced ZDR: All requests to AI models pass through an AI gateway that routes them only to providers with contractual Zero Data Retention terms.
- Fail-Closed Guarantee: If a provider does not support ZDR or an agreement is unavailable, the gateway refuses to route the request.
- Never Used for Training: Neither Pernee nor any underlying model provider ever uses your firm’s prompts, uploaded tax returns, workpapers, client financials, or emails to train public or foundation models.
2. Multi-Tenant Isolation & Row-Level Security (RLS)
Pernee stores firm and client data in dedicated PostgreSQL schemas backed by Supabase. Tenant isolation is not an application-layer check; it is enforced directly inside the database engine.- RLS in the Database: Row-Level Security is enabled on the database tables, and queries against firm data are filtered by the requesting user’s organization and client permissions.
- Client Boundary Protection: Within a firm, a client’s documents are visible to the firm’s admins and to the team members assigned to that client. Data is scoped to each firm, so one firm’s users do not see another firm’s data.
- Daily Automated Canaries: A production tenant-isolation canary runs every morning at 07:00 UTC, attempting unauthorized cross-tenant queries. Any regression triggers an immediate critical alert.
- Automated RLS Probes: Every schema migration must pass automated policy probes in CI (
npm run test:rls) before being deployed to staging or production.
3. Encryption at Rest & in Transit
Application-Layer Credential Encryption
Sensitive integration credentials (such as Microsoft Graph and Google Drive OAuth access and refresh tokens, as well as workspace join tokens) are encrypted at the application layer before touching disk:- Algorithm: AES-256-GCM with a fresh random 12-byte initialization vector (IV) per entry.
- Integrity Verification: Authentication tags are validated on every decryption to detect any tampering or bit rot.
- Ciphertext Format: Structured as
v1:<iv>:<tag>:<data>. - Zero-Downtime Key Rotation: Rotation is supported via dual-key decryption mechanisms (
CONNECTOR_TOKEN_ENCRYPTION_KEY_PREVIOUS), allowing seamless re-encryption without service interruptions.
Storage & Database Encryption
- Database Volumes: Full disk encryption at rest using AES-256 managed by Supabase.
- Object Storage: All document storage buckets (
knowledge-pdfs,knowledge-library,space-files) are completely private (public = false) and protected by storage-layer RLS policies. - In-Transit Protection: All network traffic is encrypted with TLS 1.2 or higher. Web traffic enforces HTTP Strict Transport Security (HSTS) with
max-age=63072000; includeSubDomains; preload.
4. Database-Level Multi-Factor Authentication (MFA)
Security controls that rely solely on middleware can be bypassed by broken routes. Pernee enforces step-up authentication directly in the database:mfa_satisfied()Gating: For anyone who has set up an authenticator app, and for everyone in a firm that requires one, RLS policies require a verified multi-factor session (aal2) to read client tables. A password-only session (aal1) gets zero rows.- Zero Plaintext Secrets: Passwords are one-way hashed with bcrypt. TOTP secrets are held exclusively in hardened auth vaults and are not stored in application tables. MFA recovery codes are hashed with salted SHA-256.
5. Privacy & Observability Safeguards
We design our telemetry and monitoring to prevent sensitive client tax documents, Social Security Numbers (SSNs), and Employer Identification Numbers (EINs) from leaking into logs:- Masked Session Replay: Sentry error tracking and session replay explicitly enable
maskAllText: true,maskAllInputs: true, andblockAllMedia: true. All input fields and client text appear as redacted bars in diagnostics. - No Email in Observability: Error trackers identify sessions solely by internal opaque UUIDs, never by user email address or client names.
- Stripped HTTP Payloads: Server-side request bodies containing tax documents or embeddings are stripped before error transmission.
6. Security Questionnaires
Pernee has not started a SOC 2 audit yet, so there is no SOC 2 report to share. If your firm needs a Security Questionnaire or a Data Processing Addendum (DPA) for vendor onboarding:- Reach out to our security team at security@pernee.com.
- View our public privacy policy at pernee.com/privacy-policy and terms at pernee.com/terms.