Skip to content

feat: Add support for allowed list of domains for https redirect - #470

Open
sarnepalli wants to merge 2 commits into
terraform-google-modules:mainfrom
sarnepalli:http_redirectrule
Open

feat: Add support for allowed list of domains for https redirect#470
sarnepalli wants to merge 2 commits into
terraform-google-modules:mainfrom
sarnepalli:http_redirectrule

Conversation

@sarnepalli

@sarnepalli sarnepalli commented Nov 14, 2024

Copy link
Copy Markdown

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
@google-cla

google-cla Bot commented Nov 14, 2024

Copy link
Copy Markdown

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
@github-actions

Copy link
Copy Markdown

This PR is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days

@github-actions github-actions Bot added the Stale label Dec 10, 2025
@sarnepalli

Copy link
Copy Markdown
Author

bump

@github-actions github-actions Bot removed the Stale label Dec 11, 2025
@lcarstensen

Copy link
Copy Markdown

Could we get someone to re-run /gcbrun on this please?

@imrannayer
imrannayer requested a review from ayushmjain as a code owner January 8, 2026 17:31
@imrannayer

Copy link
Copy Markdown
Collaborator

/gcbrun

Comment thread versions.tf Outdated
Comment thread .terraform-version Outdated
@sarnepalli

Copy link
Copy Markdown
Author

@imrannayer can you please re-run gcbrun

@github-actions

Copy link
Copy Markdown

This PR is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days

@github-actions github-actions Bot added the Stale label Mar 13, 2026
@sarnepalli

Copy link
Copy Markdown
Author

ping

@github-actions github-actions Bot removed the Stale label Mar 14, 2026
@github-actions

Copy link
Copy Markdown

This PR is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days

@github-actions github-actions Bot added the Stale label May 13, 2026
@sarnepalli

Copy link
Copy Markdown
Author

@imrannayer

@github-actions github-actions Bot removed the Stale label May 14, 2026
@github-actions

Copy link
Copy Markdown

This PR is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days

@github-actions github-actions Bot added the Stale label Jul 14, 2026
@sarnepalli

Copy link
Copy Markdown
Author

bump

@github-actions github-actions Bot removed the Stale label Jul 15, 2026
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.

3 participants