Skip to content

Conversation

sarnepalli
Copy link

@sarnepalli sarnepalli commented Nov 14, 2024

This PR adds the "https_redirect_domains" list variable, serving as an allowlist of valid hosts for HTTP requests that will be redirected to HTTPS.
HTTP requests with a host header not included in the allowlist will not be redirected to HTTPS, and will return a 404 error instead- similar to the HTTPS behavior with invalid host headers.
If https_redirect_domains is not explicitly defined, then by default https_redirect_domains : ["*"] preserves the existing behavior of redirecting all http requests.

@sarnepalli sarnepalli requested review from a team, imrannayer and q2w as code owners November 14, 2024 21:03
Copy link

google-cla bot commented Nov 14, 2024

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@sarnepalli sarnepalli force-pushed the http_redirectrule branch 3 times, most recently from c40fe62 to 47db538 Compare November 19, 2024 20:27
@sarnepalli sarnepalli force-pushed the http_redirectrule branch 2 times, most recently from 0694e6a to 19686f5 Compare November 25, 2024 22:22
@sarnepalli sarnepalli force-pushed the http_redirectrule branch 6 times, most recently from dbb551e to 1a1c1a5 Compare December 13, 2024 19:06
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.

1 participant