Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore!: Update default E2EE settings behavior #33361

Merged
merged 4 commits into from
Oct 16, 2024
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/swift-penguins-help.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@rocket.chat/meteor': major
---

Change the E2EE settings, "Access unencrypted content in encrypted rooms" and "Encrypt files" default values, making the current behavior not allow to send unencrypted messages in end-to-end encrypted channels and enable users to send encrypted files and attachments.
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 @@ -46,5 +46,6 @@ import './v310';
import './v311';
import './v312';
import './v313';
import './v314';

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

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

addMigration({
version: 314,
name: 'Update default behavior of E2EE settings, to not allow un-encrypted messages by default and allow files encryption by default.',
async up() {
await Settings.updateOne(
{
_id: 'E2E_Allow_Unencrypted_Messages',
},
{
$set: {
value: false,
KevLehman marked this conversation as resolved.
Show resolved Hide resolved
packageValue: false,
},
},
);
await Settings.updateOne(
{
_id: 'E2E_Enable_Encrypt_Files',
},
{
$set: {
value: true,
packageValue: true,
},
},
);
},
});
Loading