mattermost/server/config
Jesse Hallam 79ba3d3d83
Some checks are pending
ESR Upgrade / Run ESR upgrade script from 5.37 to 7.8 (push) Waiting to run
ESR Upgrade / Run ESR upgrade script from 5.37 to 6.3 (push) Waiting to run
ESR Upgrade / Run ESR upgrade script from 6.3 to 7.8 (push) Waiting to run
Server CI Master / master-ci (push) Waiting to run
Web App CI Master / master-ci (push) Waiting to run
Fix config Sanitize fields missing from desanitize, causing FakeSetting to be persisted (#36619) (#36653)
* Add TestDesanitizeRemovesAllFakeSettings to catch future omissions

Walks every string field in the config after a Sanitize+desanitize
round-trip and fails if any still holds FakeSetting. This catches the
case where a field is added to Sanitize without a corresponding
desanitize entry.

* Fix ElasticsearchSettings.ClientKey being incorrectly masked as a secret

ClientKey is a file path, not a secret value. Masking it caused the
asterisk string to be persisted to the database on config writes, which
broke TLS client auth on restart.

* Fix desanitize missing entries for fields added in 504fb96fdd

504fb96fdd masked five fields in Sanitize without adding the
corresponding desanitize entries, meaning a config save through the
API would permanently overwrite those fields with FakeSetting:

- FileSettings.ExportAmazonS3SecretAccessKey
- ServiceSettings.GoogleDeveloperKey
- ServiceSettings.GiphySdkKey
- CacheSettings.RedisPassword
- AutoTranslationSettings.LibreTranslate.APIKey

* fixup! Add TestDesanitizeRemovesAllFakeSettings to catch future omissions

* fixup! Fix desanitize missing entries for fields added in 504fb96fdd

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
2026-05-20 11:08:12 -04:00
..
migrations Mono repo -> Master (#22553) 2023-03-22 17:22:27 -04:00
client.go Add server settings to further lock files on mobile (#30949) 2025-06-19 09:37:32 +02:00
client_test.go Report a problem (#30444) 2025-04-25 11:08:39 +02:00
common_test.go OSF: Used model.NewPointer everywhere (#27838) 2024-08-06 09:15:00 +05:30
database.go Manual cherry-pick of (37969b1) #34155 into release 10.11. (#34334) 2025-10-30 17:29:11 +02:00
database_test.go Manual cherry-pick of (37969b1) #34155 into release 10.11. (#34334) 2025-10-30 17:29:11 +02:00
diff.go [MM-63760] Only partially sanitize DB datasources for Support Packet (#30728) 2025-06-06 15:07:54 +02:00
diff_test.go [MM-63760] Only partially sanitize DB datasources for Support Packet (#30728) 2025-06-06 15:07:54 +02:00
emitter.go MM-53032: Fix module path after repo rename (#23689) 2023-06-11 10:54:35 +05:30
emitter_test.go MM-53032: Fix module path after repo rename (#23689) 2023-06-11 10:54:35 +05:30
environment.go MM-53032: Fix module path after repo rename (#23689) 2023-06-11 10:54:35 +05:30
environment_test.go Replacing interface{} with any everywhere (except generated mocks) (#29446) 2024-12-15 21:11:36 +01:00
file.go Add whitespace linter (#24855) 2023-10-11 10:13:36 +02:00
file_test.go OSF: Used model.NewPointer everywhere (#27838) 2024-08-06 09:15:00 +05:30
logconfigsrc.go Bump Go to v1.23.7 (#30455) 2025-03-17 14:22:07 +01:00
logconfigsrc_test.go MM-43077 Allow inline JSON in config.json for advanced logging config (#23324) 2023-05-15 10:37:48 -04:00
logger.go Cherry-pick MM-66789: Restrict log downloads to a root path for support packets (#35164) 2026-02-02 21:23:28 +02:00
logger_test.go Cherry-pick MM-66789: Restrict log downloads to a root path for support packets (#35164) 2026-02-02 21:23:28 +02:00
main_test.go s/Get(Master|Replica)X/Get\1/g (#29520) 2024-12-10 09:57:19 -04:00
memory.go Add whitespace linter (#24855) 2023-10-11 10:13:36 +02:00
memory_test.go Mono repo -> Master (#22553) 2023-03-22 17:22:27 -04:00
migrate.go MM-43077 Allow inline JSON in config.json for advanced logging config (#23324) 2023-05-15 10:37:48 -04:00
migrate_test.go OSF: Used model.NewPointer everywhere (#27838) 2024-08-06 09:15:00 +05:30
README.md Mono repo -> Master (#22553) 2023-03-22 17:22:27 -04:00
store.go Manual cherry-pick of (37969b1) #34155 into release 10.11. (#34334) 2025-10-30 17:29:11 +02:00
store_test.go Mono repo -> Master (#22553) 2023-03-22 17:22:27 -04:00
utils.go Fix config Sanitize fields missing from desanitize, causing FakeSetting to be persisted (#36619) (#36653) 2026-05-20 11:08:12 -04:00
utils_test.go Fix config Sanitize fields missing from desanitize, causing FakeSetting to be persisted (#36619) (#36653) 2026-05-20 11:08:12 -04:00

config.json

This is the system configuration file for your Mattermost server. Settings are specific to different editions of Mattermost. Please read the documentation before making changes: https://docs.mattermost.com/configure/configuration-settings.html/