Skip to content
This repository has been archived by the owner on Jul 12, 2023. It is now read-only.

only redirect for known host headers #1982

Merged
merged 3 commits into from
Apr 6, 2021
Merged

Conversation

mikehelmick
Copy link
Contributor

Proposed Changes

  • only redirect for known host headers

Release Note

Change load balancer https redirect rules to only match known host names, otherwise redirect to UI server.

@mikehelmick mikehelmick requested a review from a team as a code owner April 6, 2021 00:32
@googlebot googlebot added the cla: yes Auto: added by CLA bot when all committers have signed a CLA. label Apr 6, 2021
@mikehelmick mikehelmick enabled auto-merge (squash) April 6, 2021 00:42
default_url_redirect {
strip_query = false
Copy link
Member

Choose a reason for hiding this comment

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

I'm not sure we want to strip the query string - that could break an existing http link

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I only put it on this one, because this is when the incoming host header is not valid, so I think it's best to also strip the query.

I'll make the known hosts false.

@mikehelmick mikehelmick merged commit 5843752 into google:main Apr 6, 2021
@mikehelmick mikehelmick deleted the redirectLB branch April 6, 2021 14:47
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cla: yes Auto: added by CLA bot when all committers have signed a CLA. kind/infrastructure
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants