Commit graph

82 commits

Author SHA1 Message Date
Laurin Quast
d1ae8d02cf
upgrade @envelop/sentry (#682) 2022-11-25 08:46:53 +00: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
renovate[bot]
93bd63cf47
Update dependency got to v12.5.3 (#671)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-11-24 10:07:47 +01:00
renovate[bot]
3083386322
Update dependency tslib to v2.4.1 (#582)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-11-24 09:59:20 +01:00
Kamil Kisiela
e7bbd01212
Update tsup to v6.5.0 (#674) 2022-11-23 10:52:58 +01:00
github-actions[bot]
ca9411399c
Upcoming Release Changes (#669)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-11-22 18:03:46 +01:00
Kamil Kisiela
847c55f5ca Remove 'bin' field from @hive/server 2022-11-22 14:20:36 +01:00
Ryan Perry-Nguyen
e288d323cc
Support log level and request logs (#612)
Co-authored-by: Kamil Kisiela <kamil.kisiela@gmail.com>
2022-11-22 11:52:26 +01:00
renovate[bot]
ae3e73de6a
Update dependency fastify to v3.29.4 [SECURITY] (#661)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-11-22 11:31:53 +01:00
Kamil Kisiela
6a3a0e2b33
Update Sentry to latest (#662) 2022-11-22 11:21:19 +01:00
github-actions[bot]
8b5c7098f8
Upcoming Release Changes (#660)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-11-21 17:11:31 +01:00
Kamil Kisiela
935cc59f6a
Do not capture GraphQLError exceptions (#653) 2022-11-15 09:21:30 +00:00
Kamil Kisiela
9ac112db1e
Ignore unknown graphql_client_name 2022-11-14 14:47:53 +01:00
renovate[bot]
65efbb2e70
Update dependency graphql-yoga to v3.0.0-next.12 (#556)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-11-14 14:14:13 +01:00
renovate[bot]
26d0636e6b
Update envelop (#639)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-11-11 09:59:34 +01:00
github-actions[bot]
3cd155e360
Upcoming Release Changes (#625)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-11-10 13:47:59 +01:00
renovate[bot]
4f8ce0ac8a
Update dependency got to v12.5.2 (#549)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-11-10 12:44:20 +01:00
Laurin Quast
bf11f56469
enable organization <-> oidc linking feature (#605) 2022-11-07 11:51:01 +01:00
Kamil Kisiela
6305788f93
Use sourcemaps in dev (#598) 2022-11-04 13:46:04 +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
Denis Badurina
9e81130c12
TS skipLibCheck everywhere, starting from root tsconfig (#588) 2022-11-03 15:00:58 +00:00
Denis Badurina
ac7a5b0341
Use workspace:* for workspace packages (#576) 2022-11-01 20:02:56 +01:00
Dimitri POSTOLOV
12ceda69dc
Use pnpm instead of yarn (#477)
Co-authored-by: enisdenjo <badurinadenis@gmail.com>
Co-authored-by: Denis Badurina <denis@domonda.com>
2022-11-01 02:11:53 +02:00
github-actions[bot]
80fba5fea0
chore(release): update monorepo packages versions (#565)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-10-31 10:18:38 +01:00
Miles Bardon
f9cd014ff5
docs: Fixing CLI config docs and server readme envs (#546) 2022-10-31 09:48:13 +01:00
Kamil Kisiela
c47df8338a
Ignore GraphQLError in Sentry plugin (#555) 2022-10-27 11:15:24 +02:00
github-actions[bot]
e8579d00c4
chore(release): update monorepo packages versions (#542)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-10-27 11:14:58 +02:00
Kamil Kisiela
e85d8220a7
Ensure user and personal org creation after successful sign up/in (#518) 2022-10-25 16:12:43 +02:00
Saihajpreet Singh
af772fbdeb
update to next yoga version (#497)
* udpate to next yoga version

* sanitize branch
2022-10-20 11:54:13 +00:00
renovate[bot]
e48b0ce057
Update dependency @envelop/graphql-modules to v4.0.2 (#488)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-10-18 17:09:51 +02:00
renovate[bot]
0a55dd49a5
Update dependency @envelop/sentry to v4.0.2 (#489)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-10-18 17:09:44 +02:00
github-actions[bot]
e899872601
chore(release): update monorepo packages versions (#501)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-10-18 09:39:49 +02:00
renovate[bot]
0db43b7219
Update dependency @envelop/core to v3.0.1 (#483)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-10-14 13:34:14 +02:00
Kamil Kisiela
79187c8f19
Use Sentry in CF Workers (#460) 2022-10-07 12:08:29 +02:00
Kamil Kisiela
3b3ec5aa76
Handle */* as well 2022-10-06 16:19:52 +02:00
Kamil Kisiela
65546ba49b
Use application/json when accept is missing (#462)
* Use application/json when accept is missing

* Update graphql-handler.ts
2022-10-06 16:02:45 +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
Laurin Quast
7990f9f03f
feat: treat empty string environment variable as undefined (#449) 2022-10-05 09:22:20 +02:00
Laurin Quast
7656b7957d
feat: clean app env (#422)
* feat: document environment variables

* more env documentation

* wip

* add noop for backend env

* typo

* feat: embed environment validation/parsing in built app

* fix the sentry integration 😌

* feat: use env

* feat: decode the usage service environment

* feat: decode the webhooks service environment

* feat: disallow process.env

* feat: decode the tokens service environment

* feat: decode the stripe-billing service environment

* feat: decode server service environment

* feat: decode schema service environment

* feat: decode rate-limit service environment

* feat: decode usage-estimator service environment

* feat: decode emails service environment

* adjust env

* remove commented out code

* adjust env variable name

* use separate env variables

* env fixes

* more environmental stuff :)

* ...

* replace POSTGRES_CONNECTION_STRING with specific environment variables

* handle optional clickhouse (for now :)

* add missing POSTGRES_DB environment variable

* make ENVIRONMENT optional

* the other matters lol

* feat: support delivering mails via SMTP (#412)

* feat: optional CDN (#410)

* feat: optional CDN

* enable CDN in deployment

* enable the CDN in integration tests

* add sendmail provider

* remove unused env variables from the deployment

* only show login alert when legacy auth0 migration is enabled

* feat: make TOKENS_ENDPOINT mandatory and RATE_LIMIT_ENDPOINT optional for usage service

* feat: upgrade supertokens and enable server side email confirmation (#423)

* feat: upgrade supertokens and enable server side email confirmation

* feat: opt into required email verification

* docs: self hosting (#428)

* docs: self-hosting quick start

* Update packages/web/docs/pages/self-hosting/get-started.mdx

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

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

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

* feat: optional GitHub and Slack environment variables (#440)

* feat: optional github integration environment variables

* feat: optional slack integration (#441)

* use latest stable supertokens

Co-authored-by: Kamil Kisiela <kamil.kisiela@gmail.com>
2022-10-04 14:30:21 +02:00
Kamil Kisiela
3b9722baa6
Update got to latest and tag clickhouse exception (#437) 2022-10-03 10:37:31 +02:00
github-actions[bot]
fedd03a3c9
Upcoming Release Changes (#436) 2022-09-30 17:38:59 +02:00
Kamil Kisiela
784f0c0251
Add graphql_client_name tag and drop calls from Hive Client (sentry) (#415) 2022-09-28 15:14:45 +02:00
Kamil Kisiela
005c012cfd Add the name of graphql client to Sentry context 2022-09-28 13:18:22 +02:00
github-actions[bot]
733bc165ad
chore(release): update monorepo packages versions (#400)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-09-22 19:18:51 +02:00
github-actions[bot]
50405d0bb3
chore(release): update monorepo packages versions (#396)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2022-09-22 13:47:18 +02:00
Kamil Kisiela
2931441473
Reduce the number of active connections (#388) 2022-09-21 11:38:41 +02:00
Kamil Kisiela
d40f094567
EnvelopError was not skipped by default in Sentry plugin (#378)
Related n1ru4l/envelop#1526
2022-09-16 18:01:12 +02:00
Kamil Kisiela
9b6a6aed5e Collect transactions for Hive CLI and Hive App 2022-09-16 15:15:12 +02:00
Kamil Kisiela
aca8170421
Limit the number of db connections here and there (#374) 2022-09-16 11:01:32 +02:00
Laurin Quast
7b9c2ec90a
feat: import auth0 accounts into supertokens when doing a password reset (#349)
* feat: import auth0 accounts into supertokens when doing a password reset

* refactor: more detailed error messages
2022-09-09 14:36:18 +02:00