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

[ws-proxy] not use target host when serve workspace port route #11072

Merged
merged 1 commit into from
Jul 1, 2022

Conversation

iQQBot
Copy link
Contributor

@iQQBot iQQBot commented Jul 1, 2022

Description

[ws-proxy] not use target host when serve workspace port route
At this PR #10514

We use targetHost in order to allow blobserve behind ide-proxy to process requests properly, but this creates a problem that causes users to receive the wrong host when they use https://{port}-workspaceUrl, which is internal-pod-ip: port, this PR fixes that bug

In gen 51 in preview environment
image image

Related Issue(s)

Fixes #11070

How to test

  1. Open a workspace
  2. run curl lama.sh | sh
  3. use gp preview $(gp url 8080) --external to open a browser, you can see the log of Host header, it should be workspace port url

Release Notes

[ws-proxy] not use target host when serve workspace port route

Documentation

Werft options:

  • /werft with-preview

@iQQBot
Copy link
Contributor Author

iQQBot commented Jul 1, 2022

/werft run

👍 started the job as gitpod-build-pd-fix-error-host.1
(with .werft/ from main)

@roboquat roboquat added the size/S label Jul 1, 2022
@iQQBot iQQBot marked this pull request as ready for review July 1, 2022 09:37
@iQQBot iQQBot requested a review from a team July 1, 2022 09:37
@github-actions github-actions bot added the team: workspace Issue belongs to the Workspace team label Jul 1, 2022
Copy link
Contributor

@jenting jenting left a comment

Choose a reason for hiding this comment

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

Code LGTM, but still under testing
/hold

@jenting
Copy link
Contributor

jenting commented Jul 1, 2022

Test passed in preview env as well as preview env.

/unhold

@roboquat roboquat merged commit cf6a34a into main Jul 1, 2022
@roboquat roboquat deleted the pd/fix-error-host branch July 1, 2022 10:04
@roboquat roboquat added deployed: workspace Workspace team change is running in production deployed Change is completely running in production labels Jul 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deployed: workspace Workspace team change is running in production deployed Change is completely running in production release-note size/S team: workspace Issue belongs to the Workspace team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Figure out why some preview urls in gen51 clusters were being redirected to the internal pod IPs
3 participants