Skip to content
This repository has been archived by the owner on Jan 8, 2024. It is now read-only.

Waypoint server: Support insecure HTTP listener #2347

Merged
merged 6 commits into from Sep 27, 2021
Merged

Conversation

mitchellh
Copy link
Contributor

@mitchellh mitchellh commented Sep 24, 2021

This adds a -listen-http-insecure flag to the Waypoint server to create an insecure (non-TLS) HTTP listener.

This insecure HTTP listener behaves in two ways:

  1. If there is an X-Forwarded-Proto of https, it routes the traffic.
  2. Otherwise, it redirects to https.

The insecure HTTP listener is primarily to help with the Kubernetes use case where resources such as Ingress do not typically talk to their backends with TLS. Further, it helps the basic LoadBalancer Service case because port 80 will redirect to TLS versus not connecting today.

This is opt-in functionality. If the flag isn't specified, an insecure listener is not created.

There is no way to get this today with waypoint install (unless you specify a manual flag). The plan is to integrate this into the Waypoint Helm chart directly.

Copy link
Contributor

@krantzinator krantzinator left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems reasonably protected

@mitchellh mitchellh merged commit 7e08267 into main Sep 27, 2021
@mitchellh mitchellh deleted the feature/insecure-http branch September 27, 2021 19:19
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants