Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
Chore: Better error messages
Daniel Hougaard60fbd8ac4444
diff --git a/backend/src/server/routes/v3/secret-router.ts b/backend/src/server/routes/v3/secret-router.tsindex 2ce8f5463c..d9613846e7 100644--- a/backend/src/server/routes/v3/secret-router.ts+++ b/backend/src/server/routes/v3/secret-router.ts@@ -83,6 +83,9 @@ export const registerSecretRouter = async (server: FastifyZodProvider) => {actor: req.permission.type,actorOrgId: req.permission.orgId});++ if (!workspace) throw new BadRequestError({ message: `No project found with slug ${req.query.workspaceSlug}` });+workspaceId = workspace.id;}