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

SpringCloud Gateway #7053

Open
1 of 2 tasks
wangyunChina opened this issue Oct 28, 2024 · 3 comments
Open
1 of 2 tasks

SpringCloud Gateway #7053

wangyunChina opened this issue Oct 28, 2024 · 3 comments
Labels
bug Something isn't working triage This issue needs to be triaged by a maintainer

Comments

@wangyunChina
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

OS/Web Information

  • Web Browser: chrome
  • Local OS:Linux ubuntu 20
  • Remote OS:Linux ubuntu 20
  • Remote Architecture: x86
  • code-server --version:latest

Steps to Reproduce

  1. Deploy codeserver locally, disable auth bind IP 0.0.0.0, port arbitrary.
  2. Configure static proxy using Spring Cloud Gateway.
  3. Page access, the proxy shows 403 shankhan failed.
  4. It was found that the host in the forwarded request header of the gateway has double quotation marks.
  5. After modifying the gateway, the handshake was successful, but the codeserver kept reporting errors and the connection had reset.

Expected

Similar to nginx proxy, file service access can be performed normally

Actual

The page took a long time to load and was unable to establish a file server connection

Logs

No response

Screenshot/Video

No response

Does this bug reproduce in native VS Code?

I did not test native VS Code

Does this bug reproduce in GitHub Codespaces?

Yes, this is also broken in GitHub Codespaces

Are you accessing code-server over a secure context?

  • I am using a secure context.

Notes

No response

@wangyunChina wangyunChina added bug Something isn't working triage This issue needs to be triaged by a maintainer labels Oct 28, 2024
@code-asher
Copy link
Member

  • What version do you mean by latest?
  • What errors are you getting? Can you provide the browser console logs and network errors?
  • You marked that Codespaces is also broken, do you mean you tried to put Codespaces behind your proxy?
  • Does code-server work without the proxy?
  • Do you have a way I could easily reproduce? Docker setup or something maybe?

@wangyunChina
Copy link
Author

  1. What version do you mean by latest?
  • The latest version I am referring to is 4.93.1.
  1. What errors are you getting? Can you provide the browser console logs and network errors?
  • The logs of console and codeserver started in debug mode were not recorded at the time, but they can be easily reproduced
  1. You marked that Codespaces is also broken, do you mean you tried to put Codespaces behind your proxy?
  • This is a mistake.
  1. Does code-server work without the proxy?
  • Yes, code-server works fine without the proxy. Once I removed the proxy or bypassed it, code-server was able to function properly, so it appears the issue is specific to the proxy configuration.
  1. Do you have a way I could easily reproduce? Docker setup or something maybe?
  • You can use Docker or direct startup on the server to start a CodeServer application (preferably with auth turned off), and then create a Spring Cloud Gateway application in an IDE environment such as the IDEA tool. Add a route to the CodeServer application in the gateway configuration. You can refer to this Git repository for the code of the gateway: https://github.com/wangyunChina/gatetest.git

@code-asher
Copy link
Member

Thank you for the extra details. I will try to reproduce if I can find time, but if you are able to get the logs let me know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage This issue needs to be triaged by a maintainer
Projects
None yet
Development

No branches or pull requests

2 participants