auth icon indicating copy to clipboard operation
auth copied to clipboard

Unable to reload limit rate

Open purefountain opened this issue 3 weeks ago • 0 comments

Bug report

When using the Supabase local development environment, I am utilizing the Auth "reload" feature (with the hot_reload directory being watched).I added a new environment file named aaaa.env containing the following configuration: GOTRUE_RATE_LIMIT_EMAIL_SENT="200000000". Although the logs indicate that the project successfully detected and read the aaaa.env file, the api.limiterOpts remains unchanged. In other words, the GOTRUE_RATE_LIMIT_EMAIL_SENT setting failed to take effect after the reload.

Describe the bug

Image

Upon reviewing the source code, I discovered that the previous limiterOpts were already set via the following loop: for _, o := range opt { o.apply(api) }.

Because of this, api.limiterOpts is no longer null, which prevents the new configuration values from being assigned or updated.

To Reproduce

1、Create a directory named hot_reload.

2、Start the Auth service in debug mode, setting the watch_dir to the hot_reload directory.

3、Create a file named aaaa.env inside the hot_reload directory with the content: GOTRUE_RATE_LIMIT_EMAIL_SENT="200000000".

Image

4、Observe the Email value within api.limiterOpts to check if it has been updated to reflect the new environment variable.

Expected behavior

Image

Screenshots

System information

  • OS: 26.0 (25A8353)

Additional context

Do I need to fix this bug?

purefountain avatar Dec 23 '25 14:12 purefountain