Data protection

- Reading time: 23 minutes -

Foreword

Data protection is often used as an argument to justify closed matrix instances and to avoid having to have an external interface (= interoperability). From an e-mail at state level:

…, which is expressly not desired by us for data protection reasons.

Why interoperability (not a matrix federation is meant here) is not possible for data protection reasons is not yet clear. Apparently, it is the so-called “open replication” with other matrix instances that is meant and the problem. A common definition of terms should therefore be emphasized in discussions and questions!

Data protection as an argument for [closed matrix instances](#definition of term) does not include interoperability as it is possible via an interface to the XMPP chat standard, as other technical processes are involved here and must be taken into account. With regard to interoperability, data protection must be checked separately - and of course complied with!

The following is an attempt at a system-related consideration in order to work out the differences and problems specifically in relation to matrix federation (synchronization). A case-related consideration is also not quick and easy to accomplish, as it requires going into detail down to the data fields.

Content:

Responsibilities

Due to the shared responsibilities of the (data protection) supervisory authorities, the supervision of the use of telecommunications services and other services is generally not the responsibility of the Federal Commissioner for Data Protection and Freedom of Information (BfDI), but of the federal states.

Functionality

The Matrix specification specifies that conversations are realized as “rooms” that are replicated on all servers of the participants involved. Matrix is often (wrongly!) compared to e-mail, because Matrix is more like “chat per git”, i.e. messaging based on distributed databases. Matrix was not developed with a focus on data protection, which is probably also the reason for the many closed Matrix instances.

Matrix also does not advertise that users retain full control over their communication - instead, Matrix offers the following:

Matrix defines a set of open APIs for decentralized communication, suitable for securely publishing, storing, and subscribing to data across a global open federation of servers without a single point of control.

Source: First set of the Matrix specification (external)

No statements from the BfDI or state data protection officers are yet available on this fundamental fact (no control point) - these are always limited to individual, specific cases.

The basic concept of Matrix therefore means replicating chat rooms (including 1:1 chats) on all servers involved in the respective chat. This is precisely what is problematic in terms of data protection, even with open/public federation (see below for details).

Notes:

  • There are currently no German General Terms and Conditions (AGB) or German data protection conditions for the largest Matrix instance (“Matrix.org”) that enable open federation.

  • A further point relevant to data protection is the use of the “identity server”: the recommendation to enter the telephone number when creating Matrix chat accounts means that the telephone numbers are then stored in a central directory.

However, these two points are not discussed in more detail below.

Definition of terms

Since Matrix does not differentiate between “federation” and “global open federation”, a case description or more precise definition of the term is very important before the actual question of permissible use under data protection law is asked and also helps with queries and information from data protection officers:

Matrix server
A single server; corresponds to a “matrix instance” if there is only one server. Your own matrix server is called a “home server”.

Matrix instance
One or more matrix servers that are operated within an organization/company and “federate” with each other. They have a common address.

Federation
In general: Cooperation / synchronization between matrix servers. Global federation means worldwide federation between all enabled matrix servers. More Details see below.

Closed federation
Cooperation / synchronization between matrix servers that do not allow communication to/from other (third) matrix instances. In other words, an island operation in which several servers are used internally.
Examples: German Armed Forces, TI Messenger

open federation
Collaboration of / synchronization also between other/foreign matrix instances. There is no restriction to specific matrix servers. However, no matrix instances can be contacted by these that federate in a closed manner! Examples: There are countless matrix instances offered by associations, companies or private individuals.

Types of conversation

All of the following cases are implemented in Matrix as a “room” with different access authorizations:

Case 1: Conversations between two people (“1:1”)

Case 2: Groups
Groups are chat rooms for at least two people. Groups can be created/used not only on one matrix instance, but also (depending on the federation type) by participants on different servers.

Case 3: Public chat rooms
… without a limit of servers and without a limit of participants. These correspond to a public place where anyone can listen and, if necessary, contribute. These are only possible on/from/with Matrix instances that are “openly federated”.

Matrix federation

Federation of matrix servers is a special type of federation and not to be equated or confused with interoperability. Interoperability in itself is possible, as with telephone or e-mail, by adhering to defined interfaces.

More exciting than interoperability (in terms of data protection) with Matrix is the question of system-related “cross-provider synchronization” (= Matrix federation), which is a complex issue and can also take place at different levels:

  • Only between the own servers (e.g. of a company) of the own Matrix instance,
  • between the own server (or own servers) directly with those of communication partners or
  • between the servers of participating communication partners.

Note:
For the sake of simplicity, only the “own” server is referred to here - even if there may be several servers per instance!

Regardless of your own server, communication between these external instances (providers) can continue to take place in the event of an offline situation, restart, failure or shutdown of a server or when the matrix function is deactivated, as none of the instances involved has control (sovereignty) over the data (“without a control point”). This is elementary for the reliability of matrix chat rooms.

In addition, with matrix federation, users of different instances cannot communicate with all other matrix users, but the matrix federation can be limited. In concrete terms, this means that the function can be completely deactivated, activated for certain instances or generally enabled.

Not to forget the cross-border European or worldwide matrix federation, where several (different) laws (e.g. the Patriot Act in the USA) can apply.

Matrix documentation

Below is various information on the subject of data protection/privacy from the Matrix documentation …

Privacy Notice

In the “privacy notice” (external) from Matrix.org you can read under “2.1.2 Right to erasure”:

“We therefore share state events sent by your account with all non-essential data removed (‘redacted’), even after we have processed your request to be forgotten. This means that your username will continue to be publicly associated with rooms in which you have participated, even after we have processed your request to be forgotten.”

This means that the relationship between persons and rooms cannot be reliably deleted.

Furthermore, under “2.3.1.1 Federation”:
“We will forget your copy of your data upon your request. We will also forward your request to be forgotten onto federated homeservers. However - these homeservers are outside our span of control, so we cannot guarantee they will forget your data.”

Antwort des BdFI vom 02.12.2024:

I agree with your assumption that the relationship of usernames to rooms will not be completely removed.

The generally required data economy is therefore difficult to achieve with regard to unnecessarily stored usernames and profile pictures in view of the sometimes [‘huge’ chat rooms](#user numbers) and many matrix servers involved, especially with open federation.

Matrix specifications

Also in the Matrix specification documentation (external) from Matrix.org:

“Matrix defines a set of open APIs for decentralised communication, suitable for securely publishing, persisting and subscribing to data over a global open federation of servers with no single point of control.”

and in the section on Architecture (external):

“Each homeserver stores the communication history and account information for all of its clients, and shares data with the wider Matrix ecosystem by synchronising communication history with other homeservers and their clients.”

and:

“As such, no single homeserver has control or ownership over a given room. As such, no single homeserver has control or ownership over a given room.“

Other sources

Information on data protection at Matrix is scarce. Apart from self-collected and published information, I have so far only found the following external sources:

Privacy-Handbuch (external)

„There is no single point of control or failure in a Matrix conversation which pans multiple servers: the act of communication with someone elsewhere in Matrix shares ownership of the conversation equally with them.“

An error in the matrix; 02.06.2022 (external)

“Notes on data protection and data collection by Matrix.org”:

  • Part 1 (external): Focusing on the software stack and the privacy impact of its default configuration.
  • Part 2 (external): Focusing on GDPR compliance, example of a GDPR Information and Data request, and disclosure of a Personal Data Breach by Matrix.org

#### The Grid

With “The Grid” (external) there is a Matrix spin-off from a few former Matrix developers that aims for more freedom and privacy. Some of the points listed there are true, but they have been mostly fixed: https://matrix.org/blog/2019/09/27/privacy-improvements-in-synapse-1-4-and-riot-1-4 (external).\

„The Grid’s data collection papers contained some valid points, which were mostly fixed.“\

Source: From forwarded information by e-mail

“The Grid” strives to achieve the following goals:

  • Solve the problem originally identified by the Matrix protocol, fragmented communication, incorporate a social view
  • Simple client implementations, and federated server communications that bear the main burden
  • Decentralized data storage, distributed among participating servers
  • Designed to avoid centralization and/or monopolization

“Matrix’s ideals are Openness, Decentralization and Encryption while The Grid’s ideals are Freedom, Privacy and Security."

Source: https://gitlab.com/thegridprotocol/home/blob/master/docs/overview.md (external)

Theses / questions

First of all, once again: By design, room data is replicated on all home servers whose users are involved in a particular room.

Communication with closed federation

Thesis:
“The data protection regulations can be implemented in accordance with the legal requirements. In this case, GDPR-compliant operation is possible.”

Answer BfDI from 02.12.2024:

I fully agree with this thesis. However, this does not go hand in hand with the statement that every closed federation is also data protection compliant.

This means that in the case of closed federation, it cannot automatically be assumed that the operation is data protection compliant: Here too, the individual case must be examined.

Communication with open federation

Thesis:
“The data protection regulations cannot be implemented in accordance with the legal requirements. In this case, no GDPR-compliant operation is possible. Data sovereignty is lost with open federation, as the entire space is replicated with any other matrix instances, which are also not known in advance.”

Question: Are the system-related features alone sufficient here (replication of settings, participants, rights, messages) or must this be underpinned by individual data fields?

Answer BfDI of 02.12.2024, which also refers to the section “Communication in public chat rooms”:

This thesis cannot be conclusively confirmed or refuted in this generality. The answer therefore depends on the circumstances of the respective individual case.

The essential legal principles required for this are as follows:

The right to erasure is regulated in Art. 17 GDPR. In principle, the data controller is obliged to erase the data subject’s personal data if one of the reasons listed in paragraph 1 applies.

Due to the technical design of Matrix, there may well be several controllers within the meaning of the GDPR in the case of open federation.

According to Art. 17 para. 2 GDPR, a data controller must take measures to inform other data controllers of a data subject’s request for erasure if the data controller has made the data public. However, this obligation is not unlimited, but only applies taking into account the available technology and the implementation costs. With regard to your question of the relationship of persons to rooms, however, it is questionable whether “making public” in the sense of the standard can be assumed.

In cases where a controller has disclosed (i.e. transferred) personal data to another controller (recipient), Art. 19 GDPR applies. This provides for a notification obligation regarding erasure, which, however, does not apply if the notification proves to be impossible or involves a disproportionate effort.

Furthermore, due to the assumed structure of the individual instances and their interaction, it is likely that not only the GDPR, but also the Telecommunications Act (TKG) and other requirements from the Telecommunications Digital Services Data Protection Act (TDDDG) will apply. If the open federation is not limited to Germany, the fact that the requirements of the European Electronic Communications Code (EECC) [1], a directive requiring implementation, may be implemented differently in the national implementing legislation (in Germany, the Telecommunications Act and the TDDDG) of the European member states exacerbates the situation.

The question of whether or not a telecommunications service (TKD) exists requires a detailed examination of the respective service. Sometimes it depends on individual configurations. For example, a matrix instance could be considered a TKD in one configuration but not in another. If a TKD is involved, it is questionable whether the authors of a message must also be deleted from the communication partners in the event of account deletion. Here, it may be necessary to weigh up the interests of the communication partners with regard to clear and comprehensible communication against the right to be forgotten.

In practice, it is therefore necessary to gain clarity about the existence of a TKD as a first step. The mere possibility of openly federating is more important than the actual open federating. Nevertheless, both the mere possibility and the actual open federating are no direct guarantee that a telecommunications service exists.

Once this hurdle has been crossed, the individual issues, technical conditions and any special circumstances of the specific service must then be evaluated.

Since the specifics of each individual case must be considered, it is unfortunately not possible for me to confirm or refute your thesis in a well-founded abstract manner.

Since a general assessment does not seem possible, I would act according to the principle “When in doubt, never ” and as a server operator never allow open federation.

It is better not to burn your fingers if not all instances involved (this is impossible with open federation) successfully survive a case-by-case examination under data protection law. There are too many regulations, conditions, dependencies and unknown factors that are all interrelated. In addition, the time and cost involved in a case-by-case review should not be underestimated.

Communication in public chat rooms

Thesis:
“Here too, no individual home server has control or ownership of a specific room. This means that GDPR-compliant use is not possible.”

Questions: What does this mean for an administrator/server operator? Who is responsible for the data on other servers if message deletion is required? Who is responsible for blocking users?

Answer BfDI from 02.12.2024:

For the reasons stated above, it is therefore not possible to answer the supplementary questions without further ado. As a first approximation, the server operator - if responsible - is only responsible for deletion on its own server. Depending on the specific facts of the case, the server operator may be obliged to inform other recipients of the deletion request, but would then not be responsible for the actual execution of the deletion. In principle, however, this must be assessed in each individual case.

Bridges to/from other systems

Thesis:
“Matrix bridges cannot be operated in compliance with the GDPR, as even less control is possible here than with federated operation, data minimization is achieved even less, the conditions of the “other” systems cannot be actively accepted and third-party access is sometimes even prohibited.”

Reply BfDI from 02.12.2024:

In this case, too, it very much depends on the individual case and the specific implementation. Is the bridge used by a service provider or by a private individual for their own use?

When assessing the data protection compliance of services and systems, the requirement of data minimization must be taken into account and evaluated, but this requirement is not an absolute specification. Put simply, a solution is not automatically no longer data protection compliant as soon as another solution processes less data.

With regard to “the conditions of the ‘other’ systems”, it is not entirely clear to me which parties cannot accept these conditions? The users of a bridge? The person on the other end who (unknowingly) communicates with or via a bridge, or other people? The prohibition of third-party access is also unclear to me at this point.

Explanation of what is meant by “third-party access ”:
Some systems, such as WhatsApp or Signal, do not allow you to connect to the server with clients other than your own according to their terms and conditions.

Solution approaches

There are various approaches to solving the system-related data protection problem …

Legitimate interest

Company data protection officers repeatedly refer to the legitimate interest as a legal basis within the meaning of Art. 6 GDPR: “The users of other servers want to communicate with users of our server and therefore both sides have an interest in enabling this communication.”

On the other hand, there is the right to erasure and the following questions can be asked:

  • How is the right to delete data ensured if a chat room existing at instance XY is simultaneously synchronized to any other (previously unknown) Matrix instances through open Matrix federation?
    • Is a simple “request for deletion” from instance XY to the other current and former participating servers sufficient?
    • Are these (current and former servers involved in a conversation) listed in a data view?
  • What happens if two people (instance A and instance B) communicate with each other via a chat room on server XY? (Does this case exist in practice?)

… I do not yet have an answer(s) to this, but I am happy to discuss this with a data protection officer at state level (they are responsible for this). Because even if such a reason (“there is interest in it”) is given: It is simply not legally possible to do everything that “one” is interested in.

Data processing order

With regard to the open matrix federation, the order to process data could be extended in each case. However, this is hardly possible in practice without losing data sovereignty, or it is enough to be able to lose it. Consequently, a corresponding agreement would always have to be reached with the providers involved, which is de facto not possible.

Interoperability

The most promising approach seems to be the actual renunciation of open matrix federation and communication “to the outside” (with other systems) using standardized interfaces that do not require replication of databases.

cross-reference:_ difference_Föderation und Interoperabilität

Conclusion

Data protection is a complex topic. There are too many internal, national and international regulations, laws, conditions, dependencies and unknown factors that are all interrelated. In addition, the time and cost involved in a case-by-case assessment should not be underestimated.

Nevertheless, I think the following points can be summarized:

  • A closed matrix federation is possible after data protection individual case examination.

  • Irrespective of the fact that a systemic consideration of open federation does not seem possible at present, it cannot be ruled out that matrix instances from third countries (e.g. USA or China) are involved, which have different data protection regulations. Therefore, the principle “When in doubt, never!” applies here and server operators are advised not to allow any open federation. It is better not to burn your fingers if not all instances involved (this is impossible with open federation) successfully pass an individual data protection check.

  • Public chat rooms at Matrix are also difficult to assess; there is no concrete assessment by a data protection officer.

Cross-reference:_ Thoughts on Matrix_ \