How to Secure PlanetScale
Step-by-step guide to securing your PlanetScale database with branching workflows and best practices.
PlanetScale Security Context
PlanetScale is built on Vitess, offering branching workflows and non-blocking schema changes. Key security areas include branch protection, connection security, and proper team permissions.
Security Checklist
Configure connection passwords
CriticalUse strong, unique passwords for database connections.
Enable branch protection
CriticalProtect production branches from direct schema changes.
Review branch permissions
CriticalConfigure appropriate access for development branches.
Use non-blocking schema changes
CriticalLeverage PlanetScale's non-blocking schema changes securely.
Secure connection strings
CriticalStore connection strings in environment variables.
Enable audit logging
Track database operations and schema changes.
Configure team permissions
Set appropriate access levels for team members.
Review deploy requests
Require approval for production schema changes.
Configure Vitess settings
Review Vitess-based security settings.
Enable SSL connections
Verify SSL is enabled for all connections.
Review query insights
Monitor for suspicious query patterns.
Configure connection pooling
Set appropriate connection limits.
Review backup settings
Verify automatic backups are configured.
Configure IP restrictions
Restrict database access to trusted IPs.
Review organization settings
Configure organization-level security.
Run security scan
Use VibeEval to scan your application.
Related Resources
Automate Your Security Checks
Let VibeEval scan your application for database security issues.
Scan Your App