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: running code-server notebook behind proxy #7658

Merged

Conversation

thesuperzapper
Copy link
Member

What's the problem?

Currently, the code-server notebook image (VSCode) will not work properly when behind a proxy that changes the hostname, as code-server requires that the x-forwarded-for match the actual HTTP host header otherwise it gives an error like this:

The workbench failed to connect to the server (Error: WebSocket close with status code 1006)

image

What's the solution?

As documented upstream in coder/code-server#4443, the solution is to start code-server with the --trusted-origins "*" parameter.

Signed-off-by: Mathew Wicks <5735406+thesuperzapper@users.noreply.github.com>
@thesuperzapper thesuperzapper added this to the v1.9.3 milestone Nov 5, 2024
@ederign
Copy link
Member

ederign commented Nov 5, 2024

/lgtm

@thesuperzapper
Copy link
Member Author

I am self approving because @kimwnasptd seems to not be active, and this is a trivial change that I would like to cut a patch release for.

/approve

Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ederign, thesuperzapper

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@google-oss-prow google-oss-prow bot merged commit 255af21 into kubeflow:master Nov 25, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants