Don't update user state on a read-only instance
requested to merge 195988-ldap-authorizationo-on-geo-secondary-triggers-write-to-database into master
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
-
Changelog entry -
Documentation (if required) -
Code review guidelines -
Merge request performance guidelines -
Style guides -
Database guides -
Separation of EE specific content
Availability and Testing
-
Review and add/update tests for this feature/bug. Consider all test levels. See the Test Planning Process. -
Tested in all supported browsers
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