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

fix(frontend): forward Host header as X-Forwarded-Host #5816

Merged
merged 1 commit into from
Sep 9, 2022
Merged

fix(frontend): forward Host header as X-Forwarded-Host #5816

merged 1 commit into from
Sep 9, 2022

Conversation

codesorcery
Copy link
Contributor

@codesorcery codesorcery commented Sep 2, 2022

When Host header is forwarded as-is, service meshes such as Istio will erroneously send the request to the the host specified there instead of the intended target.

Checklist

  • The PR conforms to DataHub's Contributing Guideline (particularly Commit Message Format)
  • Links to related issues (if applicable)
  • Tests for the changes have been added/updated (if applicable)
  • Docs related to the changes have been added/updated (if applicable). If a new feature has been added a Usage Guide has been added for the same.
  • For any breaking change/potential downtime/deprecation/big changes an entry has been made in Updating DataHub

@shirshanka shirshanka added community-contribution PR or Issue raised by member(s) of DataHub Community product PR or Issue related to the DataHub UI/UX labels Sep 6, 2022
@github-actions
Copy link

github-actions bot commented Sep 6, 2022

Unit Test Results (build & test)

517 tests  ±0   517 ✔️ ±0   8m 16s ⏱️ -58s
121 suites ±0       0 💤 ±0 
121 files   ±0       0 ±0 

Results for commit bb6d4b8. ± Comparison against base commit 13e411e.

♻️ This comment has been updated with latest results.

Copy link
Collaborator

@jjoyce0510 jjoyce0510 left a comment

Choose a reason for hiding this comment

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

This makes sense to me. Thank you @codesorcery !

When Host header is forwarded as-is, service meshes such as Istio
will erroneously send the request to the the host specified there
instead of the intended target.
@codesorcery
Copy link
Contributor Author

Hey @jjoyce0510, thanks for reviewing the PR! I fixed some mistakes, rebased the commit and locally made sure that the build and tests runs correctly (haven't used Java and Gradle in a while).

@jjoyce0510 jjoyce0510 merged commit de547a9 into datahub-project:master Sep 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community-contribution PR or Issue raised by member(s) of DataHub Community product PR or Issue related to the DataHub UI/UX
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants