Skip to content

Database should be read-only in maintenance mode

Aakriti Gupta requested to merge ag-block-graphql-post-requests into master

What does this MR do?

Related: #295194 (closed) and #295286 (closed)

This fix makes read_only? method consistent and makes sure that graphql queries that write to the db don't go through.

There is a demo that walks you through all the fixes this MR enables, it will be posted later.

Screenshots (strongly suggested)

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
Edited by Aakriti Gupta

Merge request reports