210 Commits

Author SHA1 Message Date
Kyle Brennan
5e53e426da [common-go] convenience script to manage workspace-cluster dependencies 2023-02-20 14:38:50 +01:00
Wouter Verlaek
65d5cb2d88 [ws-manager-mk2] Cleanup EverReady condition 2023-02-14 11:28:19 +01:00
Wouter Verlaek
810e17508d [ws-manager-mk2] Extract ctrl utils to common-go 2023-02-07 11:19:45 +01:00
Huiwen
12ed1367f4 Reuse the same workspace patterns 2023-02-07 09:43:45 +01:00
Huiwen
3e23290d6d Make sure workspaceId regexp is equal to ws-proxy 2023-02-01 21:17:39 +01:00
Christian Weichel
572fcbb008 [ws-daemon] Start workspace controller based content init 2023-01-23 14:14:30 +01:00
Andrew Farries
243207eb85 Clear GITPOD_HOST env var before test
This test fails when run (via `go test`) from a gitpod workspace because
gitpod workspaces have the `GITPOD_HOST` env var set, causing the
`NewClient` call to return a `ConfigCatClient` rather than a
`alwaysReturningDefaultValueClient` struct.

Clear the env var before the test runs to avoid this.
2023-01-09 14:31:48 +01:00
Siddhant Khare
a8540bedf6 enhanced regex & added more tests 2023-01-02 13:34:42 +01:00
Siddhant Khare
3147a2d3f2 test: edge cases of workspaceID 2023-01-02 13:34:42 +01:00
Siddhant Khare
b2ff5aa700 fix: regex of workspace ID validator
Signed-off-by: Siddhant Khare <siddhant@gitpod.io>
2023-01-02 13:34:42 +01:00
Milan Pavlik
874a6b5511 [public-api] Validate Workspace ID is a UUID 2022-12-20 13:34:29 -03:00
Andrea Falzetti
50caba2cda add run-gp layer to certain users
Co-authored-by: Anton Kosyakov <anton@gitpod.io>
Co-authored-by: Victor Nogueira <victor@gitpod.io>
2022-12-20 09:22:29 -03:00
Milan Pavlik
84f5b2d04d Revert "[configcat] Stop logging info messages"
This reverts commit fbac9a213f6406a704d669245c0fb892a1e6cb16.
2022-12-14 07:20:23 -03:00
Milan Pavlik
fbac9a213f [configcat] Stop logging info messages 2022-12-14 00:27:23 -03:00
mustard
f4ea3a56a1 Revert "Revert "[supervisor] use public api in supervisor""
This reverts commit 44dfc5e19be3b89d96ab25f2f83476d57aa7b8ef.
2022-12-12 09:05:22 -03:00
Huiwen
44dfc5e19b Revert "[supervisor] use public api in supervisor"
This reverts commit f3fcfbf003425f947bf3a0a28e452709623b6d74.
2022-12-09 08:21:19 -03:00
mustard
f3fcfbf003 [supervisor] use public api in supervisor
Co-authored-by: mustard <mhqnwt@gmail.com>
Co-authored-by: Anton Kosyakov <anton@gitpod.io>
Co-authored-by: Jean Pierre <jeanp413@hotmail.com>
Co-authored-by: iQQBot <tianshi8650@gmail.com>
2022-12-08 17:48:18 -03:00
Christian Weichel
478a75e744 Switch license to AGPL 2022-12-08 13:05:19 -03:00
Milan Pavlik
114a3bd1b4 [oidc] Add stub RPCs 2022-12-07 05:05:17 -03:00
Milan Pavlik
00c77a9d85 [configcat] Log at error level only in Golang client 2022-11-30 13:16:59 -03:00
Pudong Zheng
0d08d0b9b3 [common] Improve log time accuracy 2022-11-29 05:12:58 -03:00
Milan Pavlik
265f6f8746 [configcat] Set UserID as a custom attribute on configcat user data 2022-11-23 05:09:53 -03:00
Laurie T. Malau
ee08e7863c [db] Move db models to gitpod-db/go module 2022-11-21 08:37:50 -03:00
Jan Keromnes
e97e8e91b4 [usage] Address nits from https://github.com/gitpod-io/gitpod/pull/14485 2022-11-16 13:29:45 +02:00
Milan Pavlik
e4daab98a4 [common-go] Move base database connection & types to common-go 2022-11-16 10:59:45 +02:00
Milan Pavlik
d9bd0bf619 [public-api] Add test for CreateToken when feature flag enabled 2022-11-15 17:25:45 +02:00
Milan Pavlik
bc3efb28bd [common-go] Add experiments test client 2022-11-15 15:29:45 +02:00
Laurie T. Malau
98e6fe730c [public api] Use tokens feature flag 2022-11-15 14:36:45 +02:00
Pudong Zheng
a4ffeb8cb5 [openvsx-proxy] support dynamic upstream url 2022-11-14 13:18:44 +02:00
Manuel Alejandro de Brito Fontes
4a13cd940c Adjust livenessProbe timeouts 2022-10-28 08:24:02 +02:00
Thomas Schubart
5f56949463 [ws-daemon] Scrape psi conditionally 2022-10-21 10:42:36 +02:00
Thomas Schubart
b75f878e29 [psi] Add comment and clean up test files 2022-10-21 10:42:36 +02:00
Thomas Schubart
785193ef65 [common-go] Add test for reading psi values 2022-10-21 10:42:36 +02:00
Thomas Schubart
cf257cfe9c [common-go] Change cgroup package name 2022-10-21 10:42:36 +02:00
Thomas Schubart
183ec3cae3 [ws-daemon] Plugin for PSI metrics 2022-10-21 10:42:36 +02:00
Thomas Schubart
3018a7619b [common-go] Support reading of PSI metrics 2022-10-21 10:42:36 +02:00
utam0k
d46531d51c log: Add a test case for redact. 2022-10-21 03:47:36 +02:00
Sven Efftinge
fef62f3e9e [supervisor] shutdown processes gracefully 2022-10-07 13:09:22 +02:00
Manuel Alejandro de Brito Fontes
d5eb5815b5 Update to 1.19 2022-10-04 15:17:22 +02:00
Manuel Alejandro de Brito Fontes
3f6cbd07f1 Update go dependencies 2022-10-04 15:17:22 +02:00
Christian Weichel
174a09222f Revert "Run go work sync"
This reverts commit 6b23167e09f74062b31150d4044a8fe7cacbc34b.
2022-09-29 05:28:29 +02:00
ArthurSens
b50ebe734e common-go: Add code line to all emitted logs
Signed-off-by: ArthurSens <arthursens2005@gmail.com>
2022-09-28 23:37:29 +02:00
Christian Weichel
6b23167e09 Run go work sync 2022-09-28 08:45:28 +02:00
Anton Kosyakov
8af104c2c4 [baseserver] do not log error when the server successfully closes 2022-09-26 14:14:27 +02:00
Milan Pavlik
6f461f5714 [baseserver] Track metrics for HTTP requests automatically 2022-09-20 09:05:21 +02:00
JenTing Hsiao
13cccd8324 Force all the values redacted once one of the values matches redact fields
Signed-off-by: JenTing Hsiao <hsiaoairplane@gmail.com>
2022-09-17 04:09:17 +02:00
Milan Pavlik
42224aeee9 [baseserver] Add metric with version of the server, use in public api and usage 2022-09-16 14:20:17 +02:00
JenTing Hsiao
cd0247a7ce Redact the rest values once the previous one matches redact fields
Signed-off-by: JenTing Hsiao <hsiaoairplane@gmail.com>
2022-09-15 11:37:16 +02:00
Sven Efftinge
8b8ffda181 [grpc] log stack on panic 2022-09-07 12:10:22 +02:00
Thomas Schubart
2d7e29c9e2 [ws-daemon] Include time unit and use struct for map 2022-08-24 14:14:40 +02:00