Gero Posmyk-Leinemann
86fa3ba709
[server] Separate instance creation from instance starting (again) ( #18642 )
...
* [server] Separate instance creation from instance starting (again)
* [server] Set instance.configuration.fromBackup
2023-09-04 09:33:01 +02:00
Robo Quat
9ad3360abf
update index ( #18636 )
...
Co-authored-by: roboquat <roboquat@users.noreply.github.com>
2023-09-03 19:02:00 +02:00
Gero Posmyk-Leinemann
938f0ba841
[ws-manager-api] Remove deprecated fields ( #18641 )
2023-09-01 14:38:58 +02:00
Sven Efftinge
841b616c34
[spicedb] fix stale connection handling ( #18631 )
2023-09-01 12:53:58 +02:00
Alex Tugarev
5efb011c08
Update GitLab REST client library ( #18523 )
...
* [server] update gitlab REST client library
* clean up workspace packages
* Update gitlab rest client
* Fix yarn.lock
* Update chainguard node image
* Catch up with GitLab client library changes.
Several places relied on a particular shape of errors.
* [gitlab] fix project typings
---------
Co-authored-by: Jean Pierre <jeanp413@hotmail.com>
2023-08-28 16:09:55 +02:00
Gero Posmyk-Leinemann
a8a67cc28f
[server] Reconnect to spicedb without waiting 2 mins (+ fail on missing config + client call metrics) ( #18570 )
2023-08-24 15:10:50 +02:00
Sven Efftinge
b043f38494
[server] terminate ws on shutdown ( #18550 )
2023-08-24 15:07:50 +02:00
Sven Efftinge
528194daaa
[fga] minor fixes ( #18592 )
2023-08-24 15:00:50 +02:00
Sven Efftinge
e1eb06339a
[fga] reset user's fga state after logout ( #18593 )
2023-08-24 14:59:50 +02:00
Alex Tugarev
c7e492b6ef
update node to 18.17.1 ( #18525 )
...
* update node to 18.17.1
* use new dev image
* fix webpack in supervisor-frontend
* bump webpack to 5.88.2 in dashboard
* streamline webpack versions
* Fix craco config
* streamline eslint versions
* Update eslint config and disable for now
* Enable eslint again
* Update vscode-jsonrpc for browser implementation
* Polyfill setimmeadiate
* Remove NODE_OPTIONS env var from supervisor front end scripts
* Fix css
* Fix css 2
* Fix checkboxchecked
* Add comment
* Fix yarn.lock
---------
Co-authored-by: Jean Pierre <jeanp413@hotmail.com>
2023-08-24 13:41:50 +02:00
Filip Troníček
9cd5741f13
Update Desktop scopes ( #18589 )
2023-08-24 12:37:50 +02:00
Filip Troníček
694f8eaeaf
[papi] List workspace classes ( #18546 )
...
* [papi] List workspace classes
Adds the `ListWorkspaceClasses` method on `WorkspacesService`.
* Add test for class listing
* `Title` -> `DisplayName`
* fix rename in tests
* Update generated
2023-08-24 10:53:50 +02:00
Thomas Schubart
55c9165c0d
Support managed redis ( #18581 )
...
* [installer] Specify redis configuration for server
* [server] Configure Redis authentication
* [wsman-bridge] Configure Redis authentication
* [wsman-bridge] Add redis credentials to environment
2023-08-24 10:30:50 +02:00
Sven Efftinge
07e7bda050
[fga] only migrate non-deleted workspaces ( #18588 )
2023-08-24 09:48:50 +02:00
Gero Posmyk-Leinemann
0c3eb9fe96
[server] FGA checks for all admin*Workspace methods ( #18569 )
...
* [server] FGA checks for all admin*Workspace methods
* rebase artifacts
2023-08-24 09:13:49 +02:00
Gero Posmyk-Leinemann
930fe777ef
[fga] WorkspaceService.getWorkspace(s) ( #18565 )
...
* [server] WorkspaceService.getWorkspace(s)
* review comments
2023-08-24 08:32:50 +02:00
Brad Harris
25c949e976
Incremental repo searching ( #18566 )
...
* Wiring up api repo searching for bitbucket server
* adding lodash.debounce dep
* add lodash.debounce types
* Hiding account for bitbucket server
* print host only
* adjust loading state to not be totally blocking
* adjust filtering and query key
* support fetching recent repos
* use search params instead of strings
* adjusting loading component
* cleanup
* wrap incremental search code w/ feature flag
* yarn lock updates
* adding a limit to grab only the first 100 repos
* rename for clarity
* change to call in series to reduce rate limit chances
* renaming cap => maxPages
* fixing some stuttering widths changing as things load
* add alert message for bbs searching
2023-08-24 00:36:49 +02:00
Kyle Brennan
f0617d86ef
[image-builder-api] log more, traces aren't always available ( #18579 )
...
* [image-builder-api] log more, traces aren't always available
* [server] log interesting params for actuallyStartWorkspace
* Log params when starting actuallyStartWorkspace
Co-authored-by: Milan Pavlik <milan@gitpod.io>
* [image-builder-api] don't bother logging source
It's redacted
---------
Co-authored-by: Milan Pavlik <milan@gitpod.io>
2023-08-23 16:32:49 +02:00
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
Sven Efftinge
7e484dc032
[fga] added create_snapshot permission ( #18559 )
2023-08-23 14:46:49 +02:00
Jan Keromnes
c85581cf5e
Support pagination to fetch _all_ Bitbucket branches ( #18563 )
...
Co-authored-by: Filip Troníček <filip@gitpod.io>
2023-08-23 09:58:49 +02:00
Gero Posmyk-Leinemann
2419f896f6
[fga] Devx improvements ( #18574 )
...
* [server] Inject process.env.HOST_URL into feature flag attributes
* [dev] unblock-user + make-user-admin: Restart server+redis after DB changes
2023-08-23 08:33:49 +02:00
Huiwen
f2cb6566c6
[bbs] check webhooks permission in scm itself ( #18575 )
2023-08-22 17:45:48 +02:00
Huiwen
6d7f32d841
[bbs] fix incorrect revision fetch EXP-496 ( #18572 )
...
* [bbs] fix incorrect revision fetch
* Fixup
* fixup
* 1
* Revert tests and address feedback
* fixup
2023-08-22 14:18:48 +02:00
Sven Efftinge
246d8eda48
[fga] check some admin functions ( #18562 )
2023-08-21 18:22:47 +02:00
Sven Efftinge
e234839ba8
[fga] prebuild access ( #18560 )
2023-08-21 16:55:47 +02:00
Sven Efftinge
f7432450b6
[spicedb] rolling update when schema changes ( #18561 )
2023-08-21 16:54:47 +02:00
Gero Posmyk-Leinemann
5daf36e83f
[fga] WorkspaceService.controlAdmission ( #18549 )
...
* [server] Move controlAdmission into WorkspaceService + tests
* [server] Implement Workspace sharing in FGA
* rebase adjustments
2023-08-21 08:42:47 +02:00
Sven Efftinge
820ca180ff
[fga] project visibility and prebuild perms ( #18540 )
2023-08-18 14:41:44 +02:00
Gero Posmyk-Leinemann
5304d7ac2d
[WIP][fga] WorkspaceService: watchWorkspaceImageBuildLogsm getHeadlessLog, WorkspaceService.sendHeartBeat ( #18538 )
...
* watchWorkspaceImageBuildLogs + getHeadlessLog
* [server] WorkspaceService.sendHeartBeat
2023-08-18 09:30:44 +02:00
Alex Tugarev
95d14d3f66
[server] createProject should not query all repositories – EXP-459 ( #18532 )
...
* [server] createProject should not query all repositories
except for github.com when using the GitHub App.
* fixup: circular dependency problem
* extract webhook related functions to scm-service.ts
* ensure canCreateProject is case-insensitive
2023-08-17 16:16:43 +02:00
Gero Posmyk-Leinemann
ebc0d20d72
[fga] WorkspaceService: workspace timeout + classes + git status (misc I) ( #18535 )
...
* WorkspaceService.getSupportedWorkspaceClasses + updateGitStatus
* setWorkspaceTimeout + getWorkspaceTimeout
2023-08-17 15:27:43 +02:00
Alex Tugarev
3ba583c710
[server] add searchString to getRepositoriesForAutomatedPrebuilds – EXP-461 ( #18533 )
...
* [server] add `searchString` to `getRepositoriesForAutomatedPrebuilds`
* reintroduce and fix paginated requests
* using a default cap at 10 requests per paginated request
* make getProviderRepositoriesForUser cancellable
2023-08-17 15:04:43 +02:00
Gero Posmyk-Leinemann
553f9b28f8
[server] Migrate all ports-related API calls to WorkspaceService ( #18527 )
2023-08-17 09:32:43 +02:00
Jean Pierre
b95a4687bf
[fga] Introduce EnvVarService ( #18503 )
2023-08-16 22:12:42 +02:00
Gero Posmyk-Leinemann
7d27150712
[fga] Skip old permission system if centralizedPermissions is enabled ( #18519 )
...
* [server] Disable old permission checks if centraliedPermissions is enabled
* review comments
2023-08-16 17:30:42 +02:00
Jean Pierre
6cf3aa2e26
[fga] Introduce GitpodTokenService ( #18502 )
2023-08-16 16:00:42 +02:00
Anton Kosyakov
e69acdf556
remove definetly-gp support ( #18492 )
...
compare to previous attempts it does not remove anything related to ExternalImageConfigFile
2023-08-15 17:40:42 +02:00
Sven Efftinge
735bf0ec1f
[fga] more FGA checks and service use ( #18517 )
2023-08-15 16:50:41 +02:00
Anton Kosyakov
93ec6ab1f2
[fga] extract WorkspaceService.start ( #18467 )
...
* [server] WorkspaceService.startWorkspace
* [server] Start redis if not running
* [server] Move regionCode handling into WorkspaceService.startWorkspace
* [server] move "not-deleted" check into WorkspaceService.startWorkspace
* fix sshkey tests
---------
Co-authored-by: Gero Posmyk-Leinemann <gero@gitpod.io>
2023-08-15 12:02:44 +02:00
Sven Efftinge
4e87092f17
[server] delete unused guard ( #18509 )
2023-08-14 14:55:40 +02:00
Alex Tugarev
4df0250739
[bbs] add pagination to getRepos – EXP-417 EXP-416 ( #18498 )
...
* [bbs] add pagination to getRepos
* fixup: a fuse to prevent infinite loop
* fixup remove .only
2023-08-14 12:12:40 +02:00
Alex Tugarev
9e5a2be333
[new-workspace] Fix recent repositories for BBS – EXP-411 ( #18497 )
...
* [new-workspace] Fix recent repositories for BBS
* fixup remove log
* fixup test
2023-08-14 11:34:40 +02:00
Jean Pierre
ec7f6d614e
[fga] Introduce sshkeyservice ( #18479 )
...
* Introduce sshkeyservice
* Add read_ssh and write_ssh permissions
* add requestorId to sshkeyservice
---------
Co-authored-by: svenefftinge <sven@gitpod.io>
2023-08-11 09:48:36 +02:00
Sven Efftinge
8e88e6466d
[server] fix typeorm metrics ( #18484 )
2023-08-10 20:19:36 +02:00
Sven Efftinge
645a2efa5d
[server] added metric for db pool queueing ( #18477 ) ( #18481 )
2023-08-10 11:24:37 +02:00
Alex Tugarev
e971a66ac4
Improve GithubRepositoryProvider.getUserRepos – EXP-407 ( #18468 )
...
* Improve GithubRepositoryProvider.getUserRepos
The graphql query is extend to mimic what you would see in Top Repositories box visiting github.com.
* fixup consider private repos as well
* fixup missing spread
2023-08-10 10:40:37 +02:00
Anton Kosyakov
f44e55976e
[fga] migrate workspace relationships ( #18459 )
...
Co-authored-by: geropl <gero@gitpod.io>
2023-08-09 16:50:36 +02:00
Sven Efftinge
9b06d2e1ee
[fga] migrated user service methods ( #18461 )
2023-08-09 09:38:35 +02:00
Sven Efftinge
73533e4302
[server] fix org-owned users without membership ( #18463 )
2023-08-08 22:15:34 +02:00