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
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
Maidul Islam
2d3255edc0
Merge pull request #140 from reginaldbondoc/main
...
Backend test setup
2022-12-21 16:06:58 -05:00
Reginald Bondoc
0ee563948d
Update package-lock
2022-12-21 20:34:44 +01:00
Reginald Bondoc
95b8d27c59
Merge branch 'main' of github.com:reginaldbondoc/infisical
2022-12-21 20:33:14 +01:00
Reginald
5790af7b8b
Merge branch 'Infisical:main' into main
2022-12-21 20:32:59 +01:00
Reginald Bondoc
a3609b9b6f
Align with comments
2022-12-21 20:32:38 +01:00
Maidul Islam
f31424dc6a
update helm chart to make envfrom optional
2022-12-21 10:49:10 -05:00
mv-turtle
2bd9f4e6dd
Merge pull request #128 from SH5H/fixError
...
Fix login runtime error
2022-12-21 07:55:36 -05:00
Tuan Dang
fdcf2dd716
Merge branch 'main' of https://github.com/Infisical/infisical
2022-12-21 01:55:30 -05:00
Tuan Dang
78a52422a2
Patch Netlify integration cases, add new docs for Heroku, Vercel, and Netlify
2022-12-21 01:55:23 -05:00
mv-turtle
4b261c4a87
Update README.md
2022-12-20 22:53:02 -05:00
mv-turtle
d93bdff2d4
Merge pull request #144 from Zamion101/fix/issue-142
...
Fix `JWT_SERVICE_SECRET` not present in docs
2022-12-20 22:06:44 -05:00
Hüseyin Berke Bütün
66cf2f6091
Update develoing.mdx related to issue #142
2022-12-21 02:45:42 +01:00
Hüseyin Berke Bütün
44482dda26
fix: Relocate 'JWT_SERVICE_SECRET' related to issue #142
2022-12-21 02:35:05 +01:00
Maidul Islam
f7b110759d
add support for arch linux
2022-12-20 20:11:28 -05:00
Maidul Islam
45f92bdd93
update infisical helm chart version
2022-12-20 18:49:36 -05:00
Maidul Islam
ed8134da4f
allow helm template to add secret ref
2022-12-20 18:48:53 -05:00
Reginald
75e3a3b2d6
Merge branch 'Infisical:main' into main
2022-12-20 21:24:11 +01:00
Reginald
958ef560f7
Merge pull request #6 from reginaldbondoc/reginaldbondoc-patch-5
...
Clean up
2022-12-20 21:23:58 +01:00
Reginald Bondoc
2eb2f3ff1c
Use GH secret
2022-12-20 21:19:04 +01:00
Reginald
4aaa01fb0e
Clean up
2022-12-20 20:39:55 +01:00
Reginald Bondoc
83c3745045
PR comment on coverage
2022-12-20 20:39:08 +01:00
Reginald Bondoc
ecbacfb0c9
Make coverage comment
2022-12-20 20:34:26 +01:00
Maidul Islam
507b0bd97f
Add yaml output
2022-12-20 14:10:53 -05:00
Maidul Islam
2bff7bbb5a
Merge pull request #139 from Infisical/cli-multi-command
...
Cli multi command support
2022-12-20 13:19:10 -05:00
Maidul Islam
b09ae054dd
Add docs for chained commands
2022-12-20 13:18:20 -05:00
Maidul Islam
dc9c6b9d13
add chained command support
2022-12-20 12:54:41 -05:00
Reginald Bondoc
fcf300fa96
Set output mode and file
2022-12-20 18:14:58 +01:00
Reginald Bondoc
3eb33d22cf
Back to report.json
2022-12-20 17:55:05 +01:00
Reginald Bondoc
8a209049c5
Point to different coverage file
2022-12-20 17:49:29 +01:00
Reginald Bondoc
eee40fd583
Fix report steps
2022-12-20 16:50:43 +01:00
Reginald Bondoc
483d4f831d
Merge branch 'main' of github.com:reginaldbondoc/infisical
2022-12-20 15:50:07 +01:00
Reginald Bondoc
4a1cf88ab4
Use different GHA for downloading artifact
2022-12-20 14:15:24 +01:00
Maidul Islam
f01e8cb33b
add multi command
2022-12-19 20:21:23 -05:00
Reginald
be35da7ac4
Merge pull request #2 from reginaldbondoc/reginaldbondoc-patch-1
...
Update app.ts
2022-12-20 01:27:32 +01:00
Reginald
7eedefa0c9
Update app.ts
2022-12-20 01:17:04 +01:00
Reginald Bondoc
113ec55681
Correct workflow test
2022-12-20 01:13:13 +01:00
Reginald Bondoc
bd207dc65f
Merge branch 'main' of github.com:reginaldbondoc/infisical
2022-12-20 01:04:33 +01:00
Reginald Bondoc
fc906e7dc7
Setup test, break apart entrypoint, & align GHA workflow
2022-12-20 00:56:53 +01:00
mv-turtle
3ba62d1d97
Update README.md
2022-12-19 13:05:27 -05:00
Tuan Dang
5816ce3bf7
Patch lint integration issues on frontend
2022-12-19 12:14:58 -05:00
Tuan Dang
2d77fe9ca3
Fix lint issues
2022-12-19 12:05:19 -05:00
Maidul Islam
6bb24933bf
Add back health check and fix json file not found
2022-12-18 20:10:17 -05:00
Maidul Islam
fbc38c553a
Remove tests from backend docker img
2022-12-18 19:27:45 -05:00
Maidul Islam
6ba4701db8
delete Dockerfile.prod from frontend
2022-12-18 19:27:45 -05:00
Tuan Dang
c15a9301af
Temp disable healthcheck
2022-12-18 19:16:56 -05:00
Tuan Dang
91052df5f9
Fix Typescript issues for frontend integrations
2022-12-18 18:57:50 -05:00
Tuan Dang
6ea26c135a
Merge branch 'bot'
2022-12-18 17:34:18 -05:00