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

Disable encryption via /.well-known/matrix/client #28397

Closed
frenn opened this issue Nov 6, 2024 · 7 comments
Closed

Disable encryption via /.well-known/matrix/client #28397

frenn opened this issue Nov 6, 2024 · 7 comments
Labels
A-E2EE O-Uncommon Most users are unlikely to come across this or unexpected workflow S-Minor Impairs non-critical functionality or suitable workarounds exist T-Defect X-Needs-Info This issue is blocked awaiting information from the reporter

Comments

@frenn
Copy link

frenn commented Nov 6, 2024

Steps to reproduce

Good afternoon.

  1. Launched the synapse server from the Docker-image matrixdotorg/synapse:latest on the domain matrix.example.com.
  2. Launched element-web from the Docker-image vector/element-web on the domain element.example.com.
  3. Everything is fine. The messaging is ok. The calls are working.

Encryption must be disabled. My teammates will lose the keys in a week. :D

  1. Read this:
    https://github.com/element-hq/element-web/blob/develop/docs/e2ee.md#disabling-encryption
  2. Set it up in nginx on the domain matrix.example.com :
location /.well-known/matrix/client {
  return 200 '{"io.element.e2ee": {"force_disable": "true"}}';
  add_header Content-Type application/json;
  add_header "Access-Control-Allow-Origin" *;
}
  1. Checking the setting:
    curl -s https://matrix.example.com/.well-known/matrix/client | jq

I get:

{
    "io.element.e2ee": {
        "force_disable": true
    }
}

Outcome

When creating private chats, encryption is still enabled by default. You can't turn it off.

What did I do wrong?

Operating system

No response

Browser information

No response

URL for webapp

No response

Application version

No response

Homeserver

No response

Will you send logs?

No

@frenn frenn added the T-Defect label Nov 6, 2024
@t3chguy
Copy link
Member

t3chguy commented Nov 6, 2024

Are your usernames @foo:matrix.example.com or @foo:example.com?

@t3chguy t3chguy added the X-Needs-Info This issue is blocked awaiting information from the reporter label Nov 6, 2024
@dosubot dosubot bot added A-E2EE O-Uncommon Most users are unlikely to come across this or unexpected workflow S-Minor Impairs non-critical functionality or suitable workarounds exist labels Nov 6, 2024
@frenn
Copy link
Author

frenn commented Nov 6, 2024

Are your usernames @foo:matrix.example.com or @foo:example.com?

@foo:matrix.example.com

@t3chguy
Copy link
Member

t3chguy commented Nov 6, 2024

Logs would be required to dig into this further

@t3chguy
Copy link
Member

t3chguy commented Nov 6, 2024

image

There's a bit of a disconnect here, are you returning true or "true"?

@frenn
Copy link
Author

frenn commented Nov 6, 2024

There's a bit of a disconnect here, are you returning true or "true"?

Sorry, "true".

@t3chguy
Copy link
Member

t3chguy commented Nov 6, 2024

Sorry, "true".

That is incorrect then, look at the docs again: https://github.com/element-hq/element-web/blob/develop/docs/e2ee.md#disabling-encryption
boolean != string

element.log

This log is not helpful, Element runs entirely in the browser, the nginx log doesn't show anything from the app. See the issue template on how to submit logs:

image

@frenn
Copy link
Author

frenn commented Nov 6, 2024

@t3chguy

boolean != string

It's working. Thank you very much. The moment with nginx configuration must be specified in this instruction - https://github.com/element-hq/element-web/blob/develop/docs/e2ee.md#disabling-encryption. I think.

Thanks again.

@frenn frenn closed this as completed Nov 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-E2EE O-Uncommon Most users are unlikely to come across this or unexpected workflow S-Minor Impairs non-critical functionality or suitable workarounds exist T-Defect X-Needs-Info This issue is blocked awaiting information from the reporter
Projects
None yet
Development

No branches or pull requests

2 participants