Infisical / infisical

♾ Infisical is the open-source secret management platform: Sync secrets across your team/infrastructure, prevent secret leaks, and manage internal PKI
https://infisical.com
Other
15.73k stars 985 forks source link

fix: improve project DAL error handling #2781

Closed DanielHougaard closed 6 hours ago

DanielHougaard commented 2 days ago

Description 📣

This PR fixes errors for finding projects. Previously it wouldn't factor in Not Found or Unauthorized errors. If a NotFound error was thrown from within the DAL, it would translate to a 500 / Database error.

This issue was especially visible when trying to fetch secrets with an invalid project slug (workspaceSlug).

Type ✨