Skip to content

Store the load balancer proxy in ActiveRecord

What does this MR do?

Related to !64321 (merged) / #211875 (closed)

Currently we are storing this in @proxy in Gitlab::Database::LoadBalancing. This class is auto-loaded which means it is also unloaded when a Ruby change is detected. Not sure why this wasn't unloaded with the classic autoloader.

This moves this to a class instance variable in ActiveRecord::Base

Screenshots or Screencasts (strongly suggested)

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

Does this MR contain changes to processing or storing of credentials or tokens, authorization and authentication methods or other items described in the security review guidelines? If not, then delete this Security section.

  • 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 Kamil Trzciński (Back 2025-01-01)

Merge request reports

Loading