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
misc: removed mention of projects
Sheen Capadngand440b0bd5cdd
diff --git a/backend/src/ee/services/pki-discovery/pki-discovery-service.ts b/backend/src/ee/services/pki-discovery/pki-discovery-service.tsindex 48d3993802..5db6e2b898 100644--- a/backend/src/ee/services/pki-discovery/pki-discovery-service.ts+++ b/backend/src/ee/services/pki-discovery/pki-discovery-service.ts@@ -29,7 +29,7 @@ import {TUpdatePkiDiscoveryDTO} from "./pki-discovery-types";-const MAX_CLOUD_DISCOVERIES_PER_PROJECT = 10;+const MAX_CLOUD_DISCOVERIES = 10;const SCAN_RATE_LIMIT_HOURS = 24;type TPkiDiscoveryServiceFactoryDep = {@@ -116,9 +116,9 @@ export const pkiDiscoveryServiceFactory = ({const appCfg = getConfig();if (appCfg.isCloud) {const existingCount = await pkiDiscoveryConfigDAL.countByProjectId(projectId);- if (existingCount >= MAX_CLOUD_DISCOVERIES_PER_PROJECT) {+ if (existingCount >= MAX_CLOUD_DISCOVERIES) {throw new BadRequestError({- message: `Maximum number of discovery configurations (${MAX_CLOUD_DISCOVERIES_PER_PROJECT}) reached for this project`+ message: `Maximum number of discovery configurations (${MAX_CLOUD_DISCOVERIES}) reached`});}}