Skip to content

chore(conf): do not halt startup for non-essential config fields#2572

Open
cstockton wants to merge 4 commits into
masterfrom
cs/conf-json-parsing
Open

chore(conf): do not halt startup for non-essential config fields#2572
cstockton wants to merge 4 commits into
masterfrom
cs/conf-json-parsing

Conversation

@cstockton

Copy link
Copy Markdown
Contributor

This wraps some non-essential fields that would previously halt the startup of the auth server when Validate() failed with a cachedValue. This cached value holds the original error for testability but maintains the existing API's around it. When err is non-nil we log a warning.

I also removed some unrelated dead code in internal/mailer I spotted while auditing uses of the newly wrapped config values.

This wraps some non-essential fields that would previously halt
the startup of the auth server when Validate() failed with a
cachedValue. This cached value holds the original error for
testability but maintains the existing API's around it. When err
is non-nil we log a warning.

I also removed some unrelated dead code in internal/mailer I
spotted while auditing uses of the newly wrapped config values.
@cstockton cstockton requested a review from a team as a code owner June 10, 2026 20:28
@cstockton cstockton enabled auto-merge (squash) June 10, 2026 20:31
@cstockton cstockton disabled auto-merge June 10, 2026 20:33
Chris Stockton and others added 2 commits June 11, 2026 10:19
This doesn't impact our code base as used today in any place I
see but adding this to preserve existing behavior.
Comment thread internal/conf/configuration.go Outdated
Comment thread internal/conf/configuration.go Outdated
Comment thread internal/conf/configuration.go Outdated
Comment thread internal/conf/configuration.go Outdated
Comment thread internal/conf/configuration.go Outdated
@blacksmith-sh

blacksmith-sh Bot commented Jun 12, 2026

Copy link
Copy Markdown

Found 2 test failures on Blacksmith runners:

Failures

Test View Logs
github.com/supabase/auth/internal/conf/TestValidate View Logs
github.com/supabase/auth/internal/conf/TestValidate View Logs

Fix in Cursor

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.

2 participants