This version of the document is no longer canonical. You can find the canonical version hosted at Gitlab and Github.
PART 2 IS OUT, INCLUDING THE DISCLOSURE OF A GLOBAL FEDERATION DATA LEAK, AND THE ANATOMY OF A GDPR DATA REQUEST HANDLED BY MATRIX.ORG. SEE THE REPOS ABOVE.
So after double-checking again, it seems like Comment 38 is not factually correct and that Cloudflare DOES TLS termination, directly having access to all the data in clear.
Here is a Client request done now:
Here is a Federation request done now:
Edit:
vector.imas an identity server:In all cases, we can see the headers
set-cookie,server,cf-rayandexpect-ctwith values set by Cloudflare, which would not be possible if TLS termination was done directly onmatrix.org/vector.imservers.