452 Commits

Author SHA1 Message Date
Alex Tugarev
eb6ca45136 [gitpod-db] Fix AuthProviderEntryDBImpl.findByUserId 2023-02-15 11:54:20 +01:00
Brad Harris
dd9cc35f33 Adding a findById() to AuthProviderEntryDB 2023-02-14 17:20:19 +01:00
Brad Harris
d60d04c05f filter out org auth providers from user providers 2023-02-14 17:20:19 +01:00
Sven Efftinge
ebcf270b63 [migrations] added logs and air 2023-02-14 10:36:19 +01:00
Milan Pavlik
db05a7f5be [server] Typed workspace region 2023-02-10 15:26:15 +01:00
Sven Efftinge
f4f343f07c [db] optimize workspace update 2023-02-10 14:19:15 +01:00
Sven Efftinge
2d3b91db39 [gitpod-db] reduce migration batch size 2023-02-10 10:26:14 +01:00
Sven Efftinge
df16e84434 [db/long migration] organizationId on workspace 2023-02-10 09:35:15 +01:00
Sven Efftinge
7de05704b2 [server] set organizationid on workspace creation 2023-02-09 15:55:14 +01:00
Sven Efftinge
a0ec2078ea [db] workspaces get organizationid 2023-02-09 10:40:14 +01:00
Milan Pavlik
1d4cab9c8b [gorm] Ignore NotFound errors when logging 2023-02-08 14:54:46 +01:00
Sven Efftinge
74aa6db6e4 [ws-manager-api] Add region for cluster selection 2023-02-08 10:51:46 +01:00
Milan Pavlik
1dc48fbc23 [teams] Remove slug usage 2023-02-07 07:51:44 +01:00
Sven Efftinge
5082112863 [gitpod-db] Add region for cluster selection 2023-02-06 15:49:44 +01:00
Gero Posmyk-Leinemann
86ddf03542 [db] migration: add user.organizationId + index 2023-02-06 15:10:44 +01:00
Brad Harris
252d76b131 fixing test 2023-02-02 16:01:41 +01:00
Brad Harris
a376bcd445 enabling tests again 2023-02-02 16:01:41 +01:00
Brad Harris
f152269173 temporarily commenting out new organizationId test 2023-02-02 16:01:41 +01:00
Brad Harris
fff28968f1 Adds org id to auth providers & new api methods 2023-02-02 16:01:41 +01:00
Alex Tugarev
335c259004 [db-migrations] patch OAuthRevision migration
... and let it not unblock subsequent migrations on d_b_auth_provider_entry table.
2023-01-31 18:38:38 +01:00
Sven Efftinge
b67ae8179e [dashboard] user visible rename team->organization 2023-01-31 10:14:38 +01:00
Sven Efftinge
73f2a268ea synchronize migration 2023-01-30 11:17:37 +01:00
Gero Posmyk-Leinemann
ab6895e4b7 [db] Make 'leeway run components/gitpod-db:init-testdb' the new default for starting test dbs 2023-01-23 16:51:30 +01:00
Andrew Farries
4b9a5fd5b1 Use a valid UUID for the admin user 2023-01-23 14:48:30 +01:00
Milan Pavlik
e5c8da1491 [oidc] Implement Get OIDC Client Config API 2023-01-20 15:53:28 +01:00
Moritz Eysholdt
d467d37575 Fix Go DB test in GHA 2023-01-20 15:49:28 +01:00
Milan Pavlik
72a31730f7 [oidc] Delete OIDC Client Config API 2023-01-20 15:00:28 +01:00
Moritz Eysholdt
a8b928030c Add MySQL service 2023-01-20 14:44:28 +01:00
Gero Posmyk-Leinemann
f0917a3721 [db] Create builtin-installation-admin-user 2023-01-20 11:27:27 +01:00
Milan Pavlik
7012fe2ce3 [oidc] List client configs API implementation 2023-01-19 14:30:27 +01:00
Brad Harris
7208a1413e adding a sort by name 2023-01-19 09:17:27 +01:00
Milan Pavlik
fde5279d3a [db] Implement basic list oidc client configs 2023-01-19 08:26:26 +01:00
Milan Pavlik
abff6189f2 [db] Add organisationId to d_b_oidc_client_config + indices 2023-01-18 11:56:26 +01:00
Sven Efftinge
53333d2ec9 [server] create a freemium team when no team exist 2023-01-18 11:11:26 +01:00
Sven Efftinge
9b1917b68d [server] mandatory team name on update 2023-01-16 18:41:24 +01:00
Sven Efftinge
837844d7f8 [server] Added updateTeam call
see #5067
2023-01-16 18:41:24 +01:00
Sven Efftinge
3af4edc46c [server] migrate individual usage to teams 2023-01-13 09:11:52 +01:00
Gero Posmyk-Leinemann
51cd88a1f3 [db] Sync on connection initialization 2023-01-11 19:11:51 +01:00
Milan Pavlik
6fc1a75102 [iam] Implement COIDC CreateClientConfig RPC 2023-01-05 11:51:45 +01:00
Siddhant Khare
e4ce95251b bump: package @jmondi/oauth2-server 2023-01-04 10:14:44 +01:00
Milan Pavlik
0309d14721 [gitpod-db] Helper to construct db connection params from env 2022-12-21 10:07:30 -03:00
Brad Harris
a33857ed6d adding test for findTeams by slug 2022-12-20 15:39:29 -03:00
Brad Harris
be6ea7bc1a adding team.slug to findTeams query 2022-12-20 15:39:29 -03:00
Milan Pavlik
8a85247a56 [db] Support cipher-set in go 2022-12-20 12:56:29 -03:00
Milan Pavlik
9ca833a1cc [db] Support encrypted JSON in Go 2022-12-20 05:10:29 -03:00
Milan Pavlik
f9b429b0e0 [db] Support for encryption of db entries 2022-12-16 08:32:25 -03:00
Gero Posmyk-Leinemann
8a03b3a156 [installer, gitpod-db] Introduce database.ssl.ca 2022-12-15 12:29:24 -03:00
Sven Efftinge
256c896891 [db] handle race in gorm.Save
when calling `gorm.Save` concurrently, we see duplicate entry errors
because gorm is only trying to update and if that doe not succeed does
an insert.
2022-12-15 07:14:24 -03:00
Alex Tugarev
974cbcc531 [gitpod-db] Fix AuthCodeRepositoryDB.getByIdentifier 2022-12-15 05:43:24 -03:00
Alex Tugarev
e35b4690a1 [gitpod-db] add failing test for AuthCodeRepositoryDB.getByIdentifier 2022-12-15 05:43:24 -03:00