352 Commits

Author SHA1 Message Date
Christian Weichel
d940209ffd [go.mod] Run leeway link to clean up go replace 2021-02-01 15:22:53 +01:00
Cornelius A. Ludmann
ab4c6f5a7b Fix go.mod links with leeway link 2021-02-01 13:07:43 +00:00
Sven Efftinge
b897e6777f Generate better workspace ids 2021-01-26 18:03:25 +01:00
Christian Weichel
396b51ed1f [ws-proxy] Don't leak workspace info Go routines 2021-01-19 10:45:57 +01:00
Christian Weichel
72a120e0c8 Update Kubernetes client-go to v1.20.1
Fixes gitpod-io/gitpod#2689
2021-01-11 15:25:05 +01:00
Gero Posmyk-Leinemann
fe3a018ea4
[self-hosted] Fix various issues around blobserve+ path based workspace access (#2666)
* [theia] Load main.js relative to support path based ws access

* [ws-proxy] Fix pathBasedTheiaRouter: workspaceID parsing

* [ide] Fix workspaceID reading/parsing issues

* [docs] self-hosted: Minor fixes

* [chart] values.yaml: remove forceHTTPS

* [review] Feedback
2021-01-05 15:49:57 +01:00
Christian Weichel
b7dda84ad0 [license] Update license header from TypeFox GmbH to Gitpod GmbH 2021-01-04 15:12:02 +01:00
Gero Posmyk-Leinemann
52d9851faf [ws-proxy] Fix workspaceHostSuffix for nodomain,pathAndHost 2020-12-23 20:55:45 +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
Anton Kosyakov
f53f2fbb35 [proxy] mini browser host pattern 2020-12-09 14:50:45 +01:00
Christian Weichel
99dbdff7c9 [ws-proxy] Add missing license header
/werft no-preview
2020-12-01 10:18:07 +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
Gero Posmyk-Leinemann
24b559760e [ws-proxy] Allow multiple responseHandlers 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
Christian Weichel
b9bae3290a [ws-proxy] go mod tidy 2020-11-11 11:39:50 +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
Christian Weichel
a54b556e2e [ws-proxy] Respect error handler during target resolution 2020-11-04 12:54:15 +01:00
Anton Kosyakov
966c8e8340 bump up code to use latest ports APIs 2020-11-04 05:50:23 +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
Christian Weichel
75558809c7 [go] go mod tidy in all components 2020-10-19 07:46:04 +02:00
Anton Kosyakov
70d2aa85fe fix #1984: blobserve caching across workspaces 2020-10-14 15:51:26 +02:00
Christian Weichel
285edb4c7b [go] go mod tidy all components 2020-10-13 11:10:53 +02:00
Anton Kosyakov
d8f3229b0a integrate supervisor into code 2020-10-12 13:00:29 +02:00
Anton Kosyakov
1a1730847c support integration of the supervisor frontend into the IDE top window 2020-10-10 14:09:04 +02:00
Christian Weichel
7ba1ed6fbc [ws-proxy] Don't fail on workspace log output
Fixes gitpod-io/gitpod#1938
2020-10-05 09:33:47 +02:00
Christian Weichel
164fc5e9f5 [ws-proxy] Properly handle supervisor proxy-pass errors 2020-10-05 09:33:11 +02:00
Cornelius A. Ludmann
c82a29044f [ws-proxy] Add authentication to port routes
to support privately exposed ports. The AuthHandler did support ports
before, but it wasn't used.
2020-10-04 08:54:19 +02:00
Anton Kosyakov
7fc7fbd828 [supervisor/frontend] support loading screen 2020-09-14 10:01:00 +02:00
Anton Kosyakov
da278d55ba [ide/code] initial image
Signed-off-by: Anton Kosyakov <anton.kosyakov@typefox.io>
2020-09-14 10:01:00 +02:00
Christian Weichel
0b05b751d0 [ws-proxy] Serve supervisor's frontend on /_supervisor/frontend 2020-09-08 12:24:48 +02:00
Christian Weichel
c71bf99c7c [ws-proxy] Add supervisor IDE host routing 2020-09-08 12:24:48 +02:00
Christian Weichel
372a3610be [supervisor] Move from /api to /_supervisor 2020-09-07 09:50:32 +02:00
Christian Weichel
9ca988e67b [ws-proxy] Support supervisor API in ws-proxy 2020-09-07 09:50:32 +02:00
Christian Weichel
6cb7b610d2 [ws-proxy] Proxy pass static IDE assets from registry-facade's blobserve
/werft https
/werft ws-feature-flags=registry_facade
2020-09-04 14:12:06 +02:00
Christian Weichel
3a84d35b36 [ws-manager] Report IDE image as part of the workspace spec
Note: this change is not backwards compatible as it makes incompatible
changes to the protocol.
2020-09-04 14:12:06 +02:00
Christian Weichel
412f2b14f7 [ws-proxy] Rename workspaceInfo.ID to workspaceID
in analogy to `instanceID`.
2020-09-04 14:12:06 +02:00