Skip to content

Add config param to disable e2e for signalling#438

Merged
dbkr merged 3 commits intomainfrom
dbkr/e2e_config_param
Jul 5, 2022
Merged

Add config param to disable e2e for signalling#438
dbkr merged 3 commits intomainfrom
dbkr/e2e_config_param

Conversation

@dbkr
Copy link
Member

@dbkr dbkr commented Jul 4, 2022

Deliberately not making it an option on the room since then we'd have to worry about server doing downgrade attacks.

Requires matrix-org/matrix-js-sdk#2492

@dbkr dbkr requested a review from a team as a code owner July 4, 2022 19:13
Copy link
Contributor

@SimonBrandner SimonBrandner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Co-authored-by: Šimon Brandner <simon.bra.ag@gmail.com>
// them.
const params = new URLSearchParams(window.location.search);
// disable e2e only if enableE2e=false is given
const enableE2e = params.get("enableE2e") !== "false";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What happens if someone tries to join an encrypted call without encryption?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There aren't really 'encrypted calls' as such: clients with this flag set to false will still decrypt any encrypted signalling they receive, so (I think) it should all still work. However, this is very deliberately hidden in an undocumented URL param, so anyone playing with it gets to keep both pieces if it breaks. :)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, I see

@dbkr dbkr merged commit 984b027 into main Jul 5, 2022
@dbkr dbkr deleted the dbkr/e2e_config_param branch December 21, 2022 11:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants