Skip to content

Don't update user state on a read-only instance

What does this MR do?

LDAP authorization model on a Geo secondary tries to block/unblock a user if he is blocked/unblocked in LDAP raising a PG::ReadOnlySqlTransaction error, for more context see #195988 (comment 269447202). This MR prevents the user state to be updated on a read-only instance.

Screenshots

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:

  • Label as security and @ mention @gitlab-com/gl-security/appsec
  • The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • Security reports checked/validated by a reviewer from the AppSec team

Related issues

Closes #195988 (closed)

Edited by Douglas Barbosa Alexandre

Merge request reports