Skip to content

Improve detection of secure requests for HTTP/1 #14134

@sbordet

Description

@sbordet

Jetty version(s)
12.1.x

HTTP version
HTTP/1.1

Description
HttpConnection.HttpStreamOverHTTP1.headerComplete() tries to detect whether a request is secure via instanceof SslEndPoint.

However, this does not work when HAProxy offloads TLS and then sends PROXY-V2 information to the backend.

The correct way is more likely endPoint.getSslSessionData() != null.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugFor general bugs on Jetty side

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions