Commit Graph
70 Commits
Author SHA1 Message Date
Tuan Dang a6c8638345 Refactor infisical-node to config file for birds eye view of envars 2023-03-15 00:09:40 +07:00
Tuan Dang 7fd06e36bc Complete preliminary addition of infisical-node to support service tokens 2023-03-14 16:38:30 +07:00
Maidul Islam 0794b6132a auto create user for dev mode 2023-01-23 20:57:59 -08:00
Maidul Islam b8fa5e8a89 add method to get channel from user agent 2023-01-15 23:55:13 -08:00
Tuan Dang df7340e440 Fix merge conflicts 2023-01-04 21:31:58 +07:00
Tuan Dang c7fb9209c4 Complete v1 support for API key auth mode 2023-01-04 20:27:16 +07:00
Tuan Dang 9727075b0b Resolve merge conflicts 2023-01-03 15:59:37 +07:00
Tuan Dang c7c5a947d2 Modify secret snapshots to point to secret versions 2023-01-03 15:53:06 +07:00
Tuan Dang 72a9343a02 Fix merge conflicts 2023-01-02 22:51:25 +07:00
Tuan Dang 0aff94cfb3 Add action error 2023-01-01 10:55:23 +07:00
Tuan Dang 6f054d8f2c Add requireSecretAuth middleware 2023-01-01 10:36:07 +07:00
Tuan Dang b8a64714d2 Refactor auth middleware to accept multiple auth modes 2023-01-01 09:24:20 +07:00
Tuan Dang 0c6dfbe4b4 Fix commonjs import/export for patchRouterParam and make secret versioning/snapshots compatible with prev unversioned secrets 2022-12-26 17:52:13 -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
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
Tuan Dang 78a52422a2 Patch Netlify integration cases, add new docs for Heroku, Vercel, and Netlify 2022-12-21 01:55:23 -05:00
Tuan Dang 1757f0d690 Complete v1 loop for bot-based integrations 2022-12-08 23:22:44 -05:00
Tuan Dang 46fe724012 Begin developing bot, event, and integration pipeline 2022-12-06 00:23:16 -05:00
Maidul Islam bea0ff6e05 Add frontend, backend and CLI 2022-11-17 17:54:35 -05:00