Giter Club home page Giter Club logo

Comments (5)

amithm7 avatar amithm7 commented on May 14, 2024 1

Current deployment supports both TLS v1.2 & v1.3.
Session resumption (via session tickets) already works when the client uses TLS v1.2 (Enter Q to quit):

openssl s_client -connect 213.188.218.85:853 -reconnect -servername max.rethinkdns.com \
-tls1_2 | grep -E "^(New|Reused)"

Session Resumption is working with TLS v1.3 too (Enter Q to quit):

openssl s_client -connect 213.188.218.85:853 -servername max.rethinkdns.com -tls1_3 \
-sess_out /tmp/sess.pem | grep -E "^(New|Reused)"
openssl s_client -connect 213.188.218.85:853 -servername max.rethinkdns.com -tls1_3 \
-sess_in /tmp/sess.pem | grep -E "^(New|Reused)"

Session Resumption on TLS v1.2

Using Session Tickets

  • NodeJS: ✔️ Works
    • Session tickets are sent during handshake and reconnecting resumes session.
  • Deno: ✔️ Works

Using Session IDs

Not explored

Session Resumption on TLS v1.3

Using Session Tickets (PSK)

  • NodeJS ✔️ (Verified from server side too)
    • Works while testing (Enter Q to quit):
       openssl s_client -connect dns.rethinkdns.localhost:10000 -sess_out /tmp/sess.pem \
       | grep -E "^(New|Reused)"
       openssl s_client -connect dns.rethinkdns.localhost:10000 -sess_in /tmp/sess.pem \
       | grep -E "^(New|Reused)"
      
    • Two (different) session tickets are sent post handshake.
    • ❓ Unsupported? nodejs/node#39691
  • Deno: ✔️
    • Works while testing (Enter Q to quit):
       openssl s_client -connect dns.rethinkdns.localhost:10000 -sess_out /tmp/sess.pem \
       | grep -E "^(New|Reused)"
       openssl s_client -connect dns.rethinkdns.localhost:10000 -sess_in /tmp/sess.pem \
       | grep -E "^(New|Reused)"
      
    • One session ticket is sent post handshake.
    • ❓ No documentation found.
  • Unable to test properly due to openssl s_client bug: openssl/openssl#10714

Using Session IDs

Implementation problems...

0-RTT on TLS v1.3

from serverless-dns.

ignoramous avatar ignoramous commented on May 14, 2024 1

So, nothing to do?

from serverless-dns.

ignoramous avatar ignoramous commented on May 14, 2024

@amithm7 This is done, I guess. Commit?

from serverless-dns.

amithm7 avatar amithm7 commented on May 14, 2024

This is built-in to tls lib of nodejs. There is a debug log here to test :

log.debug(
`(${socket.getProtocol()}), session reused: ${socket.isSessionReused()}}`
);

from serverless-dns.

ignoramous avatar ignoramous commented on May 14, 2024

session resumption was recently removed due to memory reqs: abf20c8

instead, tls (client) tickets are now valid for 7d: 20425bf and generated from the same seed across the entire fleet 0dcf5cf

from serverless-dns.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.