Skip to content

Remove WFE account cache - #8953

Open
aarongable wants to merge 2 commits into
mainfrom
rm-account-cache
Open

Remove WFE account cache#8953
aarongable wants to merge 2 commits into
mainfrom
rm-account-cache

Conversation

@aarongable

@aarongable aarongable commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

Delete the code implementing the WFE's in-memory account cache. This cache was introduced when our primary bottleneck and source of reliability issues was database reads. We have since improved database performance in a variety of ways, and this minor reduction in read volume is no longer necessary. At the same time, the account cache causes numerous issues: it does not have proper cache invalidation when accounts change state, and it is not shared across multiple WFE instances, so it frequently leads to stale reads which can cause security and correctness issues.

This uncovered a long-standing bug in the integration tests, which had accidentally been relying upon the WFE account cache to authorize two consecutive key rollover requests both signed by the same original key.

Fixes #6144
Fixes #8795

Closes #6744
Closes #8132
Closes #8852
Closes #8796

The corresponding production config changes were made in IN-12897.

@aarongable
aarongable marked this pull request as ready for review August 17, 2026 23:51
@aarongable
aarongable requested a review from a team as a code owner August 17, 2026 23:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant