Compliance & Security
SafeRag is designed with privacy and compliance in mind. Learn about the safeguards that support GDPR and HIPAA work, audit logging, and data security.
Why Local Processing Matters
SafeRag processes all data locally on your Mac. This architecture provides significant compliance benefits:
No Data Transfer
Your documents and chats never leave your computer. No cloud AI, no third-party processors.
Data Residency
Data stays exactly where you want it - on your Mac, in your jurisdiction.
Full Control
You control all data lifecycle - storage, retention, and deletion.
Compliance Dashboard
SafeRag includes a Compliance Dashboard that shows the status of the safeguards SafeRag provides for your GDPR and HIPAA work.
Accessing the Dashboard
Open the Compliance section from the sidebar. You'll see status cards for:
- GDPR - Safeguards for European data protection requirements
- HIPAA - Safeguards for US healthcare data requirements
GDPR Compliance
The General Data Protection Regulation (GDPR) applies to organizations handling EU residents' personal data. SafeRag provides safeguards that support key GDPR requirements:
Article 5: Data Processing Principles
| Principle | How SafeRag Helps |
|---|---|
| Lawfulness | Data stays local - no third-party processing |
| Data Minimization | Retention policies automatically delete old data |
| Storage Limitation | Configurable retention periods |
| Integrity | Everything stored in an AES-256 encrypted disk image; chats and backups also encrypted with AES-256-GCM |
Article 15: Right of Access
Data subjects have the right to access their personal data. SafeRag Pro includes a data export feature:
Article 17: Right to Erasure
Data subjects can request deletion of their data. In SafeRag:
- Delete individual chat sessions
- Delete uploaded documents
- Delete entire user accounts (Admin) — this deletes their sessions, messages and uploaded documents
- Use retention policies for automatic deletion
HIPAA Compliance
The Health Insurance Portability and Accountability Act (HIPAA) protects sensitive patient health information. SafeRag's architecture provides safeguards that support HIPAA work:
Key HIPAA Safeguards
| Safeguard | How SafeRag Helps |
|---|---|
| Access Controls | Multi-user mode with admin and user roles; Argon2id-hashed passwords; sessions expire after 24 hours of inactivity |
| Audit Controls | Audit log of sign-ins, sessions, admin actions, exports, backups, and document uploads, queries and deletions |
| Transmission Security | No transmission of content - documents and prompts stay on the Mac; cloud models are refused |
| Integrity Controls | AES-256-GCM encrypted chat messages, titles and backups |
Audit Logging Pro
SafeRag Pro includes audit logging that records key activity on the Mac.
What's Logged
- User Activities - Sign-in, sign-out, session creation
- Document Operations - Uploads, queries and deletions (recorded by document id and file type, never file name or content)
- Admin Actions - User creation, role changes, password resets
- Data Operations - Data exports and backups
The audit log is a plain-text file kept on your Mac until you delete it. It is kept in SafeRag's encrypted disk image but is not tamper-evident, so limit admin access.
Log Details
Each audit log entry includes:
- Timestamp - When the event occurred
- Event Type - Category of the event
- Severity - Info, Warning, Error, or Critical
- User - Who performed the action
- Details - Additional context
Filtering Logs
Use filters to find specific events:
- Filter by event type
- Filter by severity level
- Search by keyword
- Navigate with pagination
Data Export Pro
Admins can export user data for compliance requests.
How to Export Data
Open Compliance Section
Navigate to the Compliance area from the sidebar.
Click Export Data
Find and click the Export All Data button.
Choose Location
Select where to save the exported JSON file.
Review Export
The JSON file contains accounts, chat history, and the list of documents.
Export Contents
The export file includes:
- User accounts (without password hashes)
- All chat sessions and messages
- The list of documents (not the document files)
Security Features
Local Storage
All SafeRag data is stored locally on your Mac:
~/Library/Application Support/io.halldor.SafeRag
Encryption
- Everything SafeRag stores — documents, search indexes, the database, backups and the audit log — is kept in an AES-256 encrypted disk image that is open only while SafeRag runs
- Chat messages, chat titles and backups are also encrypted with AES-256-GCM
- The keys come from a random secret kept in your Mac's Keychain (derived with Argon2id for chats and backups)
The app also benefits from macOS security features including:
- FileVault encryption (if enabled)
- Developer ID signing, Apple notarization and Hardened Runtime
- macOS Gatekeeper verification
Authentication
In Multi-User mode:
- Password-protected accounts (passwords hashed with Argon2id)
- Sessions expire after 24 hours of inactivity; logging out or changing a password ends existing sessions
- Password strength requirements
- Recovery codes for account recovery
Network Connections
SafeRag works offline once models are downloaded. This is the complete list of network connections it makes — none carries your documents or prompts:
- Downloading AI models from Ollama's registry, only when you choose to
- A daily check for SafeRag updates
- License activation and a periodic license check with LemonSqueezy (license key and Mac model identifier, such as "Mac15,3" — not the computer name); a Pro license must be re-checked at least every 30 days
- The Feature Requests window (WishKit), only while it is open
There is no crash reporting, analytics or tracking. Ollama Cloud is switched off and SafeRag refuses cloud models. OCR language data ships with the app, and images linked inside AI answers are never loaded.