250 Commits

Author SHA1 Message Date
mustard
154dc5fd7d [server,db,protocol] support ssh public key
Co-authored-by: George Tsiolis <tsiolis.g@gmail.com>
2022-07-05 11:04:52 +05:30
Andrew Farries
1f9ed57eb1 Remove unused deletedAt column 2022-06-30 21:23:38 +05:30
Andrew Farries
47db0ebefc Add d_b_blocked_repository to tables.ts 2022-06-30 21:23:38 +05:30
Andrew Farries
1a35999ab4 Remove todos
Answered by code review.
2022-06-30 21:23:38 +05:30
Andrew Farries
2764e6dff9 Rename isRepositoryBlocked 2022-06-30 21:23:38 +05:30
Andrew Farries
812ff0a20e Add unit tests for blocked repositories 2022-06-30 21:23:38 +05:30
Andrew Farries
da0fdf5164 Add migration to add new entity
This was auto-generated by running:

`docker run --rm --name some-mysql -e MYSQL_ROOT_PASSWORD=test -e MYSQL_DATABASE=gitpod -e MYSQL_USER=gitpod -e MYSQL_PASSWORD=test -p 3306:3306 -d mysql:5.7`

`yarn typeorm migration:generate -n New` from the `gitpod-db` directory.

And then removing everything but the new table.

We should document a better way of doing this.
2022-06-30 21:23:38 +05:30
Andrew Farries
edc3d0214c Add new DB entity and supporting classes
Add the new BlockedRepository entity and its interface and
implementation.
2022-06-30 21:23:38 +05:30
Gero Posmyk-Leinemann
d3b2239398 [server] Tone down "found more than one active token" 2022-06-30 19:51:38 +05:30
Sven Efftinge
ba78bd4d08 [server] abort running prebuilds on same branch 2022-06-30 11:40:38 +05:30
Jan Keromnes
d96dedc188 [gitpod-db] Drop deprecated 'attributedTeamId' column from workspace instances 2022-06-29 12:59:37 +05:30
Gero Posmyk-Leinemann
09dbf29160 [db] Remove DeletedEntryGC and all references 2022-06-27 15:41:36 +05:30
Jan Keromnes
59cbf53956 [gitpod-db][server] Refactor workspace instance 'attributedTeamId' to an explicit, not-team-specific 'usageAttributionId' 2022-06-24 14:38:33 +05:30
Alex Tugarev
eb79aefea4 [db] fix adminGetWorkspaces/findAllWorkspaceAndInstances 2022-06-24 12:07:32 +05:30
Jan Keromnes
71813fe752 [db] Persist attributed teamId on workspace instances (for usage analytics / billing purposes) 2022-06-16 12:58:25 +05:30
Alex Tugarev
9f247ca70f [prebuild] cap updateables to be processed
Also, mark updatable as resolved if commit is gone.
2022-06-15 15:31:24 +05:30
Pavel Tumik
db51bdd623 fix index on volume snapshot table 2022-06-15 02:37:25 +05:30
Pavel Tumik
dc111f3996 add limit to volume snapshot GC 2022-06-15 02:37:25 +05:30
Pavel Tumik
7a7792f531 volume snapshot delete and restore support, garbage collection 2022-06-15 02:37:25 +05:30
André Duarte
ff84252286 Fix tests 2022-06-08 14:49:18 +05:30
André Duarte
04683e038a Add migration 2022-06-08 14:49:18 +05:30
André Duarte
3374a43a22 Add workspace class to workspace instance 2022-06-08 14:49:18 +05:30
Jan Keromnes
7c0ecdbf86 [db][payment][server] Implement TeamSubscription2.excludeFromMoreResources 2022-06-01 16:37:50 +05:30
Milan Pavlik
d0f11b876c [worspace-instance] Deprecate deployedTime field 2022-06-01 13:59:50 +05:30
Pavel Tumik
c6910dac35 tie snapshot volumes to workspace instance id 2022-05-25 13:17:39 +05:30
Alex Tugarev
1420b9ca54 Managed cloneURL column. 2022-05-19 15:33:33 +05:30
Sven Efftinge
1bf277a17f [prebuilds] no prebuilds for inactive repos 2022-05-19 15:33:33 +05:30
Alex Tugarev
38b975c18b [db] enable overriding of expiryDate on tokens 2022-05-18 20:42:33 +05:30
Alex Tugarev
680932745a Revert "[prebuilds] no prebuilds for inactive repos"
This reverts commit 72aa5e0aa8c30b4e000f86d65f2c14667d13de1d.
2022-05-12 13:23:27 +05:30
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