Commit Graph
39 Commits
Author SHA1 Message Date
Tuan Dang 200cefc1b2 Complete Azure integration 2023-03-02 22:12:56 +07:00
Aashish-Upadhyay-101 d537bd2f58 merge conflict resolve 2023-02-28 09:52:49 +05:45
Aashish-Upadhyay-101 2f045be8a4 missing break statement 2023-02-28 09:37:47 +05:45
Tuan Dang e80e8e00b1 Replace axios with request 2023-02-24 15:31:46 +07:00
Tuan Dang b906048ea1 Add axios-retry for Vercel integration for now 2023-02-24 00:52:43 +07:00
Tuan Dang 30b2b85446 Fix merge conflicts 2023-02-13 15:24:19 +07:00
Tuan Dang e53fd110f6 Checkpoint weaving frontend and backend MFA 2023-02-13 12:29:36 +07:00
Maidul Islam 2022988e77 Only allow sign up when invted 2023-02-12 10:34:32 -08:00
Maidul Islam 409de81bd2 Allow sign up disable 2023-02-12 09:34:52 -08:00
Maidul Islam 2fb4b261a8 Turn off auto delete and manual check ttl for token 2023-02-11 11:08:46 -08:00
Tuan Dang 68bf0b9efe Finish v1 Azure Key Vault integration 2023-02-06 17:57:47 +07:00
Tuan Dang 237a10da1e Update backend envars types and add STRIPE_PRODUCT_TEAM envar 2023-01-26 10:20:42 +07:00
Tuan Dang 01d969190b Begin service token data refactor 2022-12-30 23:57:21 +03:00
Tuan Dang 26fe1dd821 Move secret versioning and snapshot functionality into ee and begin license scoping 2022-12-25 17:08:21 -05:00
BlackMagiq a12ae350a7 Merge branch 'main' into feat/error-handling 2022-12-24 20:34:55 -05:00
Hüseyin Berke Bütün d72e113570 feat: Patch Router#handle to catch Promise Rejection
In order to catch Promise rejections inside and outside of middlewares
as well as in route logic we need to patch `Router#handle` and add
.catch() to the function. With that addition it is possible to
catch rejections and handle inside `requestErrorHandler` middleware.
2022-12-24 23:36:58 +01:00
Hüseyin Berke Bütün 28818db757 refactor: Prefer use of RequestError and next() function on middlewares
Added:
- New error types such as `IntegrationNotFoundError`,
  `WorkspaceNotFoundError`, `AccountNotFoundError' and more.

Refactored:
- Refactored most of the middlewares and very little number of helper
  functions to use RequestError
- Deleted unused imports

Changed:
- Some of the error types in middlewares changed to more related error
  types.
- Environment variable of 'VERBOSE_ERROR_OUTPUT' changed to more
  reliable validation method in `config/index.ts` as per @dangtony98
  requested.
2022-12-24 20:52:26 +01:00
Tuan Dang 79333657ed Add parseInt to SMTP_PORT envar 2022-12-24 14:25:39 -05:00
Tuan Dang 3341b08b22 Revamp contributing development docs 2022-12-24 14:21:21 -05:00
Tuan Dang d4bab09927 Add self-hosting email configuration docs + examples, correct SMTP setup for SendGrid/Mailgun-specific setup 2022-12-24 11:10:56 -05:00
Tuan Dang 3f2d011fba Update contributing dev docs and envars, remove PUBLIC_KEY, PRIVATE_KEY server envar requirement 2022-12-22 13:36:15 -05:00
BlackMagiq 55996440da Merge pull request #155 from jonerrr/main
Update envars for SMTP for greater versatility.
2022-12-22 00:22:47 -05:00
Tuan Dang 7763e33de6 Fix errors and complete v1 full-loop of GitHub integration with repository secrets 2022-12-21 23:15:22 -05:00
Jonah 68bf1f6c8a update env vars for mail 2022-12-21 21:27:37 -05:00
Hüseyin Berke Bütün bd9041a62c feat: Add central error handler
Added:
- Added Midleware to capture and handle all errors
    - will catch error from `throw ...` and `next(...)`
- Added RequestError base error class to build consistent error objects
- Added common errors like `UnauthorizedRequestError`, `BadRequestError`
- Added consistent Logging solution using `winston`
    - Supports Loki Transporter using `winston-loki`
- Outputing Legal disclaimer to console when `TELEMETRY_ENABLED=true`

Changed:
- Changed console.log to getLogger() favor of using consistent logging
2022-12-22 00:55:41 +01:00
BlackMagiq 96caa587d6 Merge branch 'bot' into bot 2022-12-21 17:11:09 -05:00
Tuan Dang 2d77fe9ca3 Fix lint issues 2022-12-19 12:05:19 -05:00
George Gale 8bfab95cc7 Merging upstream changes. 2022-12-19 10:58:57 +01:00
Tuan Dang 200bb12ad8 Move CLIENT_ID envars to be fetched from backend for (cloud) integration options 2022-12-18 16:10:58 -05:00
Tuan Dang 547555591b Refactor integrations logic and replace hardcoded client ids with envars 2022-12-18 12:18:50 -05:00
George Gale 75020568d3 Started Github integration. 2022-12-18 17:45:31 +01:00
Tuan Dang fe17d8459b Begin Netlify integration 2022-12-13 21:12:40 -05:00
Tuan Dang 3e623922b4 Preliminary Vercel integration 2022-12-13 13:59:21 -05:00
Reginald Bondoc da999107f3 Add local SMTP server for development 2022-12-10 21:10:05 +01:00
Tuan Dang 4ea284a1c5 Patch passing through stripe envars into frontend 2022-11-26 17:54:52 -05:00
Tuan Dang 7e4b38a2f1 Add opt-out backend telemetry and fix dev compose frontend envars 2022-11-23 19:25:48 -05:00
Tuan Dang 4778e1ce6f Fix compose file platform target 2022-11-20 23:44:51 -05:00
Tuan Dang 896760903a Refactor envars for easier self-hosting 2022-11-20 22:54:38 -05:00
Maidul Islam bea0ff6e05 Add frontend, backend and CLI 2022-11-17 17:54:35 -05:00