Review main Ready for review

97867[FEATURE] Allow custom storage for RateLimiterFactory

Torben Hansen CR 0 V 0 Hard +271 −1 updated 11/21/26, 13:16

Commit message

The `RateLimiterFactory` was bound to the caching framework
storage. Its state is lost when caches are flushed, which
authenticated backend users can trigger themselves, e.g.
admins using "Flush all caches". This makes it unsuitable for
limiting actions of logged-in backend users.

The factory now accepts any Symfony StorageInterface
implementation, while the caching framework storage remains
the default.

The new `BackendUserSessionStorage` keeps the limiter state
in the session of the current backend user, so it survives cache
flushes.

Test this change

Run a command in your clone of the TYPO3 Core. Then try what the change does and vote on Verified in Gerrit. How to review a patch

Check out patch set 1
git fetch https://review.typo3.org/Packages/TYPO3.CMS refs/changes/67/97867/1 && git checkout FETCH_HEAD
Cherry-pick onto main
git fetch https://review.typo3.org/Packages/TYPO3.CMS refs/changes/67/97867/1 && git cherry-pick FETCH_HEAD

Review

  • Code review CR 0 Needs a vote
  • Verified V 0 Needs a vote
    • core-ci +1 CI

Issues 1

Files 5

Review log 12

  1. Torben Hansen uploaded patch set 1 11/21/26, 13:10

  2. core-ci voted on patch set 1 V +1 11/21/26, 13:16 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/115113