Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto Redirect to HTTPS - EnvoyFleet TLS Requirement setting #233

Merged
merged 9 commits into from
Feb 28, 2022

Conversation

kylehodgetts
Copy link
Contributor

This PR introduces the TLS requirements field to set the TLS requirement for redirecting to HTTPS from HTTP

The available options as per envoy are:

NONE - No TLS requirement for the virtual hosts
EXTERNAL_ONLY - External requests must use TLS. If a request is external and it is not using TLS, a 301 redirect will be sent telling the client to use HTTPS.
ALL - All requests must use TLS. If a request is not using TLS, a 301 redirect will be sent telling the client to use HTTPS.

This PR also introduces a Defaulting webhook for EnvoyFleet to set the requirements value to NONE if not set by the user

Checklist

  • tested locally
  • added new dependencies
  • updated the docs
  • added a test

@kylehodgetts kylehodgetts changed the title Auto Redirect to HTTPS [1/2] Auto Redirect to HTTPS - EnvoyFleet TLS Requirement setting [1/2] Feb 22, 2022
@kylehodgetts kylehodgetts marked this pull request as ready for review February 22, 2022 14:03
api/v1alpha1/envoyfleet_types.go Outdated Show resolved Hide resolved
api/v1alpha1/envoyfleet_types.go Outdated Show resolved Hide resolved
…iven EnvoyFleets list of hosts to redirect to HTTPS on
@kylehodgetts kylehodgetts changed the title Auto Redirect to HTTPS - EnvoyFleet TLS Requirement setting [1/2] Auto Redirect to HTTPS - EnvoyFleet TLS Requirement setting Feb 23, 2022
@kylehodgetts kylehodgetts requested a review from Tarick February 23, 2022 13:44
Tarick
Tarick previously approved these changes Feb 23, 2022
dobegor
dobegor previously approved these changes Feb 23, 2022
Tarick
Tarick previously approved these changes Feb 28, 2022
@kylehodgetts kylehodgetts dismissed stale reviews from Tarick and dobegor via a8bd632 February 28, 2022 13:32
@kylehodgetts kylehodgetts requested a review from Tarick February 28, 2022 13:33
@Tarick Tarick merged commit c2b3c56 into main Feb 28, 2022
@Tarick Tarick deleted the kylehodgetts/enhancement/181-auto-redirect-http-https branch February 28, 2022 15:11
@Tarick Tarick linked an issue Feb 28, 2022 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Automatic redirect from http to https
3 participants