Skip to content

Make `config/database.yml.postgres` to use `main:`

Kamil Trzciński requested to merge transform-database-yml into master

What does this MR do?

This got moved away from !65054 (merged) to ensure a testing consistency between how we configure application for tests vs Omnibus/CNG. This should be merged as soon as transformation of config is done on Omnibus/CNG. Otherwise, we might end-up with bugs related to database configuration and usage of constructs like in codebase:

# valid (will work regardless of name of main database config)
ActiveRecord::Base.configurations.find_db_config(Rails.env)

# invalid
ActiveRecord::Base.configurations.configs_for(env_name: Rails.env, name: 'main')

Related to:

Requires:

Screenshots (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 Thong Kuah

Merge request reports