Commit Graph
5211 Commits
Author SHA1 Message Date
Vladyslav Matsiiako 618dc10e45 Added .NET to available frameworks 2022-12-31 01:11:13 -05:00
Tuan Dang 01d969190b Begin service token data refactor 2022-12-30 23:57:21 +03:00
Vladyslav Matsiiako 6fa84bf0cb Fix merge conflicts 2022-12-28 13:42:27 -05:00
akhilmhdh c653f807f4 fix(api-frontend): resolved failure in inviting existing infisical users to organization 2022-12-27 23:22:47 +05:30
akhilmhdh c28d857086 fix(backend): resolved workspace membership invite failure 2022-12-27 23:22:47 +05:30
Tuan Dang 16f240596a Add audit logs to pulls, still need to refactor 2022-12-27 12:30:33 -05:00
Tuan Dang 9497a26eb2 Add v1 audit log backend models and wiring to push secrets 2022-12-27 12:12:39 -05:00
Tuan Dang 019e90dc77 Fix merge conflicts 2022-12-27 09:34:07 -05:00
Tuan Dang f93594b62f Migrate POST /v1/secret/:workspaceId to /v2/workspace/:workspaceId/secrets and cleared room for /v2 secret routes 2022-12-26 22:50:59 -05:00
Tuan Dang 924e3d78a3 Merge remote-tracking branch 'origin' into new-routing 2022-12-26 21:45:45 -05:00
Tuan Dang 07c34c490f Begin moving /secret/workspaceId routes to /workspace/workspaceId 2022-12-26 21:45:26 -05:00
Vladyslav Matsiiako f3e3a9edf1 Added commenting functionality (#135) 2022-12-26 21:28:55 -05:00
Tuan Dang 229fef8874 Create route and controller v1/v2 folder structure separation 2022-12-26 21:02:39 -05:00
Tuan Dang addf04d54d Merge remote-tracking branch 'origin' into service-token-v2 2022-12-26 18:50:55 -05:00
Tuan Dang e3b051226a Merge remote-tracking branch 'origin' into secret-versioning 2022-12-26 17:53:10 -05: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
Vladyslav Matsiiako a4285df0ff Added welcome email to new users 2022-12-26 09:39:32 -05:00
Tuan Dang 9f724b5ede Refactor EE secret versioning/snapshot access 2022-12-25 20:04:27 -05:00
Tuan Dang 888d28d6b9 Continue work on API key 2022-12-25 19:19:56 -05:00
Tuan Dang 26fe1dd821 Move secret versioning and snapshot functionality into ee and begin license scoping 2022-12-25 17:08:21 -05:00
Tuan Dang f37fc9c59d Small modifications to secret versioning/snapshot 2022-12-25 14:30:02 -05:00
Tuan Dang 890aff813b Merge remote-tracking branch 'origin/main' into secret-versioning 2022-12-25 12:46:57 -05:00
Tuan Dang d869968f88 Begin api-key functionality on backend 2022-12-25 12:45:43 -05:00
BlackMagiq a12ae350a7 Merge branch 'main' into feat/error-handling 2022-12-24 20:34:55 -05:00
Tuan Dang 9c769853b4 Patch secret-override mechanism with versioning/snapshots 2022-12-24 20:01:33 -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 22d6aa8e46 fix: Fixed wrong naming for error handler middleware 2022-12-24 21:45:53 +01:00
Hüseyin Berke Bütün 6216f70950 chore: Split error handler middleware to a seperate file 2022-12-24 21:43:02 +01:00
Tuan Dang 9bbf380741 Merge remote-tracking branch 'origin' into secret-versioning 2022-12-24 14:53:23 -05: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 f7e3e48038 Merge branch 'secret-versioning' of https://github.com/Infisical/infisical into secret-versioning 2022-12-24 14:52:14 -05:00
Tuan Dang c4ebea7422 Finish get secret versions route 2022-12-24 14:51:09 -05:00
Tuan Dang dca3bd4fbb Complete v1 secret versioning and project secret snapshots 2022-12-24 14:51:09 -05: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 e4e0370dad Complete v1 secret versioning and project secret snapshots 2022-12-23 10:06:37 -05:00
Tuan Dang fc32647201 Embed project id into exported service tokens 2022-12-22 22:42:45 -05:00
Tuan Dang ed2558a7ad Add GitHub Actions docs and remove GET Infisical public key route 2022-12-22 14:09:34 -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
Hüseyin Berke Bütün 843757fcf5 fix: Wrong error handler middleware position
Error handler is a middleware that captures errors from throw and
next(...), so in order to be able to handle it needs to come after
all of the routing and other middlewares. Previously it was before
routuing logic and wasn't working, now it works as intended.

Also added check for LogLevel to Sentry for not sending false-positive
errors like `BadRequestError`, `UnauthorizedRequestError` and etc.
2022-12-22 17:51:53 +01: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 aaa87b2b85 Fix errors and complete v1 full-loop of GitHub integration with repository secrets 2022-12-21 23:16:50 -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 6f5d7a831b refactor: Refactored middlewares to use RequestError
Refactored middlewares to use RequestError rather than using
`try {...}catch (err){...}`. With this change it's possible to manage
all error details within one place.

Added:
- Added Sentry.captureException to Error Handler
2022-12-22 01:42:02 +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
BlackMagiq 96caa587d6 Merge branch 'bot' into bot 2022-12-21 17:11:09 -05:00
Tuan Dang 009f9c6842 Continue developing activity logs backend 2022-12-21 16:27:04 -05:00
Reginald Bondoc 95b8d27c59 Merge branch 'main' of github.com:reginaldbondoc/infisical 2022-12-21 20:33:14 +01:00