UNCLASSIFIED - NO CUI

Mattermost doesn't respect changes in database connection string

Bug

Description

In the past, I've had to change the password as well as restore from a backup for RDS. The process ends up changing the connection string for Mattermost. However, the connection string is also stored in the database and doesn't get updated.

According to their docs, we can set MM_SQLSETTINGS_DATASOURCE to force mattermost to use the connection string stored in an environment variable.

Since bigbang manages the database secret, bigbang should also set the following here to force mattermost to use the connection string in the secret every time:

existingSecretEnvs:
  - name: MM_SQLSETTINGS_DATASOURCE
    valueFrom:
      secretKeyRef:
        key: DB_CONNECTION_STRING
        name: mattermost-database-secret

BigBang Version

What version of BigBang were you running: 2.35.0