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
Add tags query to secrets api
Maidul Islamfba54ae0c659
diff --git a/backend/src/controllers/v2/secretsController.ts b/backend/src/controllers/v2/secretsController.tsindex 993b2359f9..9a011bc5f8 100644--- a/backend/src/controllers/v2/secretsController.ts+++ b/backend/src/controllers/v2/secretsController.ts@@ -289,8 +289,7 @@ export const getSecrets = async (req: Request, res: Response) => {const { workspaceId, environment, tagSlugs } = req.query;- const tagNamesList = typeof tagSlugs === 'string' ? tagSlugs.split(',') : [];-+ const tagNamesList = typeof tagSlugs === 'string' && tagSlugs !== '' ? tagSlugs.split(',') : [];let userId = "" // used for getting personal secrets for userlet userEmail = "" // used for posthogif (req.user) {