27 Commits

Author SHA1 Message Date
Gero Posmyk-Leinemann
435fa5e729
Opportunistic token refresh (for BitBucket Server) (#19715)
* [server] Introduce and use "reservedUntilDate" in TokenService

* Fix for extending reservations, and a bit of cleanup

* review comments
2024-05-13 18:15:51 +08:00
Jean Pierre
4ac04ee19e
[public-api] Migrate envvarService (#19067)
* Migrate envvarService

* update

* fix tests

* nit

* Fix

* Fix

* 💄

---------

Co-authored-by: Huiwen <mhqnwt@gmail.com>
2023-11-20 17:27:57 +02:00
Gero Posmyk-Leinemann
8d94dd8d01
Use User.fgaRelationshipsVersion instead of User.additionalAttributes.fgaRelationshipsVersion (#18838)
* [db] Add User.fgaRelationshipsVersion

* [server] Use User.fgaRelationshipsVersion
2023-09-29 09:34:07 +03:00
Jean Pierre
b95a4687bf
[fga] Introduce EnvVarService (#18503) 2023-08-16 22:12:42 +02:00
Gero Posmyk-Leinemann
909955d2c4
[db, ts] Introduce a generic db.transaction() (#17980)
* [ts] Upgrade inversify 5.0.1 -> 6.0.1

* [server, db] Introduce TransactionalDB for User, Workspace, Projects

* Fix tests
2023-06-21 16:12:11 +08:00
Sven Efftinge
097d178910
[server] remove user relation from gitpod_token (#17923) 2023-06-14 03:53:04 +08:00
Gero Posmyk-Leinemann
49c6e05130
Don't migrate technical users (#17786)
* [server] Don't migrate technical user, incl. rollback

* [server] Skip migration related test

* fix
2023-05-31 23:07:05 +08:00
Alex Tugarev
bac0eaec6b
[SSO] find organizational accounts by email – WEB-346 (#17614)
* [SSO] find organizational accounts by email

First try to look up accounts by `[subjectID, audience]` as composite key, then try to lookup by email address. The scope of this lookup is limited to the Org owning the SSO configuration.

* fix tests for /session endpoint handler

* rename to findOrganizationalUser

* fix test case

* added logging for "find by email" path
2023-05-16 00:09:00 +08:00
Alex Tugarev
4063c75f7d
[server] remove unused code in user-service.ts (#17613) 2023-05-15 19:02:00 +08:00
Andrew Farries
4b9a5fd5b1 Use a valid UUID for the admin user 2023-01-23 14:48:30 +01:00
Gero Posmyk-Leinemann
f0917a3721 [db] Create builtin-installation-admin-user 2023-01-20 11:27:27 +01:00
Christian Weichel
478a75e744 Switch license to AGPL 2022-12-08 13:05:19 -03:00
Sven Efftinge
1516e4c4df [server] restrict allowed phone numbers 2022-09-23 15:27:23 +02:00
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
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
Milan Pavlik
845e66c56b Format components/gitpod-db with prettier 2022-03-14 21:48:21 +05:30
Sven Efftinge
240197f239 [server] remove prebuilt time limit 2021-09-14 15:37:39 +05:30
Anton Kosyakov
f66598c82c [local-app] fix #5368: gracefully handle invalid tokens 2021-08-31 05:33:29 -03:00
Laurie T. Malau
6acd4f4a90 Remove references to allowsMarketingCommunication in test setups 2021-08-17 13:58:16 +02:00
Alex Tugarev
313fc79b91 remove custom Without type 2021-07-20 10:42:24 +02:00
rl-gitpod
f96392a1e4
[server] add OAuth2 server endpoints (behind a feature flag) (#4222)
to manage client application access to users Gitpod workspaces
2021-05-21 21:23:08 +10:00
Autofix
af51739d34 Autofix: trailing-spaces 2021-04-12 08:29:10 +02:00
Christian Weichel
b7dda84ad0 [license] Update license header from TypeFox GmbH to Gitpod GmbH 2021-01-04 15:12:02 +01:00
Christian Weichel
6974720578 Create a default Gitpod API token for each workspace 2020-09-22 12:14:07 +02:00
Christian Weichel
9e52bbd6d8 [server] Support API access through scoped bearer tokens 2020-09-18 12:31:42 +02:00
gitpod-init
24f7b609bf initial commit 2020-08-25 09:25:15 +00:00