64 Commits

Author SHA1 Message Date
Anton Kosyakov
959e584b55 [ws-proxy] support ports location for debug workspace
It is a prerequisite to https://github.com/gitpod-io/gitpod/pull/15795. Based on Pudong's work from https://github.com/gitpod-io/gitpod/pull/15687.

Co-authored-by: Pudong Zheng <tianshi8650@gmail.com>
2023-01-20 09:44:27 +01:00
Anton Kosyakov
697696029b [gp-run] experimental workspace config debug mode
Co-authored-by: Anton Kosyakov <anton@gitpod.io>
Co-authored-by: Victor Nogueira <victor@gitpod.io>
Co-authored-by: Andrea Falzetti <andrea@gitpod.io>
2023-01-09 06:32:48 +01:00
Christian Weichel
478a75e744 Switch license to AGPL 2022-12-08 13:05:19 -03:00
Jean Pierre
9adc2e0458 Minor cleanup 2022-10-03 22:20:19 +02:00
Jean Pierre
350404f82d Add vscode callback route 2022-09-12 20:25:13 +02:00
Victor Nogueira
fe690d2782 Remove the port number from "X-Forwarded-Host" header as it's is already defined in "X-Forwarded-Port" 2022-07-09 18:16:56 +05:30
Pudong Zheng
dc33a0b1ca [ws-proxy] use target host for foreign resource 2022-07-06 13:40:53 +05:30
Pudong Zheng
394eda070c [ws-proxy] remove blobserve readonly mode 2022-07-06 13:40:53 +05:30
Victor Nogueira
a5e828ffa2 Add X-Forwarded-Port header
It's required by some software, like [FusionAuth](https://fusionauth.io/).
2022-07-04 17:20:51 +05:30
Pudong Zheng
cf6a34ae6b [ws-proxy] not use target host when serve workspace port route 2022-07-01 15:34:39 +05:30
Pudong Zheng
9dc436aa92 [SSH Gateway] remove priavte key requirement when ownerToken is provide 2022-06-17 12:13:26 +05:30
Pudong Zheng
c8794637a3 [ws-proxy] use ide-proxy to serve blobserv 2022-06-10 02:47:19 +05:30
Jean Pierre
aa2c51c804 Serve webview resources from blobserve 2022-05-19 08:12:33 +05:30
Pudong Zheng
8fa98f9e68 add ssh_host_key router 2022-02-21 16:43:01 +05:30
Gero Posmyk-Leinemann
c0bbf911db [dashboard, ws-proxy, supervisor] Break potential DDOS cycle by disabling autostart
When triggered:
     a) inFrame or
     b) when redirect from IDE url (by ws-proxy)
2022-02-14 11:06:35 +01:00
Cornelius A. Ludmann
47d4ac5345 [ws-proxy] Get supervisor image from pod annotation
instead from ws-proxy config
2021-11-15 08:45:12 +01:00
Manuel Alejandro de Brito Fontes
526c95e344 Decouple ws-proxy from ws-manager 2021-11-05 10:33:03 +01:00
Manuel Alejandro de Brito Fontes
5ba43eba6f [ws-proxy] Improve log message and reduce verbosity 2021-09-07 07:44:13 +02:00
Manuel Alejandro de Brito Fontes
347ad95d80 Switch from fmt.Errorf to xerrors.Errorf 2021-08-30 02:47:28 -03:00
Christian Weichel
afe7eda668 [ws-proxy] Disable compression on supervisor API
to avoid "stuttering log output" in image-builder
2021-07-22 16:32:26 +02:00
Anton Kosyakov
ed076d77a8 [code] fix #4529: serve each webview from own origin
decoupled from workpace origin (also extension host origin)
2021-07-16 14:08:25 +05:00
Anton Kosyakov
f6ad999455 [code] fix #4568: inline static links to blobserve 2021-07-07 08:04:28 +02:00
Anton Kosyakov
46d1a4dacc [ws-proxy] correct websocket headers
a work-around for servers which does not respect case-insensitive headers, see https://github.com/gitpod-io/gitpod/issues/4047#issuecomment-856566526
2021-06-09 07:59:48 +05:00
Alex Tugarev
70097b6d82 [ws-proxy] make https default and redirect http 2021-05-04 11:40:11 +02:00
Christian Weichel
daceb65cc2 [ws-proxy] Don't reuse log entry
fixes #3974
2021-04-19 13:12:34 +02:00
Gero Posmyk-Leinemann
b0bae71c63 [ws-proxy] Remove references to: pathAndHost, pathAndPort 2021-03-12 08:50:06 +01:00
Manuel Alejandro de Brito Fontes
3b4ebc9bad Migrate deprecated methods from ioutil package 2021-03-02 06:37:49 -03:00
Manuel Alejandro de Brito Fontes
2b6a56bc40 Update go imports 2021-03-02 06:37:49 -03:00
Christian Weichel
c47c7e1933 [theia-server] Remove in favour of blobserve
With registry-facade becoming the default, we can also
make blobserve standard.
2021-02-18 09:25:56 +01:00
Christian Weichel
396b51ed1f [ws-proxy] Don't leak workspace info Go routines 2021-01-19 10:45:57 +01:00
Christian Weichel
b7dda84ad0 [license] Update license header from TypeFox GmbH to Gitpod GmbH 2021-01-04 15:12:02 +01:00
Anton Kosyakov
1ff5cd0c63 [ws-proxy] allow preflight requests for blobserve endpoint 2020-12-09 16:41:52 +01:00
Christian Weichel
6b61df4f29 [ws-proxy] Forward cookies with invalid names
fixes #2470
2020-12-09 15:05:26 +01:00
Anton Kosyakov
b6c85f88fb [ws-proxy] always serve foreign content directly from the IDE 2020-12-09 14:50:45 +01:00
Sven Efftinge
ab0853b95a [ws-proxy] Wait 3 secs for WS info before redirecting to /start 2020-11-30 11:03:34 +01:00
Gero Posmyk-Leinemann
1f138c2804 [ws-proxy] Introduce withXFrameOptionsFilter on workspace ports 2020-11-27 14:56:04 +01:00
Christian Weichel
c2607e500b [ws-proxy] Wait for workspace info until the request is canceled 2020-11-27 12:04:44 +01:00
Christian Weichel
470b983008 [ws-proxy] Produce a single Cookie header
Fixes gitpod-io/gitpod#2121
2020-11-24 17:46:53 +01:00
Christian Weichel
ff1ee29613 [ws-proxy] Serve port-not-found page when port isn't answering 2020-11-20 08:51:57 +01:00
Anton Kosyakov
7dcdb7c7da fix #2187: never cache redirects to blobserve
Signed-off-by: Anton Kosyakov <anton.kosyakov@typefox.io>
2020-11-18 16:28:36 +01:00
Anton Kosyakov
165455821f [ws-proxy] handle blobserve errors gracefully 2020-11-09 10:11:54 +01:00
Anton Kosyakov
cca0c84d7e fix #2119: only use permament redirects for IDE image 2020-11-09 10:11:54 +01:00
Christian Weichel
bfa0fa519c [ws-proxy] Properly pass on 404 errors on port routes
Fixes gitpod-io/gitpod#2124
2020-11-05 13:17:56 +01:00
Christian Weichel
d63394882c [ws-proxy] Use default reverse proxy for websocket connections 2020-11-05 13:17:56 +01:00
Christian Weichel
3794dc8205 [ws-proxy] Consolidate workspace routes 2020-11-04 12:54:15 +01:00
Anton Kosyakov
f0c2b9faf9 [ws-proxy] enable loggin and disable compression for port locations
First is helpful, second is correct and enabled server side events.
2020-11-04 05:50:23 +01:00
Anton Kosyakov
2d854de1b9 [ws-proxy] use permament redirect to blobserve 2020-11-03 11:53:31 +01:00
Anton Kosyakov
6479901957 [supervisor] proxy Worker to allow redirects to blobserve 2020-11-03 11:53:31 +01:00
Anton Kosyakov
31a90eebd9 use fetch metadata to prevent redirect to blobserve when possible 2020-11-03 11:53:31 +01:00
Anton Kosyakov
6b2643ba02 fix #2093: don't redirect to blobserver if a req has query or fragment 2020-11-03 11:53:31 +01:00