452 Commits

Author SHA1 Message Date
Milan Pavlik
620b0fa288 [oidc] Setup db 2022-12-13 11:14:23 -03:00
Jean Pierre
cd289d430f [code-sync] Update /v1/collection endpoint response
Ref https://github.com/microsoft/vscode/pull/168115
2022-12-12 12:55:22 -03:00
Mads Hartmann
06557ea800 Remove build artifacts from leeway package srcs lists 2022-12-12 08:12:22 -03:00
Christian Weichel
478a75e744 Switch license to AGPL 2022-12-08 13:05:19 -03:00
Sven Efftinge
aa4a5cafb6 [usage] make increment billing cycle more robust 2022-12-07 05:54:17 -03:00
Sven Efftinge
fcc42fe1a4 [usage] handle no stopping but stopped time 2022-12-06 12:38:17 -03:00
Sven Efftinge
57593bfedd [usage] increment cycle on finalize invoice 2022-12-06 05:24:16 -03:00
Sven Efftinge
a5d67448b2 Revert "[usage] handle reset usage for chargebee" 2022-12-02 11:47:01 -03:00
Milan Pavlik
e5dd0238e9 [pat] API allows update which does not change any data 2022-12-01 13:42:00 -03:00
Milan Pavlik
db4f0fcb41 [pat] Fix expiration time auto-udpate 2022-12-01 09:53:00 -03:00
Sven Efftinge
91ad8a3550 [pvc] remove pvc related code 2022-12-01 09:07:00 -03:00
Milan Pavlik
82e56ca08e [pat] Apply on-update property to _lastModified column, remove from expirationTime 2022-12-01 07:53:00 -03:00
Milan Pavlik
fd6546bafe [pat] HHarden retrieval of PATs and check for nil UUIDs 2022-11-30 11:17:59 -03:00
Gero Posmyk-Leinemann
753a24b503 [server] Print more details on auth error 2022-11-30 10:58:59 -03:00
Sven Efftinge
2eead4a625 [usage] handle reset usage for chargebee
chargebee subscriptions that are cancelled get a dedicatd cost center
2022-11-30 09:08:00 -03:00
Sven Efftinge
c381daac25 [usage] only reset to max spendingLimit 2022-11-30 04:14:59 -03:00
Milan Pavlik
e9cf230312 [server] Support PATs when authenticating 2022-11-29 10:52:58 -03:00
Milan Pavlik
16f646aae7 [pat] Do not list deleted PATs 2022-11-29 10:49:58 -03:00
Sven Efftinge
7252b10b78 [usage] reduce possibility for races in ResetUsage 2022-11-28 11:02:57 -03:00
Milan Pavlik
ff3298b63b [db] Define PersonalAccessToken model for TypeORM 2022-11-28 11:00:57 -03:00
Milan Pavlik
5642845022 [pat] Update Personal Access Token 2022-11-25 05:47:54 -03:00
Sven Efftinge
8027a1e195 [usage] don't reset usage limit 2022-11-24 11:14:53 -03:00
Milan Pavlik
1dabfa75d4 [db] Drop description column from d_b_personal_access_token 2022-11-24 06:48:53 -03:00
Milan Pavlik
7ef62ba4a2 [pat] Validate and enforce scopes for PATs 2022-11-24 06:22:53 -03:00
Milan Pavlik
64ed64a428 [pat] Remove description field 2022-11-24 05:19:53 -03:00
Jean Pierre
d70072131d [public-api] delete personal access token
Co-authored-by: Milan Pavlik <milan@gitpod.io>
Co-authored-by: mustard <huiwen@gitpod.io>
2022-11-23 12:11:53 -03:00
Jean Pierre
afac3c9b43 [public-api] regenerate personal access token
Co-authored-by: Milan Pavlik <milan@gitpod.io>
Co-authored-by: mustard <huiwen@gitpod.io>
2022-11-23 10:01:52 -03:00
Laurie T. Malau
72de7937bf [pat] Implement GetPersonalAccessToken 2022-11-22 13:31:52 -03:00
Milan Pavlik
4913d48793 [public-api] Create Personal Access Token implementation 2022-11-22 11:39:52 -03:00
Milan Pavlik
b30941bc83 [public-api] Implement list personal access tokens 2022-11-22 06:53:51 -03:00
Milan Pavlik
1ef20eb7f5 [db] Add index to d_b_personal_access_token on createdAt 2022-11-22 05:43:51 -03:00
Laurie T. Malau
4cf5618eff [public-api] personal access token db model 2022-11-21 11:14:51 -03:00
Laurie T. Malau
ee08e7863c [db] Move db models to gitpod-db/go module 2022-11-21 08:37:50 -03:00
Alex Tugarev
d53155e8b2 [db/migration] add currency to stripe customer 2022-11-21 06:56:50 -03:00
Milan Pavlik
96874fa3bf Setup gitpod-db/go package 2022-11-18 11:32:48 +02:00
Alex Tugarev
c1697361e0 [server] fix persist of DBOAuthAuthCodeEntry (part 2) 2022-11-17 17:09:47 +02:00
Alex Tugarev
9e45cb089a [server] fix persist of DBOAuthAuthCodeEntry 2022-11-17 10:22:46 +02:00
Laurie T. Malau
3d3c50156d [public api] Enable dbsync for d_b_personal_access_token 2022-11-16 12:02:45 +02:00
Laurie T. Malau
d304ba5fba [db] Create d_b_personal_access_token 2022-11-16 00:29:45 +02:00
Alex Tugarev
771bf61865 [server] add logs to debug persistence error with userId 2022-11-15 16:35:45 +02:00
Milan Pavlik
d9755913dc [db] Log error when storing ssh public key 2022-11-15 16:09:45 +02:00
Milan Pavlik
3de81d3cd9 [server] Remove db-workspace-instance-usage 2022-11-14 16:53:44 +02:00
Jan Keromnes
56a4fe2895 [usage] Introduce an explicit CostCenter.BillingCycleStart time 2022-11-11 13:32:41 +02:00
Jean Pierre
993547c1dc
[code] sync profiles/collections (#13620)
* Add sync collections to sync server

* Add deleted column
2022-11-10 11:29:19 +01:00
Andrew Farries
901aff37d0 Add d_b_workspace_cluster table to sync config 2022-11-02 15:45:07 +01:00
Andrew Farries
15738648aa Make findFiltered respect soft deletion 2022-11-02 12:07:06 +01:00
Andrew Farries
36a496e1be Add failing test for findFiltered
Check that the method correctly excludes soft-deleted clusters.
2022-11-02 12:07:06 +01:00
Andrew Farries
7ad64ced9a Filter out deleted clusters in findByName 2022-11-02 12:07:06 +01:00
Andrew Farries
dd44961197 Change deleteByName to use soft deletion 2022-11-02 12:07:06 +01:00
Milan Pavlik
d64eb0cef0 [server] Do not fail joining a team you're already a member of 2022-11-02 11:42:07 +01:00