Issue Task Under Review

#111587Backend access checks in the frontend are not reusable

Matthias Vogel 11/25/26, 13:20 updated 11/25/26, 13:41

Description

Before the frontend accepts the backend user of a request, it checks [BE][IPmaskList], [BE][lockSSL] and [BE][adminOnly], and whether the user may log in. These checks are in the protected method BackendUserAuthenticator::isAuthenticated() and in FrontendBackendUserAuthentication::backendCheckLogin(). Other code that must make the same decision has to copy them. The checks return only true or false, so a caller cannot tell or log why the backend user was denied.

Proposal: one internal class makes these checks in one place and returns a decision that contains the reason for a denial. The existing methods delegate to it, and the behaviour does not change.

Reviews 1

History 24

  1. Matthias Vogel changed Related to #110664 11/25/26, 13:21

  2. Gerrit Code Review pushed patch set 1 for main to change 98018 status New Under Review 11/25/26, 13:22

  3. Matthias Vogel changed parent task #111576 11/25/26, 13:23

  4. Gerrit Code Review pushed patch set 2 for main to change 98018 11/25/26, 13:41