From afda8b8f7414aeec9e3e4980ca0fd1b8922687b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Commaille?= <76261501+zecakeh@users.noreply.github.com> Date: Wed, 28 Feb 2024 03:26:45 +0100 Subject: [PATCH] Add local user erasure requests (#1730) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Add local user erasure requests As per MSC4025. Signed-off-by: Kévin Commaille * Add changelog Signed-off-by: Kévin Commaille * Add default value Signed-off-by: Kévin Commaille --------- Signed-off-by: Kévin Commaille --- .../client_server/newsfragments/1730.feature | 1 + data/api/client-server/registration.yaml | 20 +++++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 changelogs/client_server/newsfragments/1730.feature diff --git a/changelogs/client_server/newsfragments/1730.feature b/changelogs/client_server/newsfragments/1730.feature new file mode 100644 index 00000000..673f7515 --- /dev/null +++ b/changelogs/client_server/newsfragments/1730.feature @@ -0,0 +1 @@ +Add local erasure requests, as per [MSC4025](https://github.com/matrix-org/matrix-spec-proposals/pull/4025). diff --git a/data/api/client-server/registration.yaml b/data/api/client-server/registration.yaml index 1f823ac8..5679d02c 100644 --- a/data/api/client-server/registration.yaml +++ b/data/api/client-server/registration.yaml @@ -614,6 +614,26 @@ paths: it must return an `id_server_unbind_result` of `no-support`. example: example.org + erase: + x-addedInMatrixVersion: "1.10" + type: boolean + description: |- + Whether the user would like their content to be erased as + much as possible from the server. + + Erasure means that any users (or servers) which join the + room after the erasure request are served redacted copies of + the events sent by this account. Users which had visibility + on those events prior to the erasure are still able to see + unredacted copies. No redactions are sent and the erasure + request is not shared over federation, so other servers + might still serve unredacted copies. + + The server should additionally erase any non-event data + associated with the user, such as [account data](/client-server-api/#client-config) + and [contact 3PIDs](/client-server-api/#adding-account-administrative-contact-information). + + Defaults to `false` if not present. required: true responses: "200":