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

Edge Function 'Verify JWT With Legacy Secret' Toggle Resets To ON After CLI Deploy

When a Supabase Edge Function’s 'Verify JWT with legacy secret' toggle is disabled in the dashboard, a subsequent `supabase functions deploy` from a local project with no `verify_jwt` setting in `supabase/config.toml` resets the toggle to ON, re-enabling legacy JWT verification. This can break webhooks and other callers that do not send a Supabase JWT.

highConfidence 85%Supabasesupabase-jspgvector

Origin Analysis

The `supabase functions deploy` command sends `verify_jwt: true` by default when the local function configuration does not explicitly set `verify_jwt`. The `supabase functions download` command does not persist the dashboard-configured `verify_jwt` setting, so a user who manually disables it has no local record; redeployment reverts the remote function to the CLI default.
1. Create and deploy a Supabase Edge Function. 2. In the Dashboard, turn the 'Verify JWT with legacy secret' toggle OFF. 3. Run `supabase functions download` to download the project locally. 4. Modify the function code (optional). 5. Run `supabase functions deploy <function-name>`. 6. In the Dashboard, observe the toggle is ON again.

Fixing Code Block

Edge Case Audit

This workaround requires manual addition for each affected function. If `supabase/config.toml` is regenerated or the function is renamed, the setting may be lost. Concurrent deploys from different machines that lack the local config will still reset the toggle. To rollback, remove the `verify_jwt` entry or set it to `true`. A proper CLI patch is needed to preserve dashboard-configured values when the flag or config is not provided.

Ecosystem Topology

Agent Frameworks

LangChain, LlamaIndex, and Pydantic

  1. highProperty graph relation keys collide when entity IDs or labels contain underscores
  2. highCodeActAgent drops assistant tool-call metadata during handoff, leaving an orphan tool response
  3. high[Bug]: HierarchicalNodeParser async methods return the documents unsplit
  4. highLLM.predict_and_call fails with ValidationError for non-function-calling models when react_chat_formatter is omitted
  5. highAnthropic streaming server-tool input_json_delta overwrites completed client tool_use arguments due to stale cur_tool_call state