AI & Agent Dev Bug Sandbox logo
AI & Agent Dev Bug Sandbox
Back to Radar

Supabase Config Push Auth Step Fails With 500 Decryption Error

CLI config push fails specifically on auth config with HTTP 500 'Failed to decrypt data' for preview branches, blocking deployment of auth changes.

highConfidence 70%Supabase CLIAffected V2.113.0

Origin Analysis

Server-side decryption of auth configuration secrets fails for the preview branch, likely due to mismatched encryption keys or corrupted secret data added recently; the platform returns an opaque 500 without identifying the failing field.
1. Have a Supabase project with remote auth config set. 2. Create or use a preview branch with recent auth secret changes. 3. Run `supabase config push --project-ref <ref> --yes --debug`. 4. Observe API and DB config push succeed, then auth push fails with 500 and errorEventId.

Fixing Code Block

Edge Case Audit

This patch does not fix the server-side decryption failure; it only improves error visibility and may mislead users into thinking the issue is resolved. If the underlying key mismatch persists, config push will continue to fail. For server-side fixes, altering encryption keys may affect existing data and should be done under maintenance with backups. Rollback: revert this patch to restore original error handling if unexpected behavior occurs.

Ecosystem Topology