Skip to content

fix(conf): ignore invalid SMTP headers config#2568

Open
pjpjq wants to merge 1 commit into
supabase:masterfrom
pjpjq:codex/ignore-invalid-smtp-headers
Open

fix(conf): ignore invalid SMTP headers config#2568
pjpjq wants to merge 1 commit into
supabase:masterfrom
pjpjq:codex/ignore-invalid-smtp-headers

Conversation

@pjpjq

@pjpjq pjpjq commented Jun 6, 2026

Copy link
Copy Markdown

Summary

  • Treat invalid optional GOTRUE_SMTP_HEADERS JSON as a warning instead of failing global config validation.
  • Clear stale normalized SMTP headers before each validation pass.
  • Keep valid SMTP header parsing unchanged and cover invalid env loading with regression tests.

Fixes #2533.

Tests

  • go test ./internal/conf -run TestValidate -count=1
  • go test ./internal/conf/confload -run 'TestGlobal|TestGlobalIgnoresInvalidSMTPHeaders' -count=1
  • go test ./internal/conf/... -count=1

@pjpjq pjpjq requested a review from a team as a code owner June 6, 2026 12:14
@pjpjq pjpjq changed the title fix(conf): 忽略无效 SMTP headers 配置 fix(conf): ignore invalid SMTP headers config Jun 9, 2026
@pjpjq pjpjq force-pushed the codex/ignore-invalid-smtp-headers branch from 235729e to 0181755 Compare June 9, 2026 10:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Auth pod crash-loops on invalid GOTRUE_SMTP_HEADERS JSON — fatal Validate() breaks the entire service

1 participant