Add server settings to further lock files on mobile (#30949)

* Add server settings to further lock files on mobile

* fix format with prettier

---------

Co-authored-by: Mattermost Build <build@mattermost.com>
Co-authored-by: Saturnino Abril <5334504+saturninoabril@users.noreply.github.com>
Этот коммит содержится в:
Elias Nahum
2025-06-19 15:37:32 +08:00
коммит произвёл GitHub
родитель b1f609e6b8
Коммит 731cc1fb5f
8 изменённых файлов: 160 добавлений и 9 удалений

Просмотреть файл

@@ -2130,6 +2130,33 @@ const AdminDefinition: AdminDefinitionType = {
label: defineMessage({id: 'admin.mobileSecurity.jailbreakTitle', defaultMessage: 'Enable Jailbreak/Root Protection:'}),
help_text: defineMessage({id: 'admin.mobileSecurity.jailbreakDescription', defaultMessage: 'Prevents access to the app on devices detected as jailbroken or rooted. If a device fails the security check, users will be denied access or prompted to switch to a compliant server.'}),
},
{
type: 'bool',
key: 'NativeAppSettings.MobileEnableSecureFilePreview',
label: defineMessage({id: 'admin.mobileSecurity.secureFilePreviewTitle', defaultMessage: 'Enable Secure File Preview Mode:'}),
help_text: defineMessage({id: 'admin.mobileSecurity.secureFilePreviewDescription', defaultMessage: 'Prevents file downloads, previews, and sharing for most file types, even if {mobileAllowDownloads} is enabled. Allows in-app previews for PDFs, videos, and images only. Files are stored temporarily in the apps cache and cannot be exported or shared.'}),
help_text_values: {
mobileAllowDownloads: (
<a href='../site_config/file_sharing_downloads'>
<b>
<FormattedMessage
id='admin.mobileSecurity.mobileAllowDownloads'
defaultMessage='Site Configuration > File Sharing and Downloads > Allow File Downloads on Mobile'
/>
</b>
</a>
),
},
isHidden: it.not(it.minLicenseTier(LicenseSkus.EnterpriseAdvanced)),
},
{
type: 'bool',
key: 'NativeAppSettings.MobileAllowPdfLinkNavigation',
label: defineMessage({id: 'admin.mobileSecurity.allowPdfLinkNavigationTitle', defaultMessage: 'Allow Link Navigation in Secure PDFs:'}),
help_text: defineMessage({id: 'admin.mobileSecurity.allowPdfLinkNavigationDescription', defaultMessage: 'Enables tapping links inside PDFs when Secure File Preview Mode is active. Links will open in the device browser or supported app. Has no effect when Secure File Preview Mode is disabled.'}),
isDisabled: it.stateIsFalse('NativeAppSettings.MobileEnableSecureFilePreview'),
isHidden: it.not(it.minLicenseTier(LicenseSkus.EnterpriseAdvanced)),
},
],
},
},

Просмотреть файл

@@ -1729,12 +1729,17 @@
"admin.mfa.bannerDesc": "<link>Multi-factor authentication</link> is available for accounts with AD/LDAP or email login. If other login methods are used, MFA should be configured with the authentication provider.",
"admin.mobile_security_feature_discovery.copy": "Enable advanced security features like biometric authentication, screen capture prevention, and jailbreak/root detection for your mobile users.",
"admin.mobile_security_feature_discovery.title": "Enhance mobile app security with Mattermost Enterprise",
"admin.mobileSecurity.allowPdfLinkNavigationDescription": "Enables tapping links inside PDFs when Secure File Preview Mode is active. Links will open in the device browser or supported app. Has no effect when Secure File Preview Mode is disabled.",
"admin.mobileSecurity.allowPdfLinkNavigationTitle": "Allow Link Navigation in Secure PDFs:",
"admin.mobileSecurity.biometricsDescription": "Enforces biometric authentication (with PIN/passcode fallback) before accessing the app. Users will be prompted based on session activity and server switching rules.",
"admin.mobileSecurity.biometricsTitle": "Enable Biometric Authentication:",
"admin.mobileSecurity.jailbreakDescription": "Prevents access to the app on devices detected as jailbroken or rooted. If a device fails the security check, users will be denied access or prompted to switch to a compliant server.",
"admin.mobileSecurity.jailbreakTitle": "Enable Jailbreak/Root Protection:",
"admin.mobileSecurity.mobileAllowDownloads": "Site Configuration > File Sharing and Downloads > Allow File Downloads on Mobile",
"admin.mobileSecurity.screenCaptureDescription": "Blocks screenshots and screen recordings when using the mobile app. Screenshots will appear blank, and screen recordings will blur (iOS) or show a black screen (Android). Also applies when switching apps.",
"admin.mobileSecurity.screenCaptureTitle": "Prevent Screen Capture:",
"admin.mobileSecurity.secureFilePreviewDescription": "Prevents file downloads, previews, and sharing for most file types, even if {mobileAllowDownloads} is enabled. Allows in-app previews for PDFs, videos, and images only. Files are stored temporarily in the apps cache and cannot be exported or shared.",
"admin.mobileSecurity.secureFilePreviewTitle": "Enable Secure File Preview Mode:",
"admin.mobileSecurity.title": "Mobile Security",
"admin.nav.administratorsGuide": "Administrator's Guide",
"admin.nav.commercialSupport": "Commercial Support",

Просмотреть файл

@@ -787,6 +787,8 @@ export type NativeAppSettings = {
MobileEnableBiometrics: boolean;
MobilePreventScreenCapture: boolean;
MobileJailbreakProtection: boolean;
MobileEnableSecureFilePreview: boolean;
MobileAllowPdfLinkNavigation: boolean;
};
export type ClusterSettings = {