mirror of
https://github.com/mattermost/mattermost.git
synced 2026-08-30 17:06:34 +08:00
4f8b9d8195
* 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>