Skip to content

Commit

Permalink
chore!: e2ee settings update and removing beta wording (#33605)
Browse files Browse the repository at this point in the history
  • Loading branch information
hugocostadev authored Oct 18, 2024
1 parent 94a1119 commit 4aa731d
Show file tree
Hide file tree
Showing 38 changed files with 95 additions and 125 deletions.
6 changes: 6 additions & 0 deletions .changeset/tender-turkeys-breathe.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@rocket.chat/meteor": major
"@rocket.chat/i18n": patch
---

Updates End-to-end settings translations and removes beta wording
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ const AccountSecurityPage = (): ReactElement => {
)}
{e2eEnabled && (
<Accordion.Item
title={t('E2E Encryption')}
aria-label={t('E2E Encryption')}
title={t('End-to-end_encryption')}
aria-label={t('End-to-end_encryption')}
defaultExpanded={!twoFactorEnabled}
data-qa-type='e2e-encryption-section'
>
Expand Down
31 changes: 23 additions & 8 deletions apps/meteor/client/views/account/security/EndToEnd.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Box, Margins, PasswordInput, Field, FieldGroup, FieldLabel, FieldRow, FieldError, FieldHint, Button } from '@rocket.chat/fuselage';
import { Box, PasswordInput, Field, FieldGroup, FieldLabel, FieldRow, FieldError, FieldHint, Button, Divider } from '@rocket.chat/fuselage';
import { useUniqueId } from '@rocket.chat/fuselage-hooks';
import { useToastMessageDispatch, useMethod, useTranslation, useLogout } from '@rocket.chat/ui-contexts';
import type { ComponentProps, ReactElement } from 'react';
Expand Down Expand Up @@ -70,10 +70,19 @@ const EndToEnd = (props: ComponentProps<typeof Box>): ReactElement => {
const passwordConfirmId = useUniqueId();

return (
<Box display='flex' flexDirection='column' alignItems='flex-start' mbs={16} {...props}>
<Margins blockEnd={8}>
<Box fontScale='h4'>{t('E2E_Encryption_Password_Change')}</Box>
<Box id={e2ePasswordExplanationId} dangerouslySetInnerHTML={{ __html: t('E2E_Encryption_Password_Explanation') }} />
<Box display='flex' flexDirection='column' alignItems='flex-start' {...props}>
<Box
is='p'
fontScale='p1'
id={e2ePasswordExplanationId}
dangerouslySetInnerHTML={{ __html: t('E2E_Encryption_Password_Explanation') }}
/>

<Box mbs={36} w='full'>
<Box is='h4' fontScale='h4' mbe={12}>
{t('E2E_Encryption_Password_Change')}
</Box>

<FieldGroup w='full'>
<Field>
<FieldLabel htmlFor={passwordId}>{t('New_encryption_password')}</FieldLabel>
Expand Down Expand Up @@ -137,18 +146,24 @@ const EndToEnd = (props: ComponentProps<typeof Box>): ReactElement => {
primary
disabled={!(keysExist && isValid)}
onClick={handleSubmit(saveNewPassword)}
mbs={12}
data-qa-type='e2e-encryption-save-password-button'
>
{t('Save_changes')}
</Button>
<Box fontScale='h4' mbs={16}>
</Box>

<Divider mb={36} width='full' />

<Box>
<Box is='h4' fontScale='h4' mbe={12}>
{t('Reset_E2E_Key')}
</Box>
<Box dangerouslySetInnerHTML={{ __html: t('E2E_Reset_Key_Explanation') }} />
<Box is='p' fontScale='p1' mbe={12} dangerouslySetInnerHTML={{ __html: t('E2E_Reset_Key_Explanation') }} />
<Button onClick={handleResetE2eKey} data-qa-type='e2e-encryption-reset-key-button'>
{t('Reset_E2E_Key')}
</Button>
</Margins>
</Box>
</Box>
);
};
Expand Down
14 changes: 6 additions & 8 deletions apps/meteor/server/settings/e2e.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import { settingsRegistry } from '../../app/settings/server';

export const createE2ESettings = () =>
settingsRegistry.addGroup('E2E Encryption', async function () {
settingsRegistry.addGroup('End-to-end_encryption', async function () {
await this.add('E2E_Enable', false, {
type: 'boolean',
i18nLabel: 'Enabled',
i18nLabel: 'End-to-end_encryption',
i18nDescription: 'E2E_Enable_description',
public: true,
alert: 'E2E_Enable_alert',
alert: 'E2EE_alert',
});

await this.add('E2E_Allow_Unencrypted_Messages', false, {
Expand All @@ -16,21 +16,19 @@ export const createE2ESettings = () =>
enableQuery: { _id: 'E2E_Enable', value: true },
});

await this.add('E2E_Enable_Encrypt_Files', true, {
await this.add('E2E_Enabled_Default_DirectRooms', false, {
type: 'boolean',
i18nLabel: 'E2E_Enable_Encrypt_Files',
i18nDescription: 'E2E_Enable_Encrypt_Files_Description',
public: true,
enableQuery: { _id: 'E2E_Enable', value: true },
});

await this.add('E2E_Enabled_Default_DirectRooms', false, {
await this.add('E2E_Enabled_Default_PrivateRooms', false, {
type: 'boolean',
public: true,
enableQuery: { _id: 'E2E_Enable', value: true },
});

await this.add('E2E_Enabled_Default_PrivateRooms', false, {
await this.add('E2E_Enable_Encrypt_Files', true, {
type: 'boolean',
public: true,
enableQuery: { _id: 'E2E_Enable', value: true },
Expand Down
1 change: 1 addition & 0 deletions apps/meteor/server/startup/migrations/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,6 @@ import './v314';
import './v315';
import './v316';
import './v317';
import './v318';

export * from './xrun';
11 changes: 11 additions & 0 deletions apps/meteor/server/startup/migrations/v318.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { Settings } from '@rocket.chat/models';

import { addMigration } from '../../lib/migrations';

addMigration({
version: 318,
name: 'Remove "E2E Encryption" setting group',
async up() {
await Settings.deleteOne({ _id: 'E2E Encryption', type: 'group' });
},
});
4 changes: 2 additions & 2 deletions apps/meteor/tests/e2e/page-objects/account-profile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,11 @@ export class AccountProfile {
}

get securityE2EEncryptionSection(): Locator {
return this.page.locator('[role="button"]:has-text("E2E Encryption")');
return this.page.locator('[role="button"]:has-text("End-to-end encryption")');
}

get securityE2EEncryptionResetKeyButton(): Locator {
return this.page.locator("role=button[name='Reset E2E Key']");
return this.page.locator("role=button[name='Reset E2EE key']");
}

get securityE2EEncryptionPassword(): Locator {
Expand Down
2 changes: 0 additions & 2 deletions packages/i18n/src/locales/ar.i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -1482,13 +1482,11 @@
"Duplicated_Email_address_will_be_ignored": "سيتم تجاهل عنوان البريد الإلكتروني المكرر.",
"Markdown_Marked_Tables": "تمكين الجداول المحددة",
"duplicated-account": "حساب مكرر",
"E2E Encryption": "التشفير بين الطرفيات",
"Markdown_Parser": "محلل Markdown",
"Markdown_SupportSchemesForLink": "مخططات دعم Markdown للرابط",
"Markdown_SupportSchemesForLink_Description": "قائمة المخططات المسموح بها مفصولة بفواصل",
"E2E_enable": "تمكين التشفير بين الطرفيات",
"E2E_disable": "تعطيل التشفير بين الطرفيات",
"E2E_Enable_alert": "تبقى هذه الميزة حاليًا في مرحلة تجريبية! يُرجى الإبلاغ عن الأخطاء إلى github.com/RocketChat/Rocket.Chat/issues وكن على دراية بما يأتي: <br/>- لن يتم العثور على الرسائل المشفرة للغرف المشفرة من خلال عمليات البحث.<br/>- قد لا تدعم تطبيقات الهاتف المحمول الرسائل المشفرة (يتم تنفيذها).<br/>- قد لا تتمكن الروبوتات من رؤية الرسائل المشفرة حتى تقوم بتنفيذ الدعم لها.<br/>- لن يتم تشفير عمليات الرفع في هذا الإصدار.",
"E2E_Enable_description": "يمكنك تمكين الخيار لإنشاء مجموعات مشفرة وتكون قادرًا على تغيير المجموعات والرسائل المباشرة ليتم تشفيرها",
"E2E_Enabled": "تم تمكين التشفير بين الطرفيات",
"E2E_Enabled_Default_DirectRooms": "تمكين التشفير لـ Room المباشرة بصورة افتراضية",
Expand Down
4 changes: 1 addition & 3 deletions packages/i18n/src/locales/ca.i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -1466,13 +1466,11 @@
"Duplicated_Email_address_will_be_ignored": "S'ignorarà l'adreça electrònica duplicada.",
"Markdown_Marked_Tables": "Activa les Taules Marcades",
"duplicated-account": "Compte duplicat",
"E2E Encryption": "Xifrat E2E",
"Markdown_Parser": "Parsejador Markdown",
"Markdown_SupportSchemesForLink": "Esquemes de suport de Markdown per a enllaç",
"Markdown_SupportSchemesForLink_Description": "Llista dels scheme:// permesos separats per comes",
"E2E_enable": "Habilitar E2E",
"E2E_disable": "Deshabilitat E2E",
"E2E_Enable_alert": "Aquesta funció està actualment en versió beta. Informeu d’errors a github.com/RocketChat/Rocket.Chat/issues i tingueu en compte: <br/>- Les operacions de cerca no trobaran els missatges xifrats de les sales xifrades.<br/>- És possible que les aplicacions mòbils no admetin els missatges encriptats. (ho estan implementant).<br/>- És possible que els robots no puguin veure els missatges xifrats fins que no implementin el suport.<br/>- Les càrregues no es xifraran en aquesta versió.",
"E2E_Enable_description": "Habiliteu l'opció per crear grups encriptats i poder canviar grups i missatges directes per ser encriptats",
"E2E_Enabled": "E2E activat",
"E2E_Enabled_Default_DirectRooms": "Habilitar l'encriptació per a les Rooms directes per defecte",
Expand Down Expand Up @@ -3467,7 +3465,7 @@
"Resend_verification_email": "Reenviar el correu-e de verificació",
"Reset": "Reinicialitza (reset)",
"Reset_Connection": "Restablir la connexió",
"Reset_E2E_Key": "Restableix la clau E2E",
"Reset_E2E_Key": "Restableix la clau E2EE",
"Reset_password": "Reinicialitza la contrasenya",
"Reset_section_settings": "Reinicialitza els ajustos de la secció",
"Reset_TOTP": "Restableix TOTP",
Expand Down
6 changes: 2 additions & 4 deletions packages/i18n/src/locales/cs.i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -1260,11 +1260,9 @@
"Duplicated_Email_address_will_be_ignored": "Duplicitní e-mailová adresa bude ignorována.",
"Markdown_Marked_Tables": "Povolit značky tabulek",
"duplicated-account": "Duplicitní účet",
"E2E Encryption": "Šifrování E2E",
"Markdown_Parser": "Parser markdownu",
"Markdown_SupportSchemesForLink": "Schémata používaná pro automatické odkazy markdown",
"Markdown_SupportSchemesForLink_Description": "Čárkami oddělený seznam povolených schémat",
"E2E_Enable_alert": "Tato funkce je aktuálně ve verzi beta! Nahlaste chyby na github.com/RocketChat/Rocket.Chat/issues a mějte na paměti: <br/>- Šifrované zprávy šifrovaných místností nebudou nalezeny vyhledávacími operacemi. <br/>- Mobilní aplikace nemusí podporovat šifrované zprávy (teprve se implementují). <br/>- Boti nemusí vidět šifrované zprávy, dokud pro ně neimplementují podporu. <br/>- Nahráváné soubory nebudou v této verzi šifrovány.",
"E2E_Enable_description": "Povolit možnost vytváření šifrovaných skupin a možnost měnit skupiny a přímé zprávy, které mají být šifrovány",
"E2E_Enabled": "E2E povoleno",
"E2E_Enabled_Default_DirectRooms": "Přímé konverzace ve výchozím stavu šifrovat",
Expand Down Expand Up @@ -2958,7 +2956,7 @@
"Resend_verification_email": "Opětovné zaslání ověřovacího e-mailu",
"Reset": "Obnovit",
"Reset_Connection": "Resetovat připojení",
"Reset_E2E_Key": "Resetování klíče E2E",
"Reset_E2E_Key": "Resetování klíče E2EE",
"Reset_password": "Obnovit heslo",
"Reset_section_settings": "Obnovit výchozí nastavení sekce",
"reset-other-user-e2e-key": "Resetování klíče E2E jiného uživatele",
Expand Down Expand Up @@ -3970,4 +3968,4 @@
"Enterprise": "Korporace",
"UpgradeToGetMore_engagement-dashboard_Title": "Analytika",
"UpgradeToGetMore_auditing_Title": "Audit zpráv"
}
}
6 changes: 2 additions & 4 deletions packages/i18n/src/locales/da.i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -1342,11 +1342,9 @@
"Duplicated_Email_address_will_be_ignored": "Duplikeret e-mail-adresse ignoreres.",
"Markdown_Marked_Tables": "Aktivér markerede tabeller",
"duplicated-account": "Konto-duplet",
"E2E Encryption": "E2E-kryptering",
"Markdown_Parser": "Markdown Parser",
"Markdown_SupportSchemesForLink": "Markdown Support Schemes for Link",
"Markdown_SupportSchemesForLink_Description": "Kommasepareret liste over tilladte ordninger",
"E2E_Enable_alert": "Denne funktion er i øjeblikket i beta! Rapportér fejl til github.com/RocketChat/Rocket.Chat/issues og vær opmærksom på: <br/> - Krypterede meddelelser om krypterede rum vil ikke blive fundet ikke ved søgning.<br/>- Mobilapps understøtter muligvis ikke de krypterede meddelelser (de er ved at implementere det). <br/> - Bots er muligvis ikke i stand til at se krypterede meddelelser før de implementerer support for det. <br/> - Uploads vil ikke blive krypteret i denne version.",
"E2E_Enable_description": "Aktivér mulighed for at oprette krypterede grupper og at være i stand til at ændre grupper og direkte beskeder med kryptering",
"E2E_Enabled": "E2E aktiveret",
"E2E_Enabled_Default_DirectRooms": "Aktivér kryptering for direkte rum som standard",
Expand Down Expand Up @@ -3054,7 +3052,7 @@
"Resend_verification_email": "Gensend bekræftelses mail",
"Reset": "Nulstil",
"Reset_Connection": "Nulstil forbindelse",
"Reset_E2E_Key": "Nulstil E2E-nøgle",
"Reset_E2E_Key": "Nulstil E2EE-nøgle",
"Reset_password": "Nulstille kodeord",
"Reset_section_settings": "Nulstil sektionsindstillinger",
"reset-other-user-e2e-key": "Nulstil den anden brugers E2E-nøgle",
Expand Down Expand Up @@ -4083,4 +4081,4 @@
"Enterprise": "Firma",
"UpgradeToGetMore_engagement-dashboard_Title": "Analyse",
"UpgradeToGetMore_auditing_Title": "Meddelelsesovervågning"
}
}
6 changes: 2 additions & 4 deletions packages/i18n/src/locales/de-IN.i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -1042,11 +1042,9 @@
"Duplicated_Email_address_will_be_ignored": "Doppelte E-Mail_Adressen werden ignoriert.",
"Markdown_Marked_Tables": "Formatierte Tabellen",
"duplicated-account": "Doppeltes Konto",
"E2E Encryption": "Ende-zu-Ende-Verschlüsselung",
"Markdown_Parser": "Markdown Parser",
"Markdown_SupportSchemesForLink": "Unterstützte Markdown- Schemata für Links",
"Markdown_SupportSchemesForLink_Description": "Kommata getrennte Liste von erlaubten Schemata",
"E2E_Enable_alert": "Dieses Feature ist derzeit im Beta-Test. Bitte melde Fehler unter github.com/RocketChat/Rocket.Chat/issues und beachte folgende Auswirkungen:<br/>- Verschlüsselte Nachrichten werden durch die Suche nicht gefunden werden.<br/>- Die mobilen Apps unterstützen derzeit noch keine verschlüsselten Nachrichten.<br/>- Bots werden wahrscheinlich keine verschlüsselten Nachrichten verarbeiten können.<br/>- Uploads werden in dieser Version nicht verschlüsselt werden.",
"E2E_Enable_description": "Aktiviere diese Option, um Direktnachrichten und private Gruppen verschlüsseln zu können.",
"E2E_Enabled": "E2E aktiviert",
"E2E_Encryption_Password_Explanation": "Du kannst jetzt verschlüsselte private Gruppen und Direktnachrichten erstellen. Du kannst auch vorhandene private Gruppen oder Direktnachrichten verschlüsseln.<br/><br/> Bitte bewahre Dein Passwort an einem sicheren Ort auf - Du musst ihn auf anderen Geräten eingeben, auf denen Du die Ende-zu-Ende-Verschlüsselung verwenden möchtest.",
Expand Down Expand Up @@ -2659,7 +2657,7 @@
"Thank_you_for_your_feedback": "Vielen Dank für Deine Rückmeldung",
"The_application_name_is_required": "Es muss ein Name für diese Anwendung angegeben werden",
"The_channel_name_is_required": "Ein Name für den Kanal muss angegeben werden",
"The_emails_are_being_sent": "E-Mails werden gesendet",
"The_emails_are_being_sent": "E-Mails werden gesendet",
"The_image_resize_will_not_work_because_we_can_not_detect_ImageMagick_or_GraphicsMagick_installed_in_your_server": "Die automatische Skalierung der Bilder funktioniert nicht, da ImageMagick oder GraphicsMagick nicht auf dem Server installiert sind.",
"The_message_is_a_discussion_you_will_not_be_able_to_recover": "Diese Nachricht ist eine Diskussion. Wenn Du diese löschst, wirst Du die Nachrichten der Diskussion nicht mehr auffinden können.",
"The_peer__peer__does_not_exist": "Der Peer <em>{{peer}}</ em> ist nicht vorhanden.",
Expand Down Expand Up @@ -3080,4 +3078,4 @@
"Your_question": "Deine Frage",
"Your_server_link": "Dein Server-Link",
"Your_workspace_is_ready": "Dein Arbeitsbereich ist einsatzbereit 🎉"
}
}
3 changes: 0 additions & 3 deletions packages/i18n/src/locales/de.i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -1653,14 +1653,11 @@
"Duplicated_Email_address_will_be_ignored": "Doppelte E-Mail-Adressen werden ignoriert.",
"Markdown_Marked_Tables": "Markierte Tabellen aktivieren",
"duplicated-account": "Doppeltes Konto",
"E2E Encryption": "Ende-zu-Ende-Verschlüsselung",
"Markdown_Parser": "Markdown-Parser",
"Markdown_SupportSchemesForLink": "Unterstützte Markdown- Schemata für Links",
"E2E Encryption_Description": "Halten Sie Unterhaltungen privat und stellen Sie sicher, dass nur der Absender und die beabsichtigten Empfänger sie lesen können.",
"Markdown_SupportSchemesForLink_Description": "Kommagetrennte Liste von erlaubten Schemata",
"E2E_enable": "E2E aktivieren",
"E2E_disable": "E2E deaktivieren",
"E2E_Enable_alert": "Dieses Feature ist derzeit im Beta-Test. Bitte melden Sie Fehler unter github.com/RocketChat/Rocket.Chat/issues und beachten Sie folgende Auswirkungen:<br/>- Verschlüsselte Nachrichten werden durch die Suche nicht gefunden werden.<br/>- Die mobilen Apps unterstützen derzeit noch keine verschlüsselten Nachrichten.<br/>- Bots werden wahrscheinlich derzeit keine verschlüsselten Nachrichten verarbeiten können.<br/>- Uploads werden in dieser Version nicht verschlüsselt werden.",
"E2E_Enable_description": "Aktivieren Sie diese Option, um Direktnachrichten und private Gruppen verschlüsseln zu können.",
"E2E_Enabled": "E2E aktiviert",
"E2E_Enabled_Default_DirectRooms": "Verschlüsselung für Direktnachrichten standardmäßig einschalten",
Expand Down
Loading

0 comments on commit 4aa731d

Please sign in to comment.