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 search for other services
adilson9627d415b50b
diff --git a/backend/src/server/routes/index.ts b/backend/src/server/routes/index.tsindex bae407e0fd..a4f26794dd 100644--- a/backend/src/server/routes/index.ts+++ b/backend/src/server/routes/index.ts@@ -1469,6 +1469,11 @@ export const registerRoutes = async (auditLogService,identityDAL,userDAL,+ kmipClientDAL,+ serviceTokenDAL,+ certificateProfileDAL,+ acmeAccountDAL,+ scimDAL,projectMembershipDAL,smtpService,projectDAL,diff --git a/backend/src/services/secret/secret-queue.ts b/backend/src/services/secret/secret-queue.tsindex 00fb704115..c8a703da4a 100644--- a/backend/src/services/secret/secret-queue.ts+++ b/backend/src/services/secret/secret-queue.ts@@ -14,9 +14,12 @@ import {TSecretVersionsV2} from "@app/db/schemas";import { Actor, EventType, TAuditLogServiceFactory } from "@app/ee/services/audit-log/audit-log-types";+import { TKmipClientDALFactory } from "@app/ee/services/kmip/kmip-client-dal";import { TLicenseServiceFactory } from "@app/ee/services/license/license-service";+import { TPkiAcmeAccountDALFactory } from "@app/ee/services/pki-acme/pki-acme-account-dal";import { TProjectEventsService } from "@app/ee/services/project-events/project-events-service";import { ProjectEvents, TProjectEventPayload } from "@app/ee/services/project-events/project-events-types";+import { TScimDALFactory } from "@app/ee/services/scim/scim-dal";import { TSecretApprovalRequestDALFactory } from "@app/ee/services/secret-approval-request/secret-approval-request-dal";import { TSecretRotationDALFactory } from "@app/ee/services/secret-rotation/secret-rotation-dal";import { TSnapshotDALFactory } from "@app/ee/services/secret-snapshot/snapshot-dal";@@ -37,6 +40,7 @@ import { TSecretSyncQueueFactory } from "@app/services/secret-sync/secret-sync-qimport { TSecretTagDALFactory } from "@app/services/secret-tag/secret-tag-dal";import { ActorType } from "../auth/auth-type";+import { TCertificateProfileDALFactory } from "../certificate-profile/certificate-profile-dal";import { TFolderCommitServiceFactory } from "../folder-commit/folder-commit-service";import { TIdentityDALFactory } from "../identity/identity-dal";import { TIntegrationDALFactory } from "../integration/integration-dal";@@ -64,6 +68,7 @@ import { expandSecretReferencesFactory, getAllSecretReferences } from "../secretimport { TSecretV2BridgeDALFactory } from "../secret-v2-bridge/secret-v2-bridge-dal";import { TSecretVersionV2DALFactory } from "../secret-v2-bridge/secret-version-dal";import { TSecretVersionV2TagDALFactory } from "../secret-v2-bridge/secret-version-tag-dal";+import { TServiceTokenDALFactory } from "../service-token/service-token-dal";import { SmtpTemplates, TSmtpService } from "../smtp/smtp-service";import { TTelemetryServiceFactory } from "../telemetry/telemetry-service";import { PostHogEventTypes } from "../telemetry/telemetry-types";@@ -106,6 +111,11 @@ type TSecretQueueFactoryDep = {secretTagDAL: TSecretTagDALFactory;identityDAL: Pick<TIdentityDALFactory, "findById">;userDAL: Pick<TUserDALFactory, "findById">;+ kmipClientDAL: Pick<TKmipClientDALFactory, "findById">;+ serviceTokenDAL: Pick<TServiceTokenDALFactory, "findById">;+ certificateProfileDAL: Pick<TCertificateProfileDALFactory, "findById">;+ acmeAccountDAL: Pick<TPkiAcmeAccountDALFactory, "findById">;+ scimDAL: Pick<TScimDALFactory, "findById">;secretVersionTagDAL: TSecretVersionTagDALFactory;kmsService: TKmsServiceFactory;secretV2BridgeDAL: TSecretV2BridgeDALFactory;@@ -161,6 +171,11 @@ export const secretQueueFactory = ({folderDAL,identityDAL,userDAL,+ kmipClientDAL,+ serviceTokenDAL,+ certificateProfileDAL,+ acmeAccountDAL,+ scimDAL,webhookDAL,projectEnvDAL,smtpService,@@ -242,16 +257,38 @@ export const secretQueueFactory = ({}case ActorType.PLATFORM:return "Platform";- case ActorType.KMIP_CLIENT:- return "KMIP Client";- case ActorType.SERVICE:- return "Service";- case ActorType.ACME_PROFILE:- return "ACME Profile";- case ActorType.ACME_ACCOUNT:- return "ACME Account";+ case ActorType.KMIP_CLIENT: {+ const client = await kmipClientDAL.findById(changedBy);+ return client?.name || "KMIP Client";+ }+ case ActorType.SERVICE: {+ const token = await serviceTokenDAL.findById(changedBy);+ return token?.name || "Service Token";+ }+ case ActorType.ACME_PROFILE: {+ const profile = await certificateProfileDAL.findById(changedBy);+ return profile?.slug || "ACME Profile";+ }+ case ActorType.ACME_ACCOUNT: {+ const account = await acmeAccountDAL.findById(changedBy);+ return account?.emails?.[0] || "ACME Account";+ }+ case ActorType.EST_ACCOUNT: {+ const estProfile = await certificateProfileDAL.findById(changedBy);+ return estProfile?.slug || "EST Account";+ }+ case ActorType.SCEP_ACCOUNT: {+ const scepProfile = await certificateProfileDAL.findById(changedBy);+ return scepProfile?.slug || "SCEP Account";+ }+ case ActorType.SCIM_CLIENT: {+ const scimToken = await scimDAL.findById(changedBy);+ return scimToken?.description || "SCIM Client";+ }+ case ActorType.UNKNOWN_USER:+ return "Unknown User";default:- return `Unknown Actor [${changedByActorType}]`;+ return `Unknown Actor [${String(changedByActorType)}]`;}} catch (error) {logger.error(