Security Overview
How we protect your data
CodePlanet takes security seriously. This document outlines our security architecture, practices, and how we protect your data.
Security Principles
1. Defense in Depth
Multiple layers of security at every level — network, application, database, and user.
2. Least Privilege
Every component has only the permissions it needs. Users can only access their own data.
3. Secure by Default
Security features are enabled by default. Opt-out requires explicit action.
4. Transparency
We document our security practices so you understand how we protect your data.
Architecture Security
Authentication
Session-Based Auth
For browser clients, we use Supabase Auth with secure HTTP-only cookies:
API Key Auth
For programmatic access, API keys are used:
API keys are:
- Hashed before storage (never stored in plain text)
- Scoped to specific permissions
- Revocable at any time
- Rate-limited by tier
Input Validation
All API endpoints validate inputs rigorously:
Row-Level Security (RLS)
Every table in Supabase has RLS policies that ensure users can only access their own data:
Encryption
In Transit
- All traffic uses TLS 1.3
- HSTS enabled with 1-year max-age
- Certificate pinning for mobile apps
At Rest
- Database encrypted with AES-256
- Backups encrypted
- API keys hashed with bcrypt
Rate Limiting
To prevent abuse, all endpoints are rate-limited:
| Endpoint Type | Free Tier | Developer | Pro |
|---|---|---|---|
| API calls | 100/hour | 1000/hour | 5000/hour |
| Submissions | 50/day | 200/day | Unlimited |
| Auth attempts | 5/minute | 5/minute | 5/minute |
Rate limit headers are included in every response:
Payment Security
PCI Compliance
We never handle card data directly. All payment processing goes through Razorpay, which is PCI-DSS Level 1 certified.
Signature Verification
All payment callbacks are verified using timing-safe comparison:
Security Headers
Our application sets the following security headers:
Vulnerability Disclosure
If you discover a security vulnerability, please report it responsibly:
- Email: security@acodeplanet.tech
- Do not disclose publicly until we've addressed it
- We commit to responding within 48 hours
- Eligible reports may receive a bounty
Security Checklist
| Practice | Status |
|---|---|
| HTTPS everywhere | ✅ |
| Secure cookies | ✅ |
| CSRF protection | ✅ |
| SQL injection prevention | ✅ (RLS + parameterized queries) |
| XSS prevention | ✅ (React escaping + CSP) |
| Password hashing | ✅ (Supabase Auth) |
| Rate limiting | ✅ |
| Input validation | ✅ |
| Audit logging | ✅ |
| Regular security audits | ✅ |
Compliance
- GDPR: Data export and deletion available
- CCPA: California privacy rights supported
- SOC 2: Supabase infrastructure is SOC 2 Type II certified
Next Steps
- Row-Level Security — Deep dive into database security
- API Security — Secure API communication
- Data Privacy — Your data rights