CRE-2025-0163: Supabase Self-Hosted Critical Failures - Comprehensive Detection #154
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
CRE-2025-0163: Supabase Self-Hosted Critical Failures - Comprehensive Detection
closes #131
/claim #131
🎯 Overview
This PR introduces a comprehensive detection rule for Supabase self-hosted deployment failures - addressing critical infrastructure, configuration, and application-level issues that completely break Supabase deployments. The rule identifies 40+ distinct failure patterns across PostgreSQL, Auth, Storage, Realtime, and API Gateway components, enabling rapid incident response for complete service outages.
CRE Playground Links
CRE-2025-0163 Playground: Test Rule
📊 Supabase Failure Modes Covered
🔴 Infrastructure Failures (Critical)
Error: listen EADDRINUSE :5432
bind: address already in use :9999
No space left on device
SSL certificate expired
TLS handshake failed
🔐 Authentication & Security Failures
JWT_SECRET not set
invalid jwt secret
JWT secret too short
certificate verify failed
🗄️ Database Connection Failures
connection timeout
could not connect database
timeout expired
too many connections
📦 Storage Service Failures (S3)
S3 AccessDenied
InvalidAccessKeyId
NoSuchBucket
Permission denied
🔄 Realtime & WebSocket Failures
Realtime failed to start
websocket connection refused
subscription failed
🚨 Migration & Schema Failures
ERROR syntax error at or near
migration failed invalid SQL
relation does not exist
schema version conflict
⚡ API Gateway & Rate Limiting
429 Too Many Requests
Rate limit exceeded
504 Gateway Timeout
🧪 Testing & Validation
cat rules/cre-2025-0163/test.log | preq -r rules/cre-2025-0163/supabase-comprehensive-failures.yaml -d
🎬 Demo Environment
Screencast.from.2025-09-01.14-57-08.mp4
Demo Repository: https://github.com/piyzard/cre-2025-0163-supabase-failures
📚 References