Commit graph

62 commits

Author SHA1 Message Date
Kamil Kisiela
97f15a2d58
Fix reporting of Invalid Token error to Sentry (#1184) 2023-01-30 18:32:15 +01:00
Laurin Quast
a9087915d8
chore: move integration-tests to use the client preset (#1180) 2023-01-30 11:09:44 +01:00
Laurin Quast
c8d6aa4a27
feat: support new cdn tokens (#1061) 2023-01-27 12:59:09 +01:00
Laurin Quast
162bda92d9
feat: use s3 bucket for validating CDN access tokens (#1143) 2023-01-26 16:36:49 +01:00
Kamil Kisiela
fcec5f7b18
Pass errors coming from the external composition to the end-user (#1132) 2023-01-25 16:59:47 +01:00
Laurin Quast
dfd1d37e96
refactor: change dependency chain (#1127) 2023-01-25 09:10:29 +00:00
Laurin Quast
a505bcfbe0
Revert "feat: read legacy s3 key from s3 for artifact API requests [3/4]" (#1120) 2023-01-24 17:54:30 +01:00
Laurin Quast
c85d8aa0d0
feat: read legacy s3 key from s3 for artifact API requests [3/4] (#1005) 2023-01-24 15:03:04 +01:00
Laurin Quast
e3a3667c28
feat: store legacy cdn keys on s3 [1/4] (#1003) 2023-01-23 17:21:02 +01:00
Denis Badurina
8287a51255
prettier should be responsible for import sorting instead of eslint (#1027) 2023-01-23 10:30:38 +01:00
Kamil Kisiela
5548a7bb32
Avoid overfetching and get operation's body on-demand (#1058) 2023-01-18 14:38:56 +01:00
Kamil Kisiela
f0af9f2e67
Use ClickHouse Cloud for READ operations and drop legacy tables (#1031) 2023-01-17 11:45:09 +01:00
Laurin Quast
74b0af85ae
feat: integration test apollo gateway + server compatibility (#988) 2023-01-12 10:55:28 +01:00
Kamil Kisiela
21a135b9d4
Fix the default retention period of personal plans in PG (#949) 2023-01-05 10:27:42 +00:00
Kamil Kisiela
a972fe26f2
Improvements in change detection and the strictness of the registry (#930) 2022-12-30 14:51:42 +00:00
Dimitri POSTOLOV
bd5496ebff
[🔧 ESLint] several different rules fixes (#737) 2022-12-28 21:38:03 +01:00
Dimitri POSTOLOV
7ad5e26c34
[🔧 ESLint] import sort (#736) 2022-12-28 20:22:54 +01:00
Kamil Kisiela
d185e4f24e
Use named arguments in createToken (seed) (#918) 2022-12-28 12:35:44 +00:00
Dotan Simha
34b80e9492
Drop dockest, refactor integration testkit, and run all integration tests in parallel (#883)
Co-authored-by: Kamil Kisiela <kamil.kisiela@gmail.com>
2022-12-28 10:37:23 +01:00
Laurin Quast
72b036a308
feat: more granular configuration of OIDC endpoints (#835) 2022-12-20 13:18:05 +01:00
Denis Badurina
f6090f1d41
fix(api): Synchronise schema publishing per target (#764)
Co-authored-by: Kamil Kisiela <kamil.kisiela@gmail.com>
2022-12-15 20:51:35 +01:00
Dimitri POSTOLOV
01124cd5a3
[🔧 ESLint] fixes for unicorn/numeric-separators-style rule (#735) 2022-12-08 08:18:48 +01:00
Kamil Kisiela
6536f48a66
publishing composable schema with the extension of Query should work (#762) 2022-12-07 16:51:20 +00:00
Kamil Kisiela
686f2e2b5a
Ignore build error of the previous version when experimental acceptBreakingChanges is enabled (#761) 2022-12-07 12:24:11 +01:00
Kamil Kisiela
86161052bd
Transfer ownership of an organization (#732) 2022-12-07 11:36:52 +01:00
Laurin Quast
7e3cf3ec4b
fix: remove /sdl part of the artifacts cdn url (#755) 2022-12-06 11:11:09 +00:00
Laurin Quast
19b9d2596e
feat: support e-tag on artifact CDN handler level (#744) 2022-12-06 12:01:17 +01:00
Laurin Quast
f0735fad28
feat: federation 2 service container (#743) 2022-12-06 12:01:03 +01:00
Laurin Quast
265313cd8d
feat: show cdn stuff for self-hosted version (#725) 2022-12-02 09:19:57 +01:00
Laurin Quast
8412a34e1a
new artifacts API (#692)
Co-authored-by: Kamil Kisiela <kamil.kisiela@gmail.com>
2022-12-01 11:08:52 +01:00
renovate[bot]
1afe0ec73a
Update dependency @theguild/prettier-config to v1 (#676)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Kamil Kisiela <kamil.kisiela@gmail.com>
2022-11-24 10:00:41 +00:00
Kamil Kisiela
73adb11a20
Use null when token is not found (#658) 2022-11-21 17:23:22 +01:00
Dotan Simha
c4a0cac755
Improve rate-limit email title (#564)
Co-authored-by: Kamil Kisiela <kamil.kisiela@gmail.com>
2022-11-10 14:19:55 +01:00
Laurin Quast
991c82693b
feat: OIDC organisation integration (#524)
* feat: support login via okta

* add deployment config

* feat: automatically start okta login when visiting /auth with okta provider query parameter

* remove trailing slash from base url

* laurin pls

* ...

* adjust deployment url

* we dont need this

* docs: document how to enabled Google and GitHub social login (#511)

* docs: document how to enabled Google and GitHub social login

* Apply suggestions from code review

* Apply suggestions from code review

* docs: add Okta instructions

* fix typo

* add database migration

* feat: env decoding

* auto generate id

* add generates types for the postgres table

* implement crud graphql fields for the oidc integration entites

* add unique constraint for the oidc domain column

* use correct sql query for updating an oidc integration

* return organization from deleteOIDCIntegration ok result

* add crud forms to the settings page

* update integration test fixture value

* drop unique constraint for oidc_integrations.domain as this would allow a malicous user to block another account from using a domain

* move notice to isolated component

* apply url normalization in a central place

* implement supertokens provider and overrides for dynamic oidc provider integrations

* relocate code to correct files

* prettify oidc crud forms

* replace Query.isOIDCIntegrationFeatureEnabled with the Organization.viewerCanManageOIDCIntegration field

* do not show oidc integrations for personal organizations + disable crud endpoints if the feature is disabled

* load oidc integration for the supertokens flow via trpc from the server

* prepare encryption secret within constructor

* add user to organization upon oidc login

* login via oidc does not create a personal organization

* redirect oidc user to oidc organization

* disallow oidc users to create an organization

* disallow oidc accounts joining another organization

* add test for updating an oidc integration

* enhance ui

* add documentation for OIDC SSO

* add more tests

* import Callout component

* update snapshots

* rename field User.isLinkedToOIDCIntegration to User.canSwitchOrganization to be more decriptive

* add traling new line

* gracefully handle unique constraint

* upgrade supertokens-auth-react and adjust the code in order to remove the global preApiHook

* sync image versions with tests

* remove obsolete comment

* rename database column

* bruv

* add test for oidc user deletion
2022-11-03 16:45:17 +01:00
Kamil Kisiela
e8287d2abc
Ensure no parsing errors in usage reports (#496)
* Ensure no parsing errors in usage reports
* Report back the number of accepted and rejected operations
2022-10-17 12:49:30 +00:00
Kamil Kisiela
2ddc64b145
No access by default when generating tokens (#464)
Closes #458
2022-10-07 18:14:03 +02:00
Saihajpreet Singh
642daaf494
Use Envelop v3 and GraphQL Yoga v3 (#443)
Co-authored-by: Arda TANRIKULU <ardatanrikulu@gmail.com>
Co-authored-by: Kamil Kisiela <kamil.kisiela@gmail.com>
2022-10-06 13:48:01 +02:00
Kamil Kisiela
6f7c51a62f
External schema composition (#373) 2022-09-16 13:30:50 +02:00
Davé
6984ef97a6
Fix URL after runnin Hive CLI Publish - Closes #361 (#362)
Co-authored-by: Kamil Kisiela <kamil.kisiela@gmail.com>
2022-09-14 11:45:19 +02:00
Kamil Kisiela
30f11c4005
Temporary experimental_acceptBreakingChanges flag (#357) 2022-09-13 19:14:21 +02:00
Laurin Quast
6540155fc7
feat: replace auth0 with supertokens (#303)
* add supertoken container to docker-compose file

* yeah I am sorry this one big commit and I am ashamed of it

* use logOut function

* feat: show header on 404 page

* feat: better handling for organization cookie when not authenticated

* wrap it

* check session within server side props

* add is_admin flag user migration

* simplify and annotate the config

* fix: handle status codes + fix email/password sign up with import from auth0

* no hardcoded env pls

* decode process.env

* secure update user id mapping via a key

* fix: login form

* lol we don't need to hit the API

* fix: do graphql api authorization via authorization header instead of cookie

* implement isAdmin flag

* fix: types :)

* skipit

* yo we can run this

* set env variables

* disable because it annoys the hell out of me

* use the right host

* add not about token length

* refactor: decode environment variables

* feat: store external user id from guthub/google provider in the database

* workaround supertokens omitting null values from the token

* re-enable check

* i have no time for this shit

* add missing env variable

* fix: email test; missing domain extension

* configure pulumi deployment

Co-authored-by: Kamil Kisiela <kamil.kisiela@gmail.com>
Co-authored-by: Dotan Simha <dotansimha@gmail.com>

* configure pulumi deployment

Co-authored-by: Kamil Kisiela <kamil.kisiela@gmail.com>
Co-authored-by: Dotan Simha <dotansimha@gmail.com>

* configure pulumi deployment

Co-authored-by: Kamil Kisiela <kamil.kisiela@gmail.com>
Co-authored-by: Dotan Simha <dotansimha@gmail.com>

* configure pulumi deployment

Co-authored-by: Kamil Kisiela <kamil.kisiela@gmail.com>

* fix: env names

* fix: link google account to the correct db record

* feat: email confirmation emails

* ?

* bump ts-node

* fix types

* omit package form the bundle

* remove it from dependencies...

* add emails apckage to dev deps

* resolve eslint issues

* remove comments

* update dev info + change env variable (no need to expose it on the frontend)

* use correct user id lol

Co-authored-by: Kamil Kisiela <kamil.kisiela@gmail.com>
Co-authored-by: Dotan Simha <dotansimha@gmail.com>
2022-09-06 09:38:31 +02:00
Kamil Kisiela
8cd7a4a885
New invitation system (#315)
* New invitation system

* Fix format

* Deployment
2022-08-25 21:01:37 +02:00
Kamil Kisiela
db19282bf8
Implement new ClickHouse DB structure (#304)
FF_CLICKHOUSE_V2_TABLES
2022-08-23 12:53:22 +02:00
Kamil Kisiela
d02f9efdf0
Initial Emails service (#261)
* Initial Emails service

* Fix yarn.lock

* Metrics

* Fixes
2022-08-12 14:51:09 +02:00
Kamil Kisiela
52969c0632
Hash operation based on its body, name, list of sorted coordinates (#283)
* Hash operation based on its body, name, list of sorted coordinates

* Support Docker Compose v2

* martynka

* Move hashing behind cache

* Add comments

* Move transformation of coordinates to the caching layer

* Add another test
2022-08-12 11:23:07 +02:00
Kamil Kisiela
5a70aee15b
One-time invitation link (#258)
Closes #250
2022-07-20 17:02:04 +02:00
Kamil Kisiela
9e90b1a53d
Client exclusions in breaking change detection (#243)
* Replace date-fns-tz with Intl.DateTimeFormat
2022-07-19 16:24:41 +02:00
Kamil Kisiela
0fd7e9eea3
Get Started checklist (#232) 2022-07-11 18:22:07 +02:00
Kamil Kisiela
069e2ecef0
Update cleanId and make redirect when renaming target, project or org (#229) 2022-07-06 19:30:51 +02:00
Kamil Kisiela
c3e4619ba3
Publish new version if SDL is different but no changes in types and fields (#226) 2022-07-05 18:10:26 +02:00