Exposed .env files and debug endpoints in Supabase
criticalUpdated Oct 12, 2026
The project URL and publishable key are not secret. The secret key, database password, and service role JWT are.
Fix for Supabase
The project URL and publishable key are not secret. The secret key, database password, and service role JWT are. The database password in a committed .env is a direct Postgres login. Rotate it in the dashboard if it leaked, not only the API key.
The five-minute check, the other platforms, and the agent prompt are on the full guide. More Supabase fixes are on the Supabase page.