element-hq / element-web

A glossy Matrix collaboration client for the web.
https://element.io
Apache License 2.0
10.87k stars 1.92k forks source link

"default" and "secure_backup_setup_methods" ignored in .well-known/matrix/client #27505

Open on1arf opened 1 month ago

on1arf commented 1 month ago

Steps to reproduce

I am not 100 % sure if this is a bug. I have asked this question both in the "synapse-admin" and "element-web" rooms on matrix, but did not receive any answer to this.

I want to implement some of the e2ee options as described here: https://github.com/element-hq/element-web/blob/develop/docs/e2ee.md

On my server, I have a .well-known/matrix/client file that looks like this: { "m.homeserver": { "base_url": "https://c1.uba.be" }, "io.element.e2ee": { "secure_backup_required": true, "default": false, "secure_backup_setup_methods": [ "passphrase" ] } }

Outcome

What did you expect?

When I connect with the element-web client (latest version from docker hub) with a new user, I would have expected two things

What happened instead?

It looks like both options ehere ignored.

Operating system

server: debian (docker-based), Client: ubuntu (firefox)

Application version

vectorim/element-web v1.11.66

How did you install the app?

docker

Homeserver

https://c1.uba.be/

Will you send logs?

Yes

on1arf commented 1 month ago

One looking at the log-files I extracted, the strange thing is that I do not see any reference to .well-known/matrix/client in the complete log-file. Is the client not supposed to read that file? and should that not be in the log-file ?

bartvdbraak commented 1 month ago

I'm having the same issue.

https://matrix.example.org/.well-known/matrix/client looks as follows:

{
    "im.vector.riot.e2ee": {
        "default": false
    },
    "io.element.e2ee": {
        "default": false,
        "force_disable": false,
        "secure_backup_required": false,
        "secure_backup_setup_methods": []
    },
    "m.homeserver": {
        "base_url": "https://matrix.example.org"
    },
    "org.matrix.msc3575.proxy": {
        "url": "https://matrix.example.org/sliding-sync"
    }
}

However, in Element (web or otherwise), the option is always enabled by default: image