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

Add HS admin-configured option to require secure backup #14954

Closed
jryans opened this issue Aug 13, 2020 · 5 comments · Fixed by matrix-org/matrix-react-sdk#5130
Closed

Add HS admin-configured option to require secure backup #14954

jryans opened this issue Aug 13, 2020 · 5 comments · Fixed by matrix-org/matrix-react-sdk#5130

Comments

@jryans
Copy link
Collaborator

jryans commented Aug 13, 2020

Some HS admins may want to require all users to set up secure backup (message key backup) before proceeding to use the app, as a way of reducing support burdens.

To enable this, Element will check for the following in /.well-known/matrix/client:

  "io.element.e2ee": {
    "secure_backup_required": true, 
  }

If this is set, then:

  • flows to setup secure backup at registration become mandatory and cannot be skipped
  • buttons in Settings to remove backups are hidden

Additionally as part of this work, the previous similar config key im.vector.riot.e2ee used for disabling encryption is deprecated. Element Web will check both io.element.e2ee and im.vector.riot.e2ee blocks, preferring io.element.e2ee if both exist.

@jryans jryans self-assigned this Aug 13, 2020
@jryans jryans added this to In Progress in Web App Team via automation Aug 13, 2020
@notramo

This comment has been minimized.

@TR-SLimey

This comment has been minimized.

jryans added a commit to matrix-org/matrix-react-sdk that referenced this issue Aug 19, 2020
This adds an extra check for `.well-known` E2EE settings under the key
`im.vector.e2ee`. The older key `im.vector.riot.e2ee` is kept for historical
compatibility.

Part of element-hq/element-web#14954
jryans added a commit to matrix-org/matrix-react-sdk that referenced this issue Aug 19, 2020
This removes all button to escape the Secure Backup setup flow when the matching
`.well-known` setting is set by homeserver.

Part of element-hq/element-web#14954
jryans added a commit to matrix-org/matrix-react-sdk that referenced this issue Aug 19, 2020
If Secure Backup is required by the HS admin, then this hides the Delete Backup
button in Settings to ensure everyone keeps their backup per policy.

Part of element-hq/element-web#14954
jryans added a commit to matrix-org/matrix-react-sdk that referenced this issue Aug 19, 2020
If the Secure Backup required mode is set the client `.well-known` file, then
this will ensure that everyone already inside the app is required to complete
setup matching that policy.

Fixes element-hq/element-web#14954
jryans added a commit that referenced this issue Aug 19, 2020
This updates documentation about the new key in `.well-known` that we'll check
for E2EE settings: `im.vector.e2ee`.

Part of #14954
jryans added a commit that referenced this issue Aug 19, 2020
This adds notes on configuring the new `.well-known` setting to require Element
users to set up secure backup before continuing into the app.

Part of #14954
jryans added a commit to matrix-org/matrix-react-sdk that referenced this issue Aug 19, 2020
This removes all buttons to escape the Secure Backup setup flow when the
matching `.well-known` setting is set by homeserver.

Part of element-hq/element-web#14954
jryans added a commit to matrix-org/matrix-react-sdk that referenced this issue Aug 19, 2020
If Secure Backup is required by the HS admin, then this hides the Delete Backup
button in Settings to ensure everyone keeps their backup per policy.

Part of element-hq/element-web#14954
jryans added a commit to matrix-org/matrix-react-sdk that referenced this issue Aug 19, 2020
If the Secure Backup required mode is set the client `.well-known` file, then
this will ensure that everyone already inside the app is required to complete
setup matching that policy.

Fixes element-hq/element-web#14954
jryans added a commit to matrix-org/matrix-react-sdk that referenced this issue Aug 19, 2020
This adds an extra check for `.well-known` E2EE settings under the key
`im.vector.e2ee`. The older key `im.vector.riot.e2ee` is kept for historical
compatibility.

Part of element-hq/element-web#14954
jryans added a commit to matrix-org/matrix-react-sdk that referenced this issue Aug 19, 2020
This removes all buttons to escape the Secure Backup setup flow when the
matching `.well-known` setting is set by homeserver.

Part of element-hq/element-web#14954
jryans added a commit to matrix-org/matrix-react-sdk that referenced this issue Aug 19, 2020
If Secure Backup is required by the HS admin, then this hides the Delete Backup
button in Settings to ensure everyone keeps their backup per policy.

Part of element-hq/element-web#14954
jryans added a commit to matrix-org/matrix-react-sdk that referenced this issue Aug 19, 2020
If the Secure Backup required mode is set the client `.well-known` file, then
this will ensure that everyone already inside the app is required to complete
setup matching that policy.

Fixes element-hq/element-web#14954
jryans added a commit that referenced this issue Aug 19, 2020
This updates documentation about the new key in `.well-known` that we'll check
for E2EE settings: `im.vector.e2ee`.

Part of #14954
jryans added a commit that referenced this issue Aug 19, 2020
This adds notes on configuring the new `.well-known` setting to require Element
users to set up secure backup before continuing into the app.

Part of #14954
@jryans jryans moved this from In Progress to In Review in Web App Team Aug 19, 2020
@notramo

This comment has been minimized.

@jryans

This comment has been minimized.

Web App Team automation moved this from In Review to In Test Aug 24, 2020
@chagai95
Copy link
Contributor

@jryans this causes the whole well known to not be parsed in iOS because it expects the default parameter, could you please update this for now until this issue is fixed?

        "io.element.e2ee": {
                "default": true,
                "secure_backup_required": true
        }

It should be worked on via this internal ticket, but if it does not get done you should probably open a public ticket...

https://gitlab.matrix.org/ps/aarenet/issue-tracker/-/issues/347

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants