614 Commits

Author SHA1 Message Date
Jean Pierre
e6bf79e5b7
Revert "Revert "Redirect on workspace stop" (#19323)" (#19325)
* Revert "Revert "Redirect on workspace stop" (#19323)"

This reverts commit 827a1a03127bd2ab24ce2503247a19b48326fca5.

* Fix

* Fix

* 💄
2024-01-18 01:06:56 +02:00
Sven Efftinge
827a1a0312
Revert "Redirect on workspace stop" (#19323) 2024-01-15 11:46:52 +02:00
Jean Pierre
10648e17f2
Redirect on workspace stop (#19314)
* Redirect to custom url when workspace stops

* Redirect to url when workspace stops

* Address feedback

* 💄

* 💄

* 💄

* 💄

* 💄
2024-01-12 16:33:49 +02:00
Manuel Alejandro de Brito Fontes
d3eb939dca
Update openssh to v9.6-P1 (#19282) 2023-12-19 12:23:26 +02:00
Manuel Alejandro de Brito Fontes
62ba5a8521
Update alpine to v3.19 (#19233)
* Update alpine to v3.19

* Update openssh to V_9_5_P1
2023-12-12 11:25:19 +02:00
Pudong
6d02689f65
[supervisor] always allow gitpod user ssh (#19182) 2023-12-02 06:34:09 +02:00
Pudong
10fe5b9699
[sshgateway] use ssh CA to auth (#19147)
* [sshgateway] use ssh CA to auth

* change name

* add error log

* fix

* mark volume optional

* [installer] validate ssh-ca secret

* Revert "[installer] validate ssh-ca secret"

This reverts commit ca6ede78a7b5a720fd315eca32eb277cb5063069.

We must support the scenario where the installer has the secret, but, it is not in the cluster yet.

---------

Co-authored-by: Kyle Brennan <kyle@gitpod.io>
2023-11-30 19:17:08 +02:00
Anton Kosyakov
2f14d7a2fe
decouple gitpod-protocol from public-api (#19151)
to prevent rebuilding of components which dependent on gitpod-protocol, but not public-api on an API change
2023-11-29 10:36:06 +02:00
Wouter Verlaek
185c0428c2
[scrubber] Improve KeyValue performance (#19052)
* [scrubber] Improve KeyValue performance

* Update benchmark comment

* update go mod

* Add metaID to hashed fields

---------

Co-authored-by: Pudong Zheng <pudong@gitpod.io>
2023-11-10 16:17:48 +02:00
Huiwen
a7bd49fb34
[supervisor] Remove default image fetch to improve IDE startup performance (#18993)
* [supervisor] Remove default image fetch to improve IDE startup performance

* fix build

* address feedback
2023-11-02 08:30:40 +02:00
Anton Kosyakov
aefaa86542
[supervisor] return missing user for ssh keys (#18977) 2023-10-27 14:10:34 +03:00
Huiwen
ad7ef3b892
[supervisor] increase default workspace image cache duration and do prefetch (#18951) 2023-10-19 09:46:27 +03:00
Huiwen
35d47fef6b
Fix incorrect start workspace url (#18934) 2023-10-17 14:43:25 +03:00
Anton Kosyakov
cf7d0e9500
remove supervisor_live_git_status (#18921)
and deprecated instance.status.repo
2023-10-16 17:20:24 +03:00
Jean Pierre
3b53a0ac4d
Update connect libraries (#18886)
* Update connect lib

* Update protoc-gen-connect-es

* Fix
2023-10-09 22:49:17 +03:00
Anton Kosyakov
cbc308305c
[ssh] flexible auth user (#18880) 2023-10-06 14:52:15 +03:00
Anton Kosyakov
40c39f5312
Revert "Relax assumptions in supervisor (#18782)" (#18857)
This reverts commit 9a38b607055780fa7b2cd61c1379143d6c7b3715.
2023-10-02 23:00:11 +03:00
Anton Kosyakov
777a9cb800
[supervisor] cache default workspace image (#18845) 2023-09-29 19:14:08 +03:00
Christian Weichel
9a38b60705
Relax assumptions in supervisor (#18782)
* [supervisor] Make UID/GID configurable

* Support content initializer as env var

* Make workspace runtime explicit

* Make linux user configurable for Git operations

* Don't assume /home/gitpod

* Fix unittest

* Fix wsdaemon
2023-09-27 17:32:06 +03:00
Manuel Alejandro de Brito Fontes
8ef82ff356
Update go modules to 1.21 (#18805) 2023-09-26 17:52:05 +03:00
Anton Kosyakov
2565a1c5b8
[supervisor] add ssh tunnel metrics (#18795) 2023-09-25 23:30:04 +03:00
Anton Kosyakov
34443431b1
add ws client metrics (#18773) 2023-09-22 16:56:01 +02:00
Huiwen
bee03a113e
[supervisor] fix panic with runGP option (#18777)
* [supervisor] fix panic with runGP option

* Check if `s` is nil to avoid adding guards outside
2023-09-22 15:24:01 +02:00
Huiwen
62c573a453
Add default image get to PAPI and improve Dashboard (#18767)
* [server] update getDefaultWorkspaceImage api

* [dashboard] api usage update

* [protocol] add go definition

* [papi] add getDefaultWorkspaceImage method

* fixup

* [dashboard] add org image warning to start workspace page

* fix error wrap

* Update supervisor to use publicApi

* [dashboard] always show default image and remove tag width limit

* fixup

* move new warning to StartPage

* Update components/dashboard/src/teams/TeamSettings.tsx

Co-authored-by: George Tsiolis <tsiolis.g@gmail.com>

* Address feedback

---------

Co-authored-by: George Tsiolis <tsiolis.g@gmail.com>
2023-09-22 11:58:01 +02:00
Huiwen
04e576fbe0
Add default workspace image to org setting (#18723)
* Add default workspace image to org setting

* [db] add migration

* fixup

* [dashboard] add org default image settings

* fixup

* dashboard fixup

* Add server image test TODO

* [server] assign global workspace default image

* [dashboard] allow to submit empty string (will fallback to global default)

* [gp-cli] support gp validate with default image

* [dashboard] save default image

* fixup

* fixup

* [gp-cli] improve output

* [gp-cli] improve gp init

* [gp-cli] gp validate compatibility

* Update components/dashboard/src/teams/TeamSettings.tsx

Co-authored-by: Filip Troníček <filip@gitpod.io>

* Remove org id / get org settings in supervisor

* Remove `WorkspaceConfigContext`

* Add unit tests

* Rename to `DefaultWorkspaceImage`

* Update components/dashboard/src/teams/TeamSettings.tsx

Co-authored-by: George Tsiolis <tsiolis.g@gmail.com>

* Add empty image fallback to supervisor

* Fix default workspace image setup

* Update org settings fields

* fixup

* Allow empty image to set to default one

---------

Co-authored-by: Filip Troníček <filip@gitpod.io>
Co-authored-by: George Tsiolis <tsiolis.g@gmail.com>
2023-09-19 14:51:58 +02:00
Manuel Alejandro de Brito Fontes
08f37c5c3e
Do not log if the connection was closed abnormally (#18665) 2023-09-06 10:10:03 +02:00
Sven Efftinge
af35dbfe9b
Fix gitstatus updates (#18613) 2023-08-30 10:26:56 +02:00
Alex Tugarev
c7e492b6ef
update node to 18.17.1 (#18525)
* update node to 18.17.1

* use new dev image

* fix webpack in supervisor-frontend

* bump webpack to 5.88.2 in dashboard

* streamline webpack versions

* Fix craco config

* streamline eslint versions

* Update eslint config and disable for now

* Enable eslint again

* Update vscode-jsonrpc for browser implementation

* Polyfill setimmeadiate

* Remove NODE_OPTIONS env var from supervisor front end scripts

* Fix css

* Fix css 2

* Fix checkboxchecked

* Add comment

* Fix yarn.lock

---------

Co-authored-by: Jean Pierre <jeanp413@hotmail.com>
2023-08-24 13:41:50 +02:00
Jean Pierre
e22f6bee12
Update to webpack 5 in supervisor frontend (#18552)
* Update to webpack 5 in supervisor frontend

* Fix

* Fix
2023-08-22 16:53:48 +02:00
Manuel Alejandro de Brito Fontes
513ca768f6
Update buildkit to v0.12.1 (#18505)
* Update buildkit to v0.12.1

* Update DisplaySolveStatus signature

* Switch to github.com/containerd/typeurl/v2
2023-08-15 09:17:40 +02:00
Manuel Alejandro de Brito Fontes
d6ccb0d3e5
Update OpenSSH to v9.3p2 (#18353) 2023-08-08 08:53:33 +02:00
Anton Kosyakov
b3ae12f956
git real time (#18323) 2023-08-03 20:51:28 +08:00
Anton Kosyakov
8f85d82009
[supervisor] expose control service over REST (#18411)
* [supervisor] expose control service over REST

* [supervisor] expose host key on create key pair

to let clients to do fingerpring checking
2023-08-02 23:01:28 +08:00
Manuel Alejandro de Brito Fontes
61f89f8436
Update go modules (#18372) 2023-07-28 16:20:30 +08:00
Manuel Alejandro de Brito Fontes
8c6d8e28f3
Update dependencies (#18362)
* Update k8s dependencies to v1.27.3

* Update opencontainers/runtime-spec to v1.1.0

* Update controller runtime to v0.15.0

* Update go modules

* Fix build

* Cleanup

* Fix ws-manager e2e tests
2023-07-27 23:34:29 +08:00
Manuel Alejandro de Brito Fontes
54c2040632
Update go modules to 1.20 (#18360) 2023-07-27 22:24:29 +08:00
Anton Kosyakov
d4592d44d4
fix EXP-19: allow access to supervisor logs within a workspace (#18322) 2023-07-20 22:33:36 +08:00
Jean Pierre
5b0541a9bc
Add more tunnel ssh loggging (#18286) 2023-07-18 14:37:34 +08:00
Pudong
9bb400b0e8
[supervisor] improve docker activation (#18284)
* Revert "Revert "[supervisor] improve docker activation (#18143)" (#18236)"

This reverts commit 9b21205074aff9fb4474354195e77b8827fdf7aa.

* only start docker activation if content is ready
2023-07-17 17:11:33 +08:00
Huiwen
d6f2245b8a
[supervisor] correct CreateSSHKeyPair error code (#18257)
* [supervisor] correct CreateSSHKeyPair error code

* 💄
2023-07-12 17:45:29 +08:00
Filip Troníček
9b21205074
Revert "[supervisor] improve docker activation (#18143)" (#18236)
This reverts commit 0f9d3192fbba4922d122fefd4d6e070f56efb551.
2023-07-11 20:29:28 +08:00
Anton Kosyakov
0f9d3192fb
[supervisor] improve docker activation (#18143)
* [supervisor] fix leaking docker sockets

* [supervisor] remote outcome for gitpod_activate_docker

* [supervisor] don't log expected docker activation socket errors

* [supervisor] add max retries on exit code errors

* only notification if not in headless and logFile successful created

* move retry logic to listener

* change max retry attempts

* ignore canceled error

* add sleep

---------

Co-authored-by: Pudong Zheng <tianshi8650@gmail.com>
2023-07-11 17:50:28 +08:00
Manuel Alejandro de Brito Fontes
57c605ddc4
Cleanup scrubber go module dependency (#18149) 2023-07-04 16:37:21 +08:00
Anton Kosyakov
dcaa6da5d1
validate: run IDE prebuild only in headless workspace (#18120)
in order to avoid race between IDE and prebuild
2023-07-03 19:21:20 +08:00
Manuel Alejandro de Brito Fontes
e2c416c442
Fix build error undefined: scrubber.TrustedValue (#18134) 2023-07-03 16:45:20 +08:00
Anton Kosyakov
fdb7e5ea16
validate jb warmup (#18050)
* [jb] move warmup tasks to integration

* move composition of ide prebuild tasks in supervisor
2023-06-30 14:51:48 +08:00
Anton Kosyakov
f580e6bd00
fix SID-285: hook scrubber as logrus formatter (#17781) 2023-06-29 17:16:47 +08:00
Jean Pierre
669d149d0a
Fix properly close ssh tunnel websocket connection (#18042) 2023-06-26 14:41:16 +08:00
AXON
7045e1d02b
Use a script for BROWSER variable (#17926)
* Use a script for BROWSER variable

* Revert "Use a script for BROWSER variable"

This reverts commit b72bb6c8d58b52c1d8c21917f12aeded4c0f5ce4.

* Use dockerfile instead

* Use /bin/sh and add browser.sh to leeway
2023-06-14 03:56:04 +08:00
Thomas Schubart
2cab1406dd
[ws-manager-mk2] Remove persistent volume claim feature (#17860)
* [ws-daemon] Remove PVC

* [installer] Remove PVC

* [workspacekit] Remove PVC

* [content] Remove PVC

* [preview] Remove PVC

* [wsman-api] Remove PVC

* [ws-daemon-api] Remove PVC

* [workspacekit] Mount workspace directory

* [supervisor] Remove PVC

* [test] Remove PVC

* Fix build
2023-06-13 18:35:04 +08:00