278 Commits

Author SHA1 Message Date
Brad Harris
adf4e66cf6
Add CreateAndStartWorkspace to public-api (#18515)
* setting up CreateAndStartWorkspace handler

* adjust args

* adding createWorkspace scope for desktop app

* add getToken scope to desktop app oauth client

* remove for now

* adding region

* adding getToken while in here
2023-08-23 16:06:49 +02:00
Filip Troníček
112eefcc56
[papi] List editor options (#18530)
* options.init

* Respond with options

* Move to editor service

* Unused imports

* Mount ot the correct service

* Sort by orderkey

* Simplify enum name

* Add tests

* Options -> `result` for consistency

* fix result field
2023-08-18 11:19:44 +02:00
Robo Quat
28d7935862
update index (#18544)
Co-authored-by: roboquat <roboquat@users.noreply.github.com>
2023-08-18 08:57:43 +02:00
Filip Troníček
614007dde5
[papi]: Add GetSuggestedRepoURLs (#18514)
* [papi]: Add `GetSuggestedRepos`

* Rename method

* req to be consistent

* Move to SCMService

* Remove usr impl

* Add tests

* Revert billing test change

* Revert user changes

* --
2023-08-15 13:55:41 +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
Robo Quat
6292b66b06
update index (#18434)
Co-authored-by: roboquat <roboquat@users.noreply.github.com>
2023-08-05 13:15:31 +08:00
Robo Quat
60cea25d6b
update index (#18422)
Co-authored-by: roboquat <roboquat@users.noreply.github.com>
2023-08-03 21:29:29 +08:00
Anton Kosyakov
b3ae12f956
git real time (#18323) 2023-08-03 20:51:28 +08:00
Filip Troníček
c5059f2dc3
Filter by organizationId in ListWorkspaces (#18402)
Remove `IncludeWithoutProject`
2023-08-02 05:20:27 +08:00
Robo Quat
5a7b3467f3
update index (#18396)
Co-authored-by: roboquat <roboquat@users.noreply.github.com>
2023-08-01 19:06:26 +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
Milan Pavlik
ff4876856c
[server, papi] Track login completed metrics by outcome, type (#18254)
Co-authored-by: geropl <gero@gitpod.io>
2023-07-27 20:29:28 +08:00
Robo Quat
72d59cb859
update index (#18352)
Co-authored-by: roboquat <roboquat@users.noreply.github.com>
2023-07-27 15:13:28 +08:00
Filip Troníček
d9f8a099ed
Add Repository to WS info in Public API (#18330)
* Add more Git details to Public API

* Only add `Repository`

* Remove remaining branch references

* Update workspace tests

* Remove additional unneeded metadata

* Swap arg order to match proto
2023-07-26 16:20:42 +08:00
Alex Tugarev
5fcd4e418b
Hide Invite Members button from non-owners – WEB-611 (#18320)
* [Orgs] Hide Invite Members button from non-owners

* [server] Invites to Org should be limited to owners.

* [papi] ignore permission denide for GetGenericInvite for non-owners

The `inviteId` is nil/undefined then.
2023-07-25 20:32:41 +08:00
Milan Pavlik
a285a1c732
Remove gitpod-messagebus component WEB-618 (#18269)
* [server] Publish events during workspace starter

* retest

* fix

* fix

* retest

* retest

* retest

* retest

* retest

* retest

* retest

* retest

* [server] Publish events during workspace starter

* retest

* retest

* retest

* retest

* retest

* retest

* retest

* retest

* retest

* retest

* retest

* fix

* Remove gitpod-messagebus component
2023-07-24 21:49:40 +08:00
Robo Quat
ba59f2e90c
update index (#18324)
Co-authored-by: roboquat <roboquat@users.noreply.github.com>
2023-07-21 17:40:37 +08:00
Huiwen
d32e231773
[public-api] align context url with server (#18292)
* [public-api] align context url with server

* 💄

* update test case

* Update test case
2023-07-20 20:53:36 +08:00
Robo Quat
dd5ae6b6b5
update index (#18251)
Co-authored-by: roboquat <roboquat@users.noreply.github.com>
2023-07-20 20:52:36 +08:00
Milan Pavlik
9f51b6134b
[public-api] Remove db debug from OIDC tests (#18252)
* [public-api] Remove db debug from OIDC tests

* fix
2023-07-12 16:02:28 +08:00
Robo Quat
d44af7a7e1
update index (#18047)
Co-authored-by: roboquat <roboquat@users.noreply.github.com>
2023-07-10 18:50:27 +08:00
Manuel Alejandro de Brito Fontes
216f5a4b5d
Address registry-facade dependency issues (#18145)
* Update IPFS libraries references

* Update go modules
2023-07-07 14:26:24 +08:00
Jean Pierre
d57a39dbad
[public-api] Update getWorkspace api response implementation (#17821)
* Update getWorkspace api response implementation

* Only implement recent_folders

* Add additional tests
2023-07-06 01:24:22 +08:00
Manuel Alejandro de Brito Fontes
57c605ddc4
Cleanup scrubber go module dependency (#18149) 2023-07-04 16:37:21 +08:00
Manuel Alejandro de Brito Fontes
e2c416c442
Fix build error undefined: scrubber.TrustedValue (#18134) 2023-07-03 16:45:20 +08:00
Anton Kosyakov
f580e6bd00
fix SID-285: hook scrubber as logrus formatter (#17781) 2023-06-29 17:16:47 +08:00
Sven Efftinge
caf26b812d
[server] remove getUserProjects (#18093) 2023-06-29 16:30:47 +08:00
Pudong
f74ba1cbc3
Add organization id in claims (#17954)
* add OrganizationId in claims.

* Update components/gitpod-protocol/go/gitpod-service.go

* fix
2023-06-26 16:37:50 +08:00
Robo Quat
423ce2ffc9
update index (#18010)
Co-authored-by: roboquat <roboquat@users.noreply.github.com>
2023-06-23 15:34:13 +08:00
Milan Pavlik
fcb8c5f79d
[papi] Extract JWT cookie when extracting creds (#17875)
* [papi] Extract JWT cookie when extracting creds

* fix

* fix

* fix

* Fix

* fix

* Update components/public-api-server/pkg/auth/middleware.go

Co-authored-by: Gero Posmyk-Leinemann <32448529+geropl@users.noreply.github.com>

---------

Co-authored-by: Gero Posmyk-Leinemann <32448529+geropl@users.noreply.github.com>
2023-06-14 15:37:04 +08:00
Wouter Verlaek
a18361e5a0
Return and show error when stopping workspace in maintenance mode (#17880)
* Show error when stopping workspace in maintenance mode

* Fix import

* Feedback

* Fix return

* Fix mutate error catch, use try/catch for stopWs
2023-06-12 21:55:03 +08:00
Pudong
4aede056ab
[IDP] set email_verified to false if user is not org-owned user (#17896)
* set email_verified to false if user is not org-owned user

* update test
2023-06-12 18:46:03 +08:00
Robo Quat
b27795e15c
update index (#17856)
Co-authored-by: roboquat <roboquat@users.noreply.github.com>
2023-06-12 14:29:02 +08:00
Milan Pavlik
9937cd864d
[go] Remove jwtSessions feature flag (#17867) 2023-06-08 15:29:58 +08:00
Milan Pavlik
b5a34c9b12
[jwt] OIDC Sessions are JWT only WEB-103 (#17839)
* [jwt] OIDC Sessions are JWT only

* Fix
2023-06-06 21:04:57 +08:00
Robo Quat
99e74f600e
update index (#17662)
Co-authored-by: roboquat <roboquat@users.noreply.github.com>
2023-06-02 15:05:07 +08:00
Pudong
6c44003efa
[idp] periodically persist public key (#17759)
* [idp] make key id stable

* [idp] periodically persist public key

* fix

* addressed feedback

* Update components/public-api-server/pkg/identityprovider/cache.go

Co-authored-by: Christian Weichel <chris@gitpod.io>

* use option

* add test

* fix

---------

Co-authored-by: Christian Weichel <chris@gitpod.io>
2023-06-02 00:22:06 +08:00
Filip Troníček
624c79f9f7
Respond to /idp/keys with JSON (#17789)
* Set JSON mimetype for `/idp/keys`

* Fix typos

* Test for header presence

* Assert JSON for ` /.well-known/openid-configuration` as well
2023-05-31 14:45:05 +08:00
Jean Pierre
6652c98a1a
Add WorkspaceUpdates method (#17728)
* Add WorkspaceUpdates method

* Replace InstanceUpdates
2023-05-30 23:56:04 +08:00
Milan Pavlik
056ba722f7
[server] Issue JWT cookie in IAM Sessions for OIDC sign-in (#17762) 2023-05-30 22:54:04 +08:00
Milan Pavlik
321da4322e
[gitpod-db] Rename Go definitions from Teams to Organizations (#17763)
* [gitpod-db] Rename Go definitions from Teams to Organizations

* fix

* fix

* Fix

* fix

* Fix
2023-05-30 19:09:04 +08:00
Alex Tugarev
a62aceeb1f
[oidc] Forward errors through /complete-auth endpoint (#17753) 2023-05-26 22:28:00 +08:00
Alex Tugarev
ae9d418e7c
[papi] Start request should search for single Org with active SSO (#17761) 2023-05-26 18:16:00 +08:00
Alex Tugarev
c8c4c3bda9
Root out obsolete self-hosted setup (#17729) 2023-05-25 15:44:59 +08:00
Jean Pierre
2c8852e197
[public-api] Add startWorkspace api (#17682)
* Add startWorkspace api

* Add new scopes to vscode client

* Fix

* Fix

* 💄

Co-authored-by: Milan Pavlik <milan@gitpod.io>

---------

Co-authored-by: Milan Pavlik <milan@gitpod.io>
2023-05-25 03:43:58 +08:00
Alex Tugarev
d52ba759ae
Implement deactivation of OIDC client configs – WEB-333 (#17659)
* [papi] implement deactivation of OIDC client configs

* fix: add test for record not found

* simplify db.SetClientConfigActiviation
2023-05-22 19:55:56 +08:00
Christian Weichel
36905ac004
[idp] Add email to ID token (#17678)
* [idp] Add email to ID token

* [idp] Claim that the email is verified

which is a valid claim because it's verified by the original IDP,
and this is not the user-editable value.

* Incorporate review feedback
2023-05-19 22:07:53 +08:00
Milan Pavlik
12b2e2d116
[papi] Remove rogue print from PAT tests (#17663) 2023-05-19 17:17:53 +08:00