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

Supabase CLI V2.108 Rejects New Local_smtp Config Key, Breaking GitHub Auto Migration

Adding the new `local_smtp` top-level key to config.toml causes the Supabase CLI's strict TOML decoder to fail with 'invalid keys: local_smtp', breaking the GitHub Actions migration workflow.

highConfidence 72%Supabase CLIAffected V2.108.0

Origin Analysis

The v2.108 release introduced the `local_smtp` configuration section, but the Go struct used to decode config.toml was not updated with a corresponding field. The decoder is configured with ErrorUnused=true, so the unknown key triggers a fatal error.
1. Update Supabase CLI to v2.108. 2. Add a `[local_smtp]` section to config.toml (or regenerate config if the template includes it). 3. Push to the main branch of a repository with GitHub auto migration enabled. 4. Observe the workflow failure: 'failed to parse config: decoding failed due to the following error(s): 'config.config' has invalid keys: local_smtp'.

Fixing Code Block

Edge Case Audit

This patch only affects the Supabase CLI codebase. Users running older CLI versions in GitHub Actions will still encounter the error until they update the action to a version including this fix. Rolling back requires removing the LocalSMTP field and is safe if no code depends on the new configuration. Ensure that downstream code handles default zero values for all localSMTP fields.

Ecosystem Topology