226 Commits

Author SHA1 Message Date
Milan Pavlik
0dc46c5bcc
[public-api] Measure incoming JWT Sessions - WEB-102 (#17345)
* retest

* retest

* [installer] Add cookie name to config

* Fix

* retest

* [installer] Add cookie name to config

* [public-api] Measure incoming JWT Sessions

* fix

* Fix

* Fix

* fix

* retest
2023-04-24 21:34:45 +08:00
Manuel Alejandro de Brito Fontes
891cd5417d
Update k8s dependencies to v0.26.2 (#17211)
* Update k8s dependencies to v0.26.2

* Update controller-runtime to v0.14.6

* Update cloud storage
 https://github.com/googleapis/google-cloud-go/issues/6857

* Update copy options

* Update wolfi image

* Remove controller-runtime replace directives

* Fix integration tests
2023-04-18 03:59:49 +08:00
Anton Kosyakov
bf65f38734
[proxy] add analytics endpoint 2023-04-17 10:28:19 +02:00
Kyle Brennan
8e0646a9d4
[go deps] update to containerd 1.6.20 (#17193) 2023-04-13 20:39:53 +02:00
Manuel Alejandro de Brito Fontes
27979c9395
Update go dependencies (#17101)
* Update go dependencies

Signed-off-by: Manuel de Brito Fontes <aledbf@gmail.com>

* Update runc to v1.1.5

* Update docker cli to v23.0.2+incompatible

---------

Signed-off-by: Manuel de Brito Fontes <aledbf@gmail.com>
2023-04-12 10:03:52 +02:00
Pudong
8ad7b34104
[common-go] force set configcat log level to error (#17067) 2023-03-29 15:39:39 +02:00
Wouter Verlaek
4e3051d673
[common-go] Rate limiting on booleans and composite keys (#17026)
* [common-go] Rate limiting on booleans and composite keys

* Optimize FieldAccessKey
2023-03-28 13:48:25 +02:00
Pudong
b465d06617
Uniformly use proxy to get the configuration of configcat (#16942)
* Uniformly use proxy to get the configuration of configcat

* Add configcat enabled in workspace info api

* enabled configcat in ide-service
2023-03-23 11:01:15 +01:00
Wouter Verlaek
e01ca57b69
[common-go] Add doc on refillInterval (#16973) 2023-03-22 21:49:14 +01:00
Milan Pavlik
50e09cce76
[experiments] Add fields to logcontext (#16841)
* Fix

* Fix

* Fix

* Fix

* Fix

* [public-api] Use context logger

* fix

* Fix

* fix

* Fix

* fix

* fix

* fix

* [experiments] Add fields to logcontext

* fix
2023-03-21 09:23:13 +01:00
Wouter Verlaek
5cf9fca421
[common-go] Support rate limiting by enum key (#16899) 2023-03-17 15:26:10 +01:00
Manuel Alejandro de Brito Fontes
95feb1a6bf
Remove cgroups v1 from commons-go (#16859)
* Remove cgroups v1 from commons-go

Signed-off-by: Manuel de Brito Fontes <aledbf@gmail.com>

* Remove cgroups v1 references

Signed-off-by: Manuel de Brito Fontes <aledbf@gmail.com>

---------

Signed-off-by: Manuel de Brito Fontes <aledbf@gmail.com>
2023-03-17 15:25:10 +01:00
Milan Pavlik
59e58f96c1
[common-go] Composable log fields (#16860)
* [common-go] Composable log fields

* add test for compose

* use in public api

* fix

* fix
2023-03-16 20:57:08 +01:00
Milan Pavlik
13b3b013b6
[logging] Enable storing/extracing of logger from context (#16658)
* [logging] Enable storing/extracing of logger from context

* Fix

* Fix

* Fix

* Fix

* Fix

* Fix
2023-03-09 10:27:45 +01:00
Kyle Brennan
008bc832ea
[image-builder-bob] update to buildkit 0.11.4 (#16716)
https://github.com/moby/buildkit/releases/tag/v0.11.4
2023-03-08 14:15:05 +01:00
Milan Pavlik
e4e05143e2
[baseserver] Initialize tracer with server (#16586)
* [baseserver] Initialize tracer with server

* fix

* Fix

* fix
2023-03-03 14:57:01 +01:00
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