Skip to content

Conversation

jprenken
Copy link
Contributor

@jprenken jprenken commented Sep 24, 2025

WIP: Add tests.

Add a refreshOverrides func to the ratelimits.limitRegistry struct. Instead of populating the static overrides field once when creating an instance of the struct, call the new func at startup and then every 30 minutes.

Emit relevant logs and metrics from limitRegistry.

Add an OverridesFromDB feature flag to read overrides from the DB instead of a file.

Flatten newLimitRegistry.*() methods' logic into their sole caller, NewTransactionBuilder().

Rename loadDefaults() & loadOverrides(), appending FromFile for clarity/consistency.

test: Add ra-sct-provider dependency on SA.

Important for deployment: If the OverridesFromDB feature flag is enabled, starting the RA now depends on the SA. The RA must be added as a gRPC client of sa.StorageAuthorityReadOnly.

Fixes #8382

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.

wfe/ra: Periodically load rate limit overrides from the database
1 participant