Matrix and Element Web server
Go to file
Daniel Micay 087c1a6349 disable traditional stateful TLS session cache
This is useless for TLSv1.3 since there's no longer any distinction in
the protocol based on whether the server is using stateless or stateful
session resumption. OpenSSL has a non-standard anti-replay mechanism for
0-RTT based on stateful session resumption but 0-RTT still ends up being
a downgrade for the TLS security properties. nginx disables that feature
since otherwise 0-RTT wouldn't work with the default stateless approach.

Since this cache is only used for TLSv1.2 when stateless resumption
isn't disabled and nearly all TLSv1.2 clients support tickets, it isn't
getting any significant use. It provides worse forward secrecy than
tickets because we implement ticket key rotation based on the expiry
time and sessions aren't actively purged from the stateful cache when
they expire. Cached session state varies in size and nginx ends up
writing errors to the log when clearing out a session fails to make room
for a new one due to it being larger. It's best to finally get rid of
this flawed approach to session resumption.

TLSv1.3 provides the option of forward secrecy for resumed sessions and
it's the only approach that's normally enabled so we don't need to worry
about this anymore once TLSv1.2 is disabled as long as we never enable
0-RTT which weakens forward secrecy and other security properties.
2022-04-30 22:53:43 -04:00
.github Bump actions/checkout from 2 to 3 2022-03-02 02:50:44 -05:00
default use jemalloc for synapse 2021-07-04 08:27:24 -04:00
nginx disable traditional stateful TLS session cache 2022-04-30 22:53:43 -04:00
webapps/element drop matrix.org servers from presence list 2022-04-13 20:58:10 -04:00
.gitignore use a temporary directory for nginx configuration 2021-11-25 20:34:35 -05:00
deploy-static combine ssh commands for deployment 2022-03-24 18:54:07 -04:00
process-static remove version workaround 2021-12-20 13:14:52 -05:00
requirements.txt replace nginx lint workflow 2021-11-25 20:36:23 -05:00