Merge conflict Gerrit cannot merge this change. It needs a rebase onto main.

Review main Ready for review Stale

94207[FEATURE] Explicit access declaration for backend routes

Oliver Hader CR 0 V 0 Hard +595 −2 updated 06/08/26, 14:49

Commit message

All backend route types (AJAX, regular, module subroutes)
now support first-class, middleware-enforced access levels.

Routes can declare access via:

* access = 'admin' — restricted to admin users
* access = 'systemMaintainer' — restricted to system
  maintainers
* inheritAccessFromModule = '<identifier>' — access tied
  to a backend module's permission check (AJAX routes)
* inheritAccessFromModule = false — explicitly accessible
  to any authenticated backend user (AJAX routes)

A Reports module status check lists AJAX routes without
an explicit access declaration. The feature flag
security.backend.enforceAjaxRouteAccessDefinition (default
off) enforces the requirement for AJAX routes, returning
HTTP 403 for undeclared routes when enabled.

All AJAX routes in TYPO3 core have been updated.

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 3
git fetch https://review.typo3.org/Packages/TYPO3.CMS refs/changes/07/94207/3 && git checkout FETCH_HEAD
Cherry-pick onto main
git fetch https://review.typo3.org/Packages/TYPO3.CMS refs/changes/07/94207/3 && 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 12

Review log 710

  1. Oliver Hader uploaded patch set 1 05/29/26, 10:47

  2. Oliver Hader uploaded patch set 2 05/29/26, 10:59

  3. core-ci voted on patch set 1 V -1 05/29/26, 11:00 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/102609

  4. core-ci voted on patch set 2 V -1 05/29/26, 11:08 Core CI is not happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/102611

  5. Oliver Hader uploaded patch set 3 V -1 05/29/26, 12:56

  6. Oliver Hader marked it ready for review 05/29/26, 13:04

  7. core-ci voted on patch set 3 V +1 05/29/26, 13:04 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/102612

  8. Oliver Klee commented on patch set 3 06/02/26, 07:41

    BackendModuleValidator.php:105

    These are 3 calls to `$route` in a row now. Does this behavior belong here or rather in the Route class? Maybe we can move this to a method in the Route class and use a communicative name for this.
  9. Oliver Hader commented on patch set 3 06/07/26, 13:25

    BackendModuleValidator.php:105 Reply

    I'd say "no" since the route usually should not have a dependency on how it is used (which would be "AJAX route", "module route" or "module route that should inherit permissions from the module").
  10. Oliver Klee commented on patch set 3 06/08/26, 14:49

    BackendModuleValidator.php:105 Reply

    Acknowledged