doc/development/maintenance_mode.md
GitLab Maintenance Mode only blocks writes from HTTP and SSH requests at the application level in a few key places within the rails application.
Search the codebase for maintenance_mode?.
Gitlab::Database.read_only?.gitlab-shell POSTs to /internal/allowed to check if access is allowed.The database itself is not in read-only mode (except in a Geo secondary site) and can be written by sources other than the ones blocked.