Commit graph

27 commits

Author SHA1 Message Date
renovate[bot]
0d82a1729a
fix(deps): update sentry to v7.30.0 (#1023)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-01-16 10:24:22 +02:00
Dotan Simha
20edc8c5e5
Partial dependencies upgrade and cleanup for old packages (#904) 2022-12-28 00:36:08 +02:00
Dotan Simha
69ff4d3a24
Replace tgz artifacts with Docker images and refactor all CI pipelines (#808) 2022-12-20 16:34:46 +02:00
Kamil Kisiela
55bbfb0963
Create bucket if non-existing, do not abort on exit (#730) 2022-12-02 10:25:10 +01:00
Kamil Kisiela
a031bb642c
Add current month to the date ranges in the admin panel (#708) 2022-11-29 12:25:51 +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
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
6a3a0e2b33
Update Sentry to latest (#662) 2022-11-22 11:21:19 +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
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
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
Kamil Kisiela
e85d8220a7
Ensure user and personal org creation after successful sign up/in (#518) 2022-10-25 16:12:43 +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
Laurin Quast
d73de654eb
feat: docker images (#386)
* feat: build images

* :)

* (:

* try caching

* naming adjustments

* feat: add some labels

* chore: run integration tests on the built docker images

* feat: use hcl file and tag images with the branch name

* fix hash

* build all lol

* feat: only push stuff on non forks

* only push a few images :)

* load that s

* comon

* embed port in docker image

* increase timeout

* don't run stuff multiple times
2022-09-23 14:39:28 +02:00
Kamil Kisiela
45946f0c5e
NextJS 12.3.0 (#348)
* NextJS 12.3.0
* Console log Error.getInitialProps
2022-09-08 19:41:05 +02:00
Kamil Kisiela
7dd5d67334
Bump connection and authentication timeouts in Kafka (#332)
* Bump kafkajs
2022-09-02 10:02:36 +02:00
Kamil Kisiela
1152a1b03b
Bump ts-node to solve ERR_LOADER_CHAIN_INCOMPLETE error (#326)
Co-authored-by: Laurin Quast <laurinquast@googlemail.com>
2022-08-31 14:32:03 +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
5cf6b92766
Use Slonik v30 (#282) 2022-08-11 10:58:36 +02:00
Kamil Kisiela
0fd7e9eea3
Get Started checklist (#232) 2022-07-11 18:22:07 +02:00
Kamil Kisiela
605f52319a
Enable sampling for selected operations in Sentry (#224)
Instead of TEST_FILTER use the same logic as when running jest fileOrPattern
2022-07-05 17:29:39 +02:00
Dimitri POSTOLOV
bd3100d2a6
enable and fixes errors for @typescript-eslint/no-floating-promises rule (#150)
* enable rule and update eslint deps

* add return types

* fixes

* fix storage migration

* fix typecheck

* fix integrations tests

* fix last issues

* Update packages/libraries/client/src/client.ts

Co-authored-by: Laurin Quast <laurinquast@googlemail.com>

Co-authored-by: Laurin Quast <laurinquast@googlemail.com>
2022-06-23 12:04:10 +02:00
Kamil Kisiela
24f7d9bf61
Use paginated table in Admin Stats (#138) 2022-06-14 08:24:10 +02:00
Kamil Kisiela
86f5945aab
Fix missing dependencies between packages (#121)
Why?  Few reasons:

- tsup treats dependencies as external code and does not bundle them
- without dependencies turborepo will always serve stale code when some of dependencies changed

Moving internal dependencies to devDependencies makes tsup treat them as non-external and turborepo still keep tracks of relations
2022-05-27 14:15:11 +02:00
Kamil Kisiela
dc3bc1ec87 Hello 2022-05-18 09:26:57 +02:00