221 Commits

Author SHA1 Message Date
Alex Tugarev
ec513bf636 [gitpod-db] fix periodic db deleter 2022-05-12 12:15:27 +05:30
Sven Efftinge
72aa5e0aa8 [prebuilds] no prebuilds for inactive repos 2022-05-11 23:12:26 +05:30
Christian Weichel
7b86b04a7a [db-test] Take DB init scripts from installer 2022-05-11 21:10:26 +05:30
Jan Keromnes
f40d0cf0aa [db][protocol] Implement TeamSubscription2 DB shapes and migration 2022-05-09 23:07:25 +05:30
Pavel Tumik @ GitPod
f1c142b9fb [gitpod-db] add new DB entity for VolumeSnapshot 2022-05-09 20:08:24 +05:30
mustard
1f3919ea76 Fix gateway referrer won't set default IDE 2022-04-29 17:10:15 +05:30
mustard
32434b5ee3 feat: ide awareness during onboarding
Co-authored-by: mustard <huiwen@gitpod.io>
Co-authored-by: andreafalzetti <andrea@gitpod.io>
2022-04-28 12:26:14 +05:30
Gero Posmyk-Leinemann
424152c597 [gitpod-db] Email domain blocklist: Add suffix matching capability 2022-04-20 12:22:32 +05:30
Gero Posmyk-Leinemann
9a7958bd6c [gitpod-db] Rename DomainFilterDB.filter to isBlocked 2022-04-20 12:22:32 +05:30
Gero Posmyk-Leinemann
1987cb3d6b [server] Fix EMailDomainService.isBlocked 2022-04-19 20:15:32 +05:30
Thomas Schubart
176fbcfe50 Randomize token generation 2022-04-18 22:17:31 +05:30
Thomas Schubart
9650abfa98 Add agent-smith token to preview environment 2022-04-18 22:17:31 +05:30
Jan Keromnes
ed30d9696f Stop running prebuilds for inactive projects (10+ weeks)
Fixes https://github.com/gitpod-io/gitpod/issues/8911
Fixes prebuild rate limit
2022-04-12 22:37:25 +05:30
Alex Tugarev
f27efb7716 [server] fix infinite init loop of dynamic providers
... which is caused by casing mismatch.
2022-04-12 19:46:25 +05:30
Anton Kosyakov
a78f4efa61 [server] add vscode(-insiders) ouath2 clients 2022-04-12 13:12:25 +05:30
Milan Pavlik
55933f389b [db] Type Prebuild.statusVersion as string due to bigint db represenation 2022-04-07 18:42:21 +05:30
Jan Keromnes
81a79af4ec [gitpod-db] Don't consider garbage-collected prebuilds as potential bases for incremental prebuilds 2022-04-05 18:58:19 +05:30
Milan Pavlik
5d9be03d7d fix 2022-04-05 13:52:18 +05:30
Milan Pavlik
da4a9b38da add migrations 2022-04-05 13:52:18 +05:30
Milan Pavlik
bb216d29b8 fix tests 2022-04-05 13:52:18 +05:30
Milan Pavlik
a05badbd15 fix 2022-04-05 13:52:18 +05:30
Milan Pavlik
c8c0847193 [db] Add stateVersion to prebuilds to track status version 2022-04-05 13:52:18 +05:30
Alex Tugarev
bf3bddf141 [auth] fix missing updates to dynamic login providers
this primarily affects self-hosted installation where the `ownerId` is about to change during the initial setup of the login/git provider.
2022-03-31 20:08:14 +05:30
Gero Posmyk-Leinemann
01f4897c53 [db] Fix findPrebuildsWithWorkpace 2022-03-18 16:43:24 +05:30
Tarun Pothulapati
b800a43aa4 [gitpod-db] add index on workspaceDB.Type Column
For Telemetry queries to be less intensive on the CPU, We need to
build Indexes to make the querying faster

Signed-off-by: Tarun Pothulapati <tarun@gitpod.io>
2022-03-17 17:41:23 +05:30
Gero Posmyk-Leinemann
405966efc7 [db] Add missing Workspace index (id, deleted) 2022-03-15 15:37:22 +05:30
Milan Pavlik
845e66c56b Format components/gitpod-db with prettier 2022-03-14 21:48:21 +05:30
mustard
4f1c3922b4 [server] remove setting sync record with limit 2022-03-12 02:26:18 +05:30
Sven Efftinge
53668f1253 [server] fix compile error 2022-03-10 17:37:17 +05:30
Sven Efftinge
cc2f3b30fe [multi-repo] Support prebuilds on multi-repo setup 2022-03-10 15:46:17 +05:30
Andrew Farries
54a765d321 Add rate limits for prebuilds
Prebuilds are rate-limited to N in the last S seconds on a rolling
window basis.
By default, 50 prebuilds are allowed in a 1 minute window.
A configuration property `prebuildLimiter` is added which controls
default rate limit but allows for explicit overrides by cloneURL.
2022-03-08 19:40:15 +05:30
Gero Posmyk-Leinemann
740092ec97 [server] Introduce TeamSubscription.excludeFromMoreResources 2022-03-07 22:07:14 +05:30
Laurie T. Malau
29df192bd0 Fix workspace search under user detail 2022-03-03 18:15:10 +05:30
Laurie T. Malau
31efabc38b Remove free text search on contextURL 2022-03-02 16:34:09 +05:30
Filip Troníček
0d05dcf813 Update VS Code Settings sync schema and VS Code repo refs
Remove Theia assignments

Co-authored-by: Jean Pierre <jeanp413@hotmail.com>
2022-03-01 19:22:08 +05:30
Laurie T. Malau
9d3a8b77d1 Manage teams as admin 2022-02-25 18:10:04 +05:30
Gero Posmyk-Leinemann
4e331313ad Revert "Revert "[server, db] AuthProviderEntry: Introduce oauthRevision to avoid repeated materialization of encrypted data""
This reverts commit ddc7aaa72c426648b5c7165567f6970d51db936a.
2022-02-24 14:30:05 +05:30
Tarun Pothulapati
5f6114c282 telemetry: add more fields to data
Fixes https://github.com/gitpod-io/gitpod/issues/7866

This PR updates the `installation-admin-controller` to also retrieve
more data to send with telemetry. These are not part of the
`installationAdminDb` as we do not want to store this in the database
but lazily retrieve whenever a request is sent to `/data` endpoint
of the `installation-admin` express app unlike the `uuid` and settings
which need to be stored and updated.

The following fields are added:
- `totalUsers` : specifies the total number of users in the instance
- `totalWorkspaces`: specifies the total number of **regular** workspaces in the instance
- `totalInstances`: specifies the total number of **regular** workspace instances in the gitpod instance

Signed-off-by: Tarun Pothulapati <tarun@gitpod.io>
2022-02-17 12:08:57 +01:00
Gero Posmyk-Leinemann
a3d1b614f8 [ws-manager-bridge] Emulate InstanceUpdates for 'Preparing' phase to decouple messagebus 2022-02-17 11:43:57 +01:00
Gero Posmyk-Leinemann
ddc7aaa72c Revert "[server, db] AuthProviderEntry: Introduce oauthRevision to avoid repeated materialization of encrypted data"
This reverts commit 07e013ecc2808240b768710886ff52fac0f921bd.
2022-02-14 20:35:35 +01:00
Gero Posmyk-Leinemann
bcf031498e Revert "Create an index for contextURL column"
This reverts commit e0f7bfe976924005a4591ed9d3eb9e919111336a.
2022-02-14 17:51:35 +01:00
Alex Tugarev
ebf351edf1 [github-app] change findInstallation semantics
to return any non-uninstalled record which may now be used to identify the installer of an GitHub App installation.
2022-02-11 17:49:32 +01:00
Gero Posmyk-Leinemann
07e013ecc2 [server, db] AuthProviderEntry: Introduce oauthRevision to avoid repeated materialization of encrypted data 2022-02-11 16:44:33 +01:00
Laurie T. Malau
e0f7bfe976 Create an index for contextURL column 2022-02-09 13:25:30 +01:00
Alex Tugarev
e9cd644893 [server] fix wrong order of tokens to select from 2022-02-08 15:11:29 +01:00
Mads Hartmann
dd8b5b728a Remove OWNERS related files
Fixes https://github.com/gitpod-io/ops/issues/844
2022-02-08 09:15:30 +01:00
Gero Posmyk-Leinemann
3bd683e6ea [server] Run 'yarn lint' on every build 2022-02-04 14:29:26 +01:00
Gero Posmyk-Leinemann
6c0c82ce0f [server] Change PeriodicDeleter interval: 2s->30s 2022-02-03 13:21:25 +01:00
Gero Posmyk-Leinemann
1c4cd73f47 [db] Add index for all queries on DBPrebuildWorkspaceUpdatable 2022-02-03 11:52:25 +01:00
Christian Weichel
dbeeafafd0 [workspace cluster] Remove admission preferences 2022-02-02 18:46:24 +01:00