192 Commits

Author SHA1 Message Date
Christian Weichel
337f8f3960
Bump golang.org/x/crypto (#20683)
* Bump golang.org/x/crypto

* Don't bump toolchain

* go mod tidy

* go mod tidy

* Fix proxy build
2025-03-21 06:49:50 -04:00
Kyle Brennan
58c9a1808a
[ws-manager-mk2] update to support k8s 0.30 API (#20580)
* [go components] Fixed "go test ./..." in various components

Tool: gitpod/catfood.gitpod.cloud

* [go components] Update k8s 0.29.3 -> 0.30.9 API

 - update the go-update-wc-deps.sh script to handle the brunt of that transition
 - fixes Maintenance- + Subscriber-Controller
 - document steps

Tool: gitpod/catfood.gitpod.cloud

* [ws-manager-mk2] Decide how to apply appamor config based on serverversion to support k8s 1.30+

Tool: gitpod/catfood.gitpod.cloud

* [gpctl] Missing go mod tidy

Tool: gitpod/catfood.gitpod.cloud

* Replace vulnerable outcaste-io/badger/v3 with original dgraph-io/badger/v3

Tool: gitpod/catfood.gitpod.cloud

* more go mod tidy

Tool: gitpod/catfood.gitpod.cloud

* [image-builder-bob, installer] Select the correct version of containerd....

Tool: gitpod/catfood.gitpod.cloud

---------

Co-authored-by: Gero Posmyk-Leinemann <gero@gitpod.io>
2025-02-07 03:58:22 -05:00
Filip Troníček
c24b8f4aed
Add optional, org-wide Gitpod commit annotation (#20525)
* [supervisor] Add Gitpod commit annotation

* server and API changes

* [dashboard] add org setting for commit annotation

* Fix things

* Fix label for annotation switch

* Revert accidental rename

* minor docs fixes

* Add a feature flag for the setting: `commit_annotation_setting_enabled`

* Register hook in the cloned repo instead of under /etc/

* don't override existing hooks

* `gp git-commit-message-helper` to use `git interpret-trailers`

* Test it!

* 🧹 indeed

* Update timestamp of DB migration
2025-01-24 08:11:14 -05:00
Gero Posmyk-Leinemann
5982621a05
[cli] ports-list: Increase timeout for establishing connection + receiving response to 5s -> 10s (#20424) 2024-12-05 05:48:12 -05:00
Filip Troníček
fc65cf1751
[server] increase getToken bucket size (#20398) 2024-11-28 04:51:05 -05:00
Filip Troníček
28942bd01b
Properly time out gp open (#20378)
* Properly time out `gp open`

* on the Edge of Sleep™
2024-11-18 14:09:56 -05:00
Filip Troníček
810f5e9a01
[WS CLI] Make env --scope=user compatible with GitLab groups (#20279)
* [WS CLI] Make `env --scope=user` compatible with GitLab groups

* Allow updating `*/*` scoped vars for backwards compat

* Fix test races
2024-10-22 13:39:52 -04:00
Filip Troníček
dae15292d4
Fix docs URLs (#20270) 2024-10-04 08:06:19 -04:00
Filip Troníček
1accbd9101
[Workspace CLI] better logs streaming for validate (#20238)
* [Workspace CLI] better logs streaming for `validate`

* add tests, handle `\b`
2024-09-24 10:52:10 -04:00
Gero Posmyk-Leinemann
192727f082
[gp] Add helpful message in case "gp env --scope=user" fails because of missing create permission (#20227)
* [gp] Add helpful message in case "gp env --scope=user" fails because of missing create permission

* Fix typo

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

* another typo

---------

Co-authored-by: Filip Troníček <filip@gitpod.io>
2024-09-17 07:59:03 -04:00
Gero Posmyk-Leinemann
93f81feb15
[gp] Introduce "gp user-info" showing userId and email (#20206)
* [gp] Introduce "gp user-info" showing userId and email

* [gp] gp user-info: Add --email
2024-09-12 04:36:57 -04:00
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