Sven Efftinge
2ae927a454
[fga] fix and log missing relationships ( #18692 )
2023-09-11 11:00:09 +02:00
Sven Efftinge
225040d289
[log] log contextId and userId ( #18688 )
2023-09-11 10:16:08 +02:00
Sven Efftinge
573f3cc9b4
[fga] fix workspace sharing ( #18685 )
2023-09-08 14:32:05 +02:00
Sven Efftinge
da018ad83c
[fga] retry write relationships ( #18683 )
2023-09-08 12:07:05 +02:00
Sven Efftinge
745457a213
[fga] enable all writes by feature flag ( #18676 )
2023-09-07 09:55:04 +02:00
Sven Efftinge
e5932aa319
[fga] run job more often with smaller chunks ( #18675 )
2023-09-07 09:05:04 +02:00
Sven Efftinge
3a07121763
[fga] add relationship update job ( #18671 )
2023-09-07 06:11:03 +02:00
Jean Pierre
b24ae9495d
Upgrade jsonwebtoken lib ( #18634 )
2023-09-06 19:16:03 +02:00
Alex Tugarev
9f63620adc
log errors with parsing ( #18667 )
2023-09-06 10:12:03 +02:00
Gero Posmyk-Leinemann
35a40f2c91
[server] Make PrebuildManager use WorkspaceService.startWorkspace (to remove code duplication) ( #18653 )
2023-09-05 09:36:02 +02:00
Huiwen
a05af0cc2e
[bbs] update REPO_WRITE permission check EXP-521 ( #18610 )
...
* [bbs] fallback REPO_WRITE permission check to bbs
* Use repos search api
* Add test cases
2023-09-04 12:58:01 +02:00
Sven Efftinge
71912f721b
Allow renaming project ( #18630 )
...
remove project#slug
2023-09-04 09:42:01 +02:00
Alex Tugarev
d6e1866704
undo limit to fetch the first 100 user repos for New Workspace – EXP-554 ( #18644 )
...
* undo limit to fetch the first 100 user repos for New Workspace
this reverts 2f2b1abbf1 effectively
* don't call getSuggestedContextURLs on each setUser call
* Always cap the respository search results to be rendered on New Workspace
2023-09-04 09:34:01 +02:00
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
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
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