Make clear Redis "default_url" is not an example to be followed

What does this MR do?

This is part of gitlab-com/gl-infra/scalability#1058 and spun off from !62767 (merged).

Gitlab::Redis::{Cache,Queues,SharedState} have default URL's that get used in case there is no YAML config file. These default URL's make no sense because they are not the default Redis URL (localhost:6379); instead they are localhost:6380, localhost:6381 and localhost:6382. It is very unlikely that anybody is using them but it is hard to rule out.

As a compromise for removing these default URL's altogether, this MR refactors the Redis instance configuration code so that default_url is not part of the shared configuration logic in Gitlab::Redis::Wrapper which should hopefully prevent whoever adds Redis instances in the future (e.g. !62767 (merged)) from cargo-culting the default URL mechanism.

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

Merge request reports

Loading