public inbox for pbs-devel@lists.proxmox.com
 help / color / mirror / Atom feed
From: Lukas Wagner <l.wagner@proxmox.com>
To: Proxmox Backup Server development discussion
	<pbs-devel@lists.proxmox.com>,
	Max Carrara <m.carrara@proxmox.com>
Subject: Re: [pbs-devel] [PATCH proxmox, proxmox-backup 0/3] Add support for HTTP to HTTPS redirection
Date: Fri, 23 Jun 2023 13:40:24 +0200	[thread overview]
Message-ID: <2bb15087-8522-9290-23ac-825f7eeaac23@proxmox.com> (raw)
In-Reply-To: <20230622091526.812422-1-m.carrara@proxmox.com>

Hello,

tested this on the current master branch.
Navigated to `http://<ip>:8007`, redirect to `https://<ip>:8007` works as expected.

Code LGTM.

Consider this:

Tested-by: Lukas Wagner <l.wagner@proxmox.com>
Reviewed-by: Lukas Wagner <l.wagner@proxmox.com>

On 6/22/23 11:15, Max Carrara wrote:
> This patch series adds support for redirecting HTTP requests to HTTPS. This is
> done by peeking into the incoming TCP stream's buffer in order to check whether
> the client initiates a TLS handshake or not.
> 
> Secure and insecure connections are then sent along separate channels, allowing
> them to be handled by different `hyper::Server`s (if so desired).
> 
> Finally, `proxmox-backup-proxy` is adapted correspondingly, making it a little
> more convenient to access PBS via its web interface.
> 
> proxmox:
> 
> Max Carrara (2):
>    rest-server: Add `BiAcceptBuilder`
>    rest-server: Add `Redirector`
> 
>   proxmox-rest-server/src/connection.rs | 327 ++++++++++++++++++++++++++
>   proxmox-rest-server/src/lib.rs        |   2 +-
>   proxmox-rest-server/src/rest.rs       |  76 ++++++
>   3 files changed, 404 insertions(+), 1 deletion(-)
> 
> 
> proxmox-backup:
> 
> Max Carrara (1):
>    proxy: redirect HTTP requests to HTTPS
> 
>   src/bin/proxmox-backup-proxy.rs | 45 ++++++++++++++++++++++++++++-----
>   1 file changed, 38 insertions(+), 7 deletions(-)
> 

-- 
- Lukas




      parent reply	other threads:[~2023-06-23 11:40 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-22  9:15 Max Carrara
2023-06-22  9:15 ` [pbs-devel] [PATCH proxmox 1/3] rest-server: Add `BiAcceptBuilder` Max Carrara
2023-07-14  9:20   ` Wolfgang Bumiller
2023-07-18  5:46     ` Max Carrara
2023-06-22  9:15 ` [pbs-devel] [PATCH proxmox 2/3] rest-server: Add `Redirector` Max Carrara
2023-07-14  9:24   ` Wolfgang Bumiller
2023-07-18  5:59     ` Max Carrara
2023-06-22  9:15 ` [pbs-devel] [PATCH proxmox-backup 3/3] proxy: redirect HTTP requests to HTTPS Max Carrara
2023-06-23 10:15 ` [pbs-devel] [PATCH proxmox, proxmox-backup 0/3] Add support for HTTP to HTTPS redirection Max Carrara
2023-06-23 10:55   ` Thomas Lamprecht
2023-06-27  9:39     ` Max Carrara
2023-06-23 11:40 ` Lukas Wagner [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2bb15087-8522-9290-23ac-825f7eeaac23@proxmox.com \
    --to=l.wagner@proxmox.com \
    --cc=m.carrara@proxmox.com \
    --cc=pbs-devel@lists.proxmox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal