CRE-2025-0078
SpiceDB Database Schema Failures: Missing Core TablesHighImpact: 10/10Mitigation: 2/10
CRE-2025-0078View on GitHub
Description
Detects critical SpiceDB database schema failures caused by missing core tables like\n`metadata`, `alembic_version`, or `relation_tuple_transaction`. These errors often stem\nfrom incomplete migrations, startup race conditions, or schema corruption, resulting in\na complete breakdown of SpiceDB authorization capabilities.\n
Mitigation
IMMEDIATE ACTIONS:\n- Stop the SpiceDB service immediately to prevent further inconsistent behavior.\n- Check PostgreSQL connectivity and schema integrity.\n- Run: `psql -U postgres -d spicedb -c \"\\dt\"` to inspect existing tables.\n- If tables are missing, initialize and apply migrations:\n `spicedb migrate init && spicedb migrate head`\n