Files
mattermost/docs
Jesse Hallam 4f8b9d8195 [MM-69641] Promote EnableExportDirectDownload to a Cloud-only configuration setting (#37477)
* promote EnableExportDirectDownload to a Cloud-only configuration setting

Replace the FeatureFlags.EnableExportDirectDownload feature flag with a
FileSettings.EnableCloudExportDirectDownload configuration setting, gated
to Mattermost Cloud environments.

The /exportlink slash command and the export generate-presigned-url API
now require FileSettings.EnableCloudExportDirectDownload to be enabled and
a Cloud license. Operators previously enabling the feature via
MM_FEATUREFLAGS_ENABLEEXPORTDIRECTDOWNLOAD should transition to
MM_FILESETTINGS_ENABLECLOUDEXPORTDIRECTDOWNLOAD.

* add tests for Cloud-only export direct download gating

Cover the new EnableCloudExportDirectDownload + Cloud-license gate on
GeneratePresignURLForExport (app) and the generate-presigned-url API
(api4).

* add EnableCloudExportDirectDownload to FileSettings type

* gate export direct download on Cloud alone, without a configuration setting

* Use a bounded HTTP client in export presigned-URL tests

http.Get has no total timeout; if MinIO accepts the connection but
stalls, these tests can hang until the suite timeout.

Co-authored-by: mattermost-code <matty-code@mattermost.com>

---------

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: mattermost-code <matty-code@mattermost.com>
2026-08-14 11:32:19 +00:00
..