7592 Commits

Author SHA1 Message Date
Pudong
9759f0081c
[ws-proxy] use ecdsa private key for createKey fake api (#19211) 2023-12-11 16:59:18 +02:00
Huiwen
0b1e5d43cb
Migrate workspaceService updatePort method (#19234)
* Migrate workspaceService updatePort method

* fix build

* fixbuild
2023-12-11 16:28:18 +02:00
Filip Troníček
99ad568aa3
Reflect Privacy policy update (#19230) 2023-12-11 15:39:18 +02:00
Gero Posmyk-Leinemann
6f64417644
[auth] RequestContext: add missing runWithSubjectId (#19235) 2023-12-11 14:46:18 +02:00
Manuel Alejandro de Brito Fontes
1e4e60614c
Update caddy to v2.7.6 (#19232)
* Update caddy to v2.7.6

* Update go modules
2023-12-11 14:14:18 +02:00
Alex Tugarev
eedcf89bbb
[papi] Update UserService proto (#19231)
* [papi] Add UserService.DeleteUser

* [public-api] add missing `UpdateUserRequest.dotfile_repo` attribute

* fix: add unimplemented methods
2023-12-11 13:18:18 +02:00
Gero Posmyk-Leinemann
c183ec89ba
[auth] Authorizer: log ctx-user-id-missing as well (#19229) 2023-12-11 11:33:18 +02:00
Filip Troníček
aa4fc129be
Conditionally apply org id filter to project lookup (#19224)
* Conditionally apply org id filter to project lookup

* Add DB test
2023-12-11 11:17:18 +02:00
Brad Harris
85fb744996
Adding prebuild status filter to repo configs list ui (#19205)
* Adding prebuildsEnabled filter to projects search query

* adding prebuilds_enabled param

* stubbing out UI for prebuild status filter

* mark prebuilds_enabled as optional so we have an undefined state

* ui stuff

* whoopsie

* drop animations for now

* comments

* cleanup

* convert to string

* consider prebuild filter in showing table

* add prebuilds query param

* fix issue w/ fragment around routes preventing 404 handler
2023-12-08 20:57:15 +02:00
Brad Harris
277c9dacfb
wrap menu item w/ separate flag check (#19220) 2023-12-08 16:48:15 +02:00
Anton Kosyakov
bfa7c6e070
[public-api] complete installation service (#19200) 2023-12-08 14:05:15 +02:00
Gero Posmyk-Leinemann
1113e3cd8c
[authorization] Align HTTP handlers before RequestContext rollout (#19214)
* [middleware] RequestContext: don't error on nested contexts + ctxOnAbort

* [auth] HTTP handlers: Add FGA guards and runWithSubjectId where missing

* [code-sync] Guard with FGA
2023-12-08 13:31:15 +02:00
Alex Tugarev
682878ad0c
[server] implement getAuthenticatedUser RPC (#19187) 2023-12-08 13:16:15 +02:00
Huiwen
da125ed40b
Migrate InstallationService GetInstallationWorkspaceDefaultImage method (#19221) 2023-12-08 13:15:15 +02:00
Huiwen
633f9915fc
Migrate instanceUpdate on service.tsx (#19213)
* Migrate instanceUpdate on service.tsx

* Remove useless code

* Fix build
2023-12-08 13:14:15 +02:00
Filip Troníček
46ff2d0121
Scope config lookup to org (#19217) 2023-12-08 08:50:15 +02:00
Robo Quat
c04df5a191
[JetBrains] Update IDE images to new build version (#19210) 2023-12-07 23:55:15 +02:00
Pudong
6ecc991ff5
[experimental] add ssh certificate authorities as feature flags (#19208) 2023-12-07 22:59:14 +02:00
Robo Quat
77ff7415d9
Update Platform Version of JetBrains Gateway Plugin (Stable) to 233.11799-EAP-CANDIDATE-SNAPSHOT (#19209) 2023-12-07 22:35:14 +02:00
Huiwen
bb2473e886
Migrate WorkspaceService snapshot methods (#19204)
* Migrate WorkspaceService snapshot methods

* Add test cases

* Remove list snapshots
2023-12-07 15:51:14 +02:00
Robo Quat
ba07eb951a
update index (#19197)
Co-authored-by: roboquat <roboquat@users.noreply.github.com>
2023-12-07 10:40:14 +02:00
Alex Tugarev
e4da07511b
[dashboard] don't invalidate useOrganizations on update of user settings (#19198) 2023-12-07 08:55:14 +02:00
Alex Tugarev
cf2facc944
Fix team-db spec (#19207) 2023-12-07 08:48:14 +02:00
Pudong
1b7498059c
[ws-proxy] add missing permission for generated ssh key (#19201) 2023-12-06 21:00:13 +02:00
Alex Tugarev
e4ccbf0b4d
GetAuthenticatedUser in Dashboard (#19142)
* [dashboard] remove unused service mock

* [dashboard] use `GetAuthenticatedUser` instead of `getLoggedInUser`

* fixup: override workspaceAutostartOptions

also fix toDurationString call

* fixup: move `isOnboardingUser` to dashboard

* fixup: move getProfile from protocol to common

* fixup fromWorkspaceAutostartOption

* move getPrimaryEmail to common and clean up

* rm getProfile from protocol, use ProfileDetails

* fixup missing leeway dependencies

* fix getPrimaryEmail

* fix resetting workspace timeout

* [gitpod-db] remove dependency to `@gitpod/public-api-common`

* cleanup BUILD.yaml
2023-12-06 17:42:14 +02:00
Huiwen
0152b84a80
Migrate gRPC workspaceService other workspace related method (#19118)
* Migrate gRPC workspaceService other workspace related method

* Use shim and gRPC everywhere

* fix update
2023-12-06 12:42:13 +02:00
Gero Posmyk-Leinemann
2b5a36e9b5
[authorizer] prepare Authorizer for SubjectId rollout (#19195) 2023-12-06 10:58:13 +02:00
Brad Harris
ca02c26021
handle redirects in host reachability test (#19196) 2023-12-05 20:45:12 +02:00
Brad Harris
0e7fae68e2
Update useLatestVersion in autostart options when user pref updaetd (#19181)
* update useLatestVersion in autostart options

* avoid mutating user directly
2023-12-05 17:29:12 +02:00
Brad Harris
d447212b9a
Fix text input background color (#19190)
* convert podkit colors into css variables to handle dark mode automatically

* cleanup

---------

Co-authored-by: Filip Troníček <filip@gitpod.io>
2023-12-05 17:26:13 +02:00
Gero Posmyk-Leinemann
f78eff2467
Frontend development: redirect instead of proxy (#19177)
* [dev] make-user-admin: Grant all admin permissions

* [dev] Change frontend-dev to redirect instead of transparently proxy

This removes the "proxy needs network access to upstream" constraint, by relying on the developers browser

* [dev] front-end dev: more convenience, and added to readme
2023-12-05 16:48:13 +02:00
Sven Efftinge
ad2a077973
[db] fix the query for non-fga migrated users (#19194) 2023-12-05 15:03:12 +02:00
Anton Kosyakov
5db20a7042
[server] hook verification API service (#19193) 2023-12-05 12:50:12 +02:00
Gero Posmyk-Leinemann
4c3eb7d72f
[iam] Use proper subjectId in updateOIDCUserOnSignin (#19189) 2023-12-05 10:17:12 +02:00
Huiwen
17397ad65a
Fix admin dashboard convert failed case (#19192)
* Add test cases

* Fix admin dashboard convert case
2023-12-05 09:55:12 +02:00
Brad Harris
74528b98c2
New Prebuild Settings UI for repo configs (#19184)
* setting up settings

* preload ws classes

* adding heading/description to prebuild ws class

* add some constants

---------

Co-authored-by: Filip Troníček <filip@gitpod.io>
2023-12-04 21:21:12 +02:00
Anton Kosyakov
5a55a7a6ff
[dashboard] proactively reconnect grpc streams (#19185) 2023-12-04 16:05:11 +02:00
Huiwen
39ebf1d2ca
Revert Refine workspace and fix bugs (#19178)
* Revert "Revert "Refine workspace API (#19138)" (#19172)"

This reverts commit a6f472255601ecd7574d33ae3015ea1c184b47d5.

* Update to workspace cases

* Add new cases and fix

* Add timeout

* fixup

* Remove requirement of editor

* Update cases

* Bump version

* Update dashboard
2023-12-04 12:36:11 +02:00
Pudong
6d02689f65
[supervisor] always allow gitpod user ssh (#19182) 2023-12-02 06:34:09 +02:00
Filip Troníček
7bcc749da0
Configuration Variables page (#19128)
* `updateConfiguration`

* typdate

* Try with no deeply nested property

* JKADFkosaNcISADFuisabnfhjl hjkafb ashjdbjbhj

* Constrain even further

* Return the configuration

* Fix update mutation

* Only update necessary properties

* Implement name changes

* typastuff

* 🙄

* Mutation update

* 🤷‍♂️

* init

* Remove method present in upstream

* newlines and imports

* Address env var API changes

* fixies

* Fix list query key

* Fix for new router

* Fix list vars key? 🤷‍♂️

* Simplify return

* Adding stuff

* Add path

* Single variable component

* Use mutation callbacks for success and errs

* Typography and layout

* Do not store variable data in-browser

* Edit variable modal

* De-center

* Small fixes with admission init

* Spacing and alignment of menu items

* 🤷‍♂️

* Error reporting for creation/edit

* Update copy

* Verboserer output

* Fix missing argument 😱

* Pass in all properties of variables

* Provide ID when updating

* Fix changing admission

* Simplify

* Update table copy

* Text sizes

* Format

* Typo

* rename

* Simplify

* Copy update

* Rename comp

* Duplicate error printing

* Use `TextInputField`!

* Clean up TextInputField

* Break instead of truncate

* Fixed width table headers

Co-authored-by: Brad Harris <bmharris@gmail.com>

* Simplify route setup

---------

Co-authored-by: Brad Harris <bmharris@gmail.com>
2023-12-02 00:31:09 +02:00
Siddhant Khare
2fcec7c285
[dashboard]: Add Org settings based WS share menu (#19183)
* [dashboard]: Add Org settings based WS share menu

* clean code
2023-12-01 22:10:09 +02:00
Pudong
7f83e2f592
[ws-proxy] only get username if workspace not managed by mk2 (#19180)
* [ws-proxy] only get username if workspace not managed by mk2

* remove ssh key from infoprovider

* improve logs

* Update components/ws-proxy/pkg/sshproxy/server.go
2023-12-01 21:41:09 +02:00
Anton Kosyakov
e21e02ae9d
[public-api] improve request exception logging (#19179) 2023-12-01 18:36:08 +02:00
Brad Harris
3155a30960
Adding Switch podkit component to prebuild settings page (#19171)
* adding Switch podkit component

* flex it

* Update components/dashboard/src/repositories/detail/ConfigurationDetailPrebuilds.tsx

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

* removing redundant copy

---------

Co-authored-by: Filip Troníček <filip@gitpod.io>
2023-12-01 18:23:08 +02:00
Brad Harris
efbdade187
Repo List - Style updates (#19157)
* adjust prebuilds disabled styling

* Make headings all semibold

* update icon based on if prebuilds enabled

* adjust cell padding

* shift import button to search row

* fix search input and button on smaller screens

* adjusting button & input border radius and height to match

* update font size on inputs to match buttons

* prevent table from overflowing

* adjust icon sizes

* wrap url on smaller screens too
2023-12-01 17:37:08 +02:00
Robo Quat
3a6b125511
update index (#19176)
Co-authored-by: roboquat <roboquat@users.noreply.github.com>
2023-12-01 13:57:08 +02:00
Huiwen
be35ce16a8
Use golden files for converter testings (#19168)
* Use golden files for converter testings

* Add tips if test failed

* Make results of enum human-readable

* Add copyright
2023-11-30 19:47:08 +02:00
Pudong
555c738cd0
hook create key route in ws-proxy (#19174) 2023-11-30 19:28:07 +02:00
Pudong
10fe5b9699
[sshgateway] use ssh CA to auth (#19147)
* [sshgateway] use ssh CA to auth

* change name

* add error log

* fix

* mark volume optional

* [installer] validate ssh-ca secret

* Revert "[installer] validate ssh-ca secret"

This reverts commit ca6ede78a7b5a720fd315eca32eb277cb5063069.

We must support the scenario where the installer has the secret, but, it is not in the cluster yet.

---------

Co-authored-by: Kyle Brennan <kyle@gitpod.io>
2023-11-30 19:17:08 +02:00
Thomas Schubart
a96456ae29
Manage only workspaces created by manager (#19155)
* Add managed by label

* Fix test

* Handle workspaces if no label is set
2023-11-30 15:50:07 +02:00