Overview
PrefID is built with security and privacy at its core. This guide covers our security practices and how to implement secure integrations.Data Ownership
Your data belongs to you. PrefID acts as a secure vault for user preferences, not an owner.
- Users have full control over their data
- Users can view, export, and delete their data at any time
- Users control which apps can access their preferences
- All access is audited and visible to users
Authentication Security
OAuth 2.0 + PKCE
We require PKCE (Proof Key for Code Exchange) for all OAuth flows:Token Security
| Token Type | Lifetime | Usage |
|---|---|---|
| Access Token | 1 hour | API requests |
| Refresh Token | 30 days | Get new access tokens |
| Authorization Code | 10 minutes | Exchange for tokens |
Scope-Based Access Control
Applications can only access data the user explicitly grants:Best Practices
Request Minimal Scopes
Only request the scopes you actually need
Explain Scope Usage
Tell users why you need each scope
API Security
HTTPS Only
All API requests must use HTTPS. HTTP requests are rejected.Rate Limiting
| Plan | Limit | Burst |
|---|---|---|
| Free | 100/min | 20 |
| Pro | 1,000/min | 100 |
| Enterprise | Custom | Custom |
Request Signing (Optional)
For additional security, you can sign requests:Data Protection
Encryption
- At Rest: AES-256 encryption
- In Transit: TLS 1.3
- Tokens: Encrypted before storage
Data Residency
PrefID currently stores data in:- Primary: US-East (AWS)
- Enterprise: Custom regions available
Semantic Firewall™
The Semantic Firewall protects preference integrity:1
Input Validation
All preference updates are validated against domain schemas
2
Anomaly Detection
Unusual patterns trigger verification
3
User Corrections
Users can suppress incorrect preferences
4
Audit Trail
All changes are logged for transparency
Audit Logging
Every access is logged and visible to users:Incident Response
If you discover a security vulnerability:- Email: security@prefid.dev
- Do not disclose publicly until patched
- We aim to respond within 24 hours
- Responsible disclosure rewards available
Compliance
- GDPR: Full compliance with data export/deletion
- CCPA: California privacy rights supported
- SOC 2: In progress