Skip to content

Add protocol info to backends #258

Closed

Description

@Geal

Right now, connections to backends are done in plain TCP. We should support connecting to backends in TLS.

Issues that can appear:

HTTP/2 might need more info, like "this backend server can use TLS but does not support HTTP/2".

It might be useful to pass this info in configuration at the app level, not at the backend level, to make sure all backends behave in the same way. But that could mean we have an application with plaintext HTTP on the frontend, and HTTPS on the backend?

Activity

  1. added this to the should be in the release milestone on Nov 23, 2017
  2. modified the milestones: should be in the release, on Oct 19, 2018
  3. shirshak55 commented on Jul 12, 2020

    @shirshak55
    Contributor

    Regarding http2 I think the best solution is to reuse code and idea from hyper crate?

  4. Geal commented on Jul 12, 2020

    @Geal
    MemberAuthor

    hyper uses the h2 crate, and that crate relies heavily on futures and tokio. As sozu uses its own event loop based on mio, it would not be compatible

  5. dlecan commented on Mar 12, 2021

    @dlecan

    We are in 2021, can we expect secured connexions between Sozu and backend soon?

  6. Geal commented on Mar 13, 2021

    @Geal
    MemberAuthor

    to be transparent, our focus (at @CleverCloud) for this has been instead on encrypting communications at a lower layer, through wireguard. It is less complex to distribute wireguard keys and set up networks, than setting up a PKI, distributing certificates and either installing them in a different way for each backend server, or adding another proxy for TLS termination near the backend.

    The feature is not particularly hard to add though, creating a new type of socket for backends should make some easily self contained code. IIRC I had some code for that somewhere, I'll see if I can dig it out.

  7. dlecan commented on Mar 15, 2021

    @dlecan

    our focus (at @CleverCloud) ... encrypting communications at a lower layer, through wireguard.

    👏 I'm a client :-)
    We shouldn't discuss this here, but, well, I don't know where to ask fo it 😉
    Is encryption already available between your reverse-proxies and application backends?

  8. Geal commented on Mar 18, 2021

    @Geal
    MemberAuthor

    you can ask on our support chat 😃
    It is not available yet, we're currently testing the wireguard deployment

  9. modified the milestones: , 0.14 on Jul 29, 2021
  10. modified the milestones: v0.14.0, next on Feb 18, 2022
  11. FlorentinDUBOIS commented on May 5, 2026

    @FlorentinDUBOIS
    Collaborator

    Closing as duplicate of #1218 (h2 backend TLS support). The per-backend protocol surface is now tracked via the H2-backend work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions