Commit graph

38 commits

Author SHA1 Message Date
Kamil Kisiela
3b6ba14840
Update ci.yaml 2022-10-14 13:09:55 +02:00
Dotan Simha
153bc9abe6
Sanitize branch name to comply with Docker tag (#484) 2022-10-14 10:21:08 +00:00
Laurin Quast
dc78518241
yarn yarn YARN (#454) 2022-10-05 13:43:58 +02:00
Laurin Quast
de003e8a99
bruh (#452) 2022-10-05 13:21:02 +02:00
Laurin Quast
8b086189fe
build and publish main (#445)
* build and publish main

* add latest tag
2022-10-05 12:41:59 +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
7bee6a3e70
Use ETag and If-None-Match in Apollo Router (#433) 2022-09-30 14:51:01 +02:00
Kamil Kisiela
0a6f5ffb66
Use Apollo Router v1 (#416) 2022-09-29 10:55:26 +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
Laurin Quast
a03cc58e5b
feat: remove app next.js built-time environment variable requirement (#382)
* feat: retreive stripe public key via runtime environment variable instead of a build-time environment variable

* feat: retreive google and github enabled environment variable  via runtime environment variable instead of a build-time environment variable

* feat: retreive app base url  environment variable via runtime environment variable instead of a build-time environment variable

* feat: retreive mixpanel token environment variable via runtime environment variable instead of a build-time environment variable

* lazy initialize app info

* feat: provide ga tarcking id and crisp website id via environment variable

* make docs url optional

* feat: load sentry config from environment variables

* document hive app environment variables

* add application dockerfile

* add docker build instructions

* lul

* set working directory

* pls fix

* lol this is apollo-router not graphql-hive

* feat: only show sentry stuff if sentry environment variables are set

* use LTS node version

* No mixpanel

* Fallback

Co-authored-by: Kamil Kisiela <kamil.kisiela@gmail.com>
2022-09-21 12:47:40 +02:00
Kamil Kisiela
6f7c51a62f
External schema composition (#373) 2022-09-16 13:30:50 +02:00
Ryan Perry-Nguyen
6f0493dec4
ci: skip schema-check if hive token isn't available (#372) 2022-09-16 12:41:11 +02:00
Ryan Perry-Nguyen
985c25edd6
ci: use node-version-file (#356) 2022-09-14 09:52:20 +02:00
github-actions[bot]
bce8aa2c16
Upcoming Release Changes (#358) 2022-09-13 19:40:32 +02:00
Kamil Kisiela
6b18ec41f3
Update cd.yaml 2022-09-13 19:25: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
8d50fe24f8 Use GitHub Container registry 2022-08-31 16:56:14 +02:00
Rob Crowe
a52340957d
Publish router docker image (#324)
Given router isn't get versioned, drop semver tags for now
2022-08-31 16:51:30 +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
2e3ccfe033
map a step output to a job output (#270) 2022-08-08 15:05:22 +02:00
Kamil Kisiela
449b0f6e37
Initial version a plugin for Apollo Router (#266) 2022-08-08 14:58:22 +02:00
Kamil Kisiela
c083a52999
Use timeout-minutes 2022-06-30 21:45:47 +02:00
Kamil Kisiela
fa5045f188
Use graphql as direct dependency of CLI (#168)
* ESLint cache
2022-06-29 14:58:08 +02:00
Kamil Kisiela
d969ee7cc0
Improve integration tests of CLI (#174) 2022-06-24 16:51:53 +02:00
Kamil Kisiela
14aac7a03e
Create codeql-analysis.yml (#173) 2022-06-24 09:07:23 +02:00
Kamil Kisiela
c82b22ac05
Simplify the schema publishing logic (#156)
- Removes the uniqueness requirement of commit it
- Makes the logic of schema publishing simpler and more readable
- Updating the service url results in a new version (previously an update of existing version)
- Introduces a requirement of defining service url in federated projects (new `SchemaPublishMissingUrlError` type)
2022-06-23 10:00:43 +02:00
Dimitri POSTOLOV
f4217458dc
add Lint ESLint in CI and group lint actions (#151) 2022-06-21 20:21:42 +02:00
Kamil Kisiela
1a51361ae3
Update cd.yaml 2022-05-25 16:08:15 +02:00
Kamil Kisiela
9eb3b5cd52
Use latest changesets/action (#89) 2022-05-25 15:32:22 +02:00
Kamil Kisiela
20e3129caa
$ prettier <all> (#46)
Co-authored-by: Dimitri POSTOLOV <dmytropostolov@gmail.com>
2022-05-24 16:31:53 +03:00
Kamil Kisiela
65174ed2f5
A bit more logging in sentry (#54)
* A bit more logging in sentry

* Make sure we reach 100ms delay in buffer-esimator test

* Increase fetch-depth

* remote only

* Run turbo setup

* no preflight
2022-05-23 11:59:49 +02:00
Kamil Kisiela
57ef12defa
Run jobs in parallel (#48) 2022-05-20 13:51:02 +02:00
Kamil Kisiela
908061a4e5
Run workflows on all pull requests (#47)
* Update integration.yaml

* Update pr.yaml
2022-05-20 11:55:14 +02:00
Kamil Kisiela
7558d0b4e7
Update release.yaml 2022-05-18 09:57:25 +02:00
Kamil Kisiela
3305550cde
Update pr.yaml 2022-05-18 09:57:15 +02:00
Kamil Kisiela
a1985bf61e
Update integration.yaml 2022-05-18 09:57:03 +02:00
Kamil Kisiela
dc3bc1ec87 Hello 2022-05-18 09:26:57 +02:00