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
Clean unecessary imports
Tuan Dang1c2a43ceea98
diff --git a/backend/src/ee/helpers/secret.ts b/backend/src/ee/helpers/secret.tsindex 0c41722561..2f726a9a56 100644--- a/backend/src/ee/helpers/secret.ts+++ b/backend/src/ee/helpers/secret.ts@@ -147,7 +147,7 @@ const initSecretVersioningHelper = async () => {} catch (err) {Sentry.setUser(null);Sentry.captureException(err);- throw new Error('Failed to ensure secrets are versioned');+ throw new Error('Failed to ensure that secrets are versioned');}}diff --git a/backend/src/helpers/secret.ts b/backend/src/helpers/secret.tsindex 61fc251748..f71f094e84 100644--- a/backend/src/helpers/secret.ts+++ b/backend/src/helpers/secret.ts@@ -1,5 +1,4 @@import * as Sentry from '@sentry/node';-import { Types } from 'mongoose';import {Secret,ISecret,@@ -10,13 +9,8 @@ import {} from '../ee/services';import {SecretVersion,- Action,IAction} from '../ee/models';-import {- takeSecretSnapshotHelper-} from '../ee/helpers/secret';-import { decryptSymmetric } from '../utils/crypto';import {SECRET_SHARED,SECRET_PERSONAL,@@ -62,8 +56,6 @@ interface Update {[index: string]: any;}-type DecryptSecretType = 'text' | 'object' | 'expanded';-/*** Push secrets for user with id [userId] to workspace* with id [workspaceId] with environment [environment]. Follow steps:@@ -285,9 +277,6 @@ const v1PushSecrets = async ({}};-// TODO: optimize this route.-// TODO: ensure that it's possible to query for and filter logs-/*** Push secrets for user with id [userId] to workspace* with id [workspaceId] with environment [environment]. Follow steps: