Files
mattermost/api/v4/source
Felipe Martin c45a675553 MM-68976 Preserve PluginSettings.SignaturePublicKeyFiles on config patch endpoint (#36868)
* MM-68976 Preserve PluginSettings.SignaturePublicKeyFiles on config patch endpoint

The full PUT /api/v4/config endpoint silently preserves
PluginSettings.SignaturePublicKeyFiles (added in #13682), but the sparse
PUT /api/v4/config/patch endpoint had no equivalent guard, so a session
with sysconsole_write_plugins could modify the field through it.

Mirror the full update endpoint's behavior by silently preserving the
existing value in patchConfig, and add a regression test equivalent to
the one in TestUpdateConfig.

* MM-68976 Document SignaturePublicKeyFiles as non-modifiable in config API spec

Both the update and patch config endpoints preserve
PluginSettings.SignaturePublicKeyFiles; note this in the OpenAPI
descriptions alongside the existing PluginSettings.EnableUploads note.
2026-06-15 15:09:05 +02:00
..
2026-01-26 17:05:34 -05:00
2026-05-11 12:29:25 +02:00
2023-08-03 12:45:10 -03:00
2026-05-11 12:29:25 +02:00
2026-05-11 12:29:25 +02:00
2023-06-27 11:10:13 -03:00
2023-06-27 11:10:13 -03:00
2026-05-11 12:29:25 +02:00
2026-05-11 12:29:25 +02:00
2026-05-11 12:29:25 +02:00
2026-05-11 12:29:25 +02:00
2024-04-18 11:50:30 +05:30
2026-05-11 12:29:25 +02:00
2026-05-11 12:29:25 +02:00
2023-06-27 11:10:13 -03:00
2026-05-11 12:29:25 +02:00
2023-06-27 11:10:13 -03:00
2024-12-12 12:19:09 +01:00
2023-06-27 11:10:13 -03:00
2026-05-11 12:29:25 +02:00
2023-06-27 11:10:13 -03:00
2026-05-11 12:29:25 +02:00
2026-05-11 12:29:25 +02:00