181 Commits

Author SHA1 Message Date
Gero Posmyk-Leinemann
d3eccd0169
[gp] Allow update of existing user-scoped env vars (#20193)
* [gp, protocol, server] Remove references to long-deprecated "getEnvVars" API method

* [gp, server] Allow users to update user-scopes env vars
2024-09-11 02:57:56 -04:00
mustard
cee438b2e2
[GP-CLI] fix gp preview not outputting stderr and stdout properly (#20166)
* [GP-CLI] fix `gp preview` not outputting stderr and stdout properly

* remove stdout pipe
2024-09-02 08:52:45 -04:00
Pudong
5661c6e701
[gp validate] using gitpod/workspace-full:latest as default image (#20155) 2024-08-28 05:26:41 -04:00
Filip Troníček
a4c1a319cf
Implement gp tasks stop --force-success (#20067)
* Implement `gp tasks stop --force-success`

* Fix potential race
2024-07-26 22:21:48 +02:00
Aminur Rahman
a4c4c57bc7
Update cmd name example in gp timeout set (#19965) 2024-06-24 13:53:19 +02:00
Huiwen
3ba3118be6
[GP-CLI] fix incorrect pre-configured workspace image for enterprise (#19811)
* [GP-CLI] fix incorrect pre-configured workspace image for enterprise

* fixup
2024-05-30 19:14:11 +08:00
Huiwen
5ff4535ac5
Add scope flag to idp commands (#19727)
* Add `scope` flag to idp commands

* fix flag inherit
2024-05-15 16:27:53 +08:00
Manuel Alejandro de Brito Fontes
d8b82435b0
Update go-redis to v9.5.1 (#19663)
* Allow reconnection to kick-in

* Update go-redis to v9.5.1

* Fix wait condition
2024-04-26 17:03:04 +02:00
Pudong
6c7544ebca
[idp] improve idp (#19647)
* [idp] add repository claim

* [idp] add missing `use` field for key cache

* [idp] simplify logic for `idp token --decode` command

* [idp] add `gcloud-token` command

* Apply suggestions from code review

Co-authored-by: Huiwen <mhqnwt@gmail.com>

---------

Co-authored-by: Huiwen <mhqnwt@gmail.com>
2024-04-23 09:59:01 +02:00
Manuel Alejandro de Brito Fontes
5992b0f614
Update go dependencies (#19577)
* Update go dependencies

* Update S3

* Caddy plugins cannot use 1.22

* Update controller runtime signatures

* Update webhook suite test

* Update IPFS signatures

* Update go modules

* Update ipfs-cluster to v1.0.8

* Fix node-labeler build

* Fix IPFS CID parsing

* Update ipfs-cluster version

* Update controller-runtime signature

* Update statefulset signature

* Disable controller-runtime metrics

* Add comments
2024-03-26 20:55:35 +01:00
Milan Pavlik
f0c8a858c9
[baseserver] Emit metrics for logs produced by level ENG-349 (#19063)
* [baseserver] Emit metrics for logs produced by level

* fix

* fix

* fix

* fix

* Fix

* Fix

* fix

* retest

* fix
2023-11-21 12:26:58 +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
Pudong
53635199e9
Allow customize aws and vault audience (#18840) 2023-10-10 11:38:18 +03:00
Manuel Alejandro de Brito Fontes
8ef82ff356
Update go modules to 1.21 (#18805) 2023-09-26 17:52:05 +03:00
Milan Pavlik
fff69c97bc
[cli] Support gp idp login aws --duration-seconds (#18797) 2023-09-26 10:09:05 +03:00
Siddhant Khare
8d2c8d86c2
[CLI] --decode flag to decode IDP token to JSON (#18750)
* [CLI] `--decode` flag to decode IDP token to JSON

* Marhsal into a map into a proper JSON output
2023-09-20 17:20:59 +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
Christian Weichel
205e6fc9b4
Improve gp idp login aws (#18601)
* [idp aws login] Make AWS profile configurable

* Use workspaceID as session name
2023-08-25 17:01:51 +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
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
AXON
c747c1e933
Use WORKSPACE_CLUSTER_HOST for gp ssh output (#18289)
* Use WORKSPACE_CLUSTER_HOST for `gp ssh` output

* Update ssh.go
2023-07-17 22:42:34 +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
Filip Troníček
de62cdc802
Show gp idp in the CLI help menu (#18115)
* Show `gp idp` in the CLI help menu

* Fix description

* leeway link
2023-06-30 17:31:48 +08:00
Anton Kosyakov
f580e6bd00
fix SID-285: hook scrubber as logrus formatter (#17781) 2023-06-29 17:16:47 +08:00
Filip Troníček
673ac4d946
gp ssh (#17998)
* Add `gp ssh`

* Implement non-working owner token retrieval

* `--access-token`

* Remove access token method

* update help text

* Format errors

* Enhance help command

* Remove unused import

* Unnecessary variable

* Add todo
2023-06-22 16:30:12 +08:00
Pudong
91f4a5ae49
[gp-cli] respect exit-code when received SIGNAL (#17966) 2023-06-20 22:09:10 +08:00
Anton Kosyakov
9f975671d0
fix IDE-130: report gp env arg parsing errors as user errors (#17780) 2023-05-31 14:58:05 +08:00
Pudong
c1e80f5f8d
Support forward https protocol port (#16547)
* introduce this feature to user

* use tcp proxy
2023-05-31 14:41:05 +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
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
Milan Pavlik
f4babd37a7
[usage] Implement charge dispute handling - WEB-94 (#17039)
* [usage] Implement charge dispute handling

* fix

* fix

* tests

* Fix

* Fix

* fix

* fix

* fix
2023-04-11 15:55:51 +02:00
Milan Pavlik
27083dfab1
Upgrade to connect-go 1.5.2 (#17108)
* Upgrade to connect-go 1.5.2

* fix
2023-03-31 13:09:40 +02:00
Anton Kosyakov
8e9f2c0ff9
[rebuild] support desktop IDEs (#16818)
* [rebuild] support desktop IDEs

* ensure target is exist

---------

Co-authored-by: Pudong <tianshi8650@gmail.com>
2023-03-17 15:00:10 +01:00
Pudong
c0d6fa978d
[gitpod-cli] change gp rebuild to gp validate (#16867)
* [gitpod-cli] change `gp rebuild` to `gp validate`

* fix `await-port` and `forward-port` command backward compatible

* Change the reference to `gp rebuild`

* update `gitpod-web` extension ref 3b076b9103
2023-03-17 06:51:08 +01:00
Anton Kosyakov
f260c31439
[rebuild] decoule IDE env vars from registry-facade (#16812)
by moving in supervisor-ide-config.json
2023-03-13 13:24:48 +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
Anton Kosyakov
b9f2657c3e
[gp] track git event with instanceId (#16693)
instead of workspaceInstanceId to allow cross events matching in Mixpanel
2023-03-06 22:05:04 +01:00
Christian Weichel
da4cafd5e5
Gitpod OIDC Identity Provider (#16482)
* Prototype IDP provider

* [gp cli] Add IDP commands

* [public-api] Remove zitadel based IDP implementation

* [gitpod-cli] Add IDP support for Vault

* [idp] Remove per-org IDP

* [idp] Add key cache and random key IDs

* [idp] Defer GetIDToken authorisation to server

* [idp] Add Redis public key cache

* [gitpod-cli] Hide IDP commands

* [idp] Add key ID to JWT

* [idp] Add unit tests

* [idp] Adress review comments

* [public-api-server] Use logging middleware globally

* [public-api-server] Simplify service registration

* [idp] Add Redis outage resilience
2023-03-03 17:11:01 +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
Pudong
884a177f4d
[inner-loop] run Isolated docker in debug workspace (#16363) 2023-02-25 04:32:54 +01:00
Anton Kosyakov
ad26ca1a57
[rebuild] fix 16535: auto manage windows (#16561) 2023-02-24 15:52:54 +01:00
Anton Kosyakov
f0d1d1f1ad
[supervisor] analyze image file changes (#16513) 2023-02-24 15:19:54 +01:00
Huiwen
2877b3b1fa
[gp-cli] fix gp init panic (#16550) 2023-02-24 09:58:54 +01:00
Anton Kosyakov
4a37a26b04
[rebuild] remove notion of debug workspace from output (#16533) 2023-02-23 14:40:53 +01:00
Anton Kosyakov
626d05722f [rebuild] consume workspace env var as is
gp env changes values a bit to satisfy eval, instead of using it rebuild directly applies values returned by a server
2023-02-22 15:01:52 +01:00
Anton Kosyakov
44f60692d0 [rebuild] map workspace location properly 2023-02-21 16:33:51 +01:00