245 Commits

Author SHA1 Message Date
Pudong
81ff3d16e4
[ws-manager-mk2] redact log (#18906)
* update to logrusr v4

* Add DeepCopyStruct to scrubber

* use DeepCopyStruct to scrub log

* mark wrokspace.stauts.url redact
2023-10-16 13:48:23 +03:00
Manuel Alejandro de Brito Fontes
8ef82ff356
Update go modules to 1.21 (#18805) 2023-09-26 17:52:05 +03:00
Wouter Verlaek
6273cc36c4
Update containerd and buildkit (#18749)
* Update containerd and buildkit

* Fix build, update image-builder workspace to mk2
2023-09-21 13:39:00 +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
Kyle Brennan
36651922ef
[ws-daemon] error log clean-up (#18473)
* [ws-daemon] improve logging for `could not get connection drop stats`

* Don't log the workspace name, which could contain org/repo
* Log as a warning, this happens too often to be considered an error

* [common-go] improve `stopping file watch` logging
2023-08-14 13:34:40 +02:00
Anton Kosyakov
b3ae12f956
git real time (#18323) 2023-08-03 20:51: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
Wouter Verlaek
435e5dc58c
[test] IO Limits (#18127)
* WIP

* Test IO Limit
2023-07-04 22:26:21 +08:00
Manuel Alejandro de Brito Fontes
57c605ddc4
Cleanup scrubber go module dependency (#18149) 2023-07-04 16:37:21 +08:00
Anton Kosyakov
f580e6bd00
fix SID-285: hook scrubber as logrus formatter (#17781) 2023-06-29 17:16:47 +08:00
Gero Posmyk-Leinemann
33f1010cf6
[common-go] Re-try on ":0: bind: address already in use" during tests (#17933) 2023-06-19 17:29:10 +08:00
Milan Pavlik
9937cd864d
[go] Remove jwtSessions feature flag (#17867) 2023-06-08 15:29:58 +08:00
Huiwen
dd7d03ff85
Fix incorrect log level setup - IDE-127 (#17776)
* Fix incorrect log level setup

* revert changes in gp validate
2023-05-31 18:14:05 +08:00
Kyle Brennan
80ac25ca97
[workspace] update deps for gen98 (#17719)
* [docker-up] update docker compose to 2.18.1-gitpod.2

* [workspace] update containerd

From v1.6.20 -> v1.6.21

* [image-builder-bob] fix build error after containerd update

Context:
[components/image-builder-bob:app] level=error msg="Running error: 1 error occurred:\n\t* can't run linter goanalysis_metalinter: buildir: failed to load package tracetransform: could not load export data: no export data for \"go.opentelemetry.io/otel/exporters/otlp/otlptrace/internal/tracetransform\"\n\n"

* [preview] update VM image with fewer cached images

This will help us avoid pod eviction and improve stability

Related: https://github.com/gitpod-io/gitpod-packer-gcp-image/pull/235

* [test] more cowbell
2023-05-24 21:18:59 +08:00
Kyle Brennan
a2b320069e
[image-builder-bob] update buildkit (#17507)
* [common-go] only update if the version doesn't match

* [image-builder-bob] update buildkit

v0.11.4 -> v0.11.6
2023-05-12 00:03:56 +08:00
Milan Pavlik
c34e3107e6
[baseserver] Test port is 0 (#17459)
* [baseserver] Test port is 0

* Fix

* fix

* Fix
2023-05-03 14:19:42 +08:00
Alex Tugarev
3d9d889832
[common-go] add custom attribute "gitpod-host" (#17320)
https://github.com/gitpod-io/gitpod/pull/17303#discussion_r1173710700
2023-04-29 03:22:37 +08:00
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