Giter VIP home page Giter VIP logo

Comments (7)

sbordet avatar sbordet commented on May 21, 2024

I think the best way to do this is to expose the SSLSession object itself, for example under org.eclipse.jetty.servlet.request.ssl_session, from where one could get much more information than just the TLS protocol version.

from jetty.project.

gregw avatar gregw commented on May 21, 2024

+1 to what @sbordet said.... but make it optional. Perhaps in the style of ForwardedRequestCustomizer, have a setSslSessionAttribute(String) method that set's the name of the attribute to use. If not set, then the attribute is not set.

from jetty.project.

joakime avatar joakime commented on May 21, 2024

Seems a bit dangerous to expose the full SSLSession to the web applications.

Why is just exposing the TLS protocol in a new attribute undesired?

from jetty.project.

sbordet avatar sbordet commented on May 21, 2024

Dangerous, how ?

Exposing the TLS protocol would be a non-standard addition, and then we would need to expose a bunch of other information that may be needed to web applications.

Exposing the SSLSession avoids the proliferation of non-standard attributes: we just add one rather than one for every property that SSLSession exposes.

from jetty.project.

joakime avatar joakime commented on May 21, 2024

If you don't know what you are doing with the SSLSession, couldn't you cause problems with your connection easily?

from jetty.project.

sbordet avatar sbordet commented on May 21, 2024

People can always mess things up if they don't know what they're doing, e.g. call System.exit(0).

For people that needs particular, non-common, SSLSession information, looking up a non-standard attribute, I would say that if they mess up, well... but if they don't, they have all the information they want and we do this change once for all future SSLSession attributes (e.g. ALPN protocols in JDK 9).

from jetty.project.

joakime avatar joakime commented on May 21, 2024

Fixed in jetty-9.2.x and merged up to jetty-9.3.x

from jetty.project.

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.