Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

Merge branch 'main' into feat/pki-applications-rework

Carlos Monastyrskie34d50b0ed69
diff --cc .infisicalignore
index 4b65726568,968aba1191..a9cb5743a1
--- a/.infisicalignore
+++ b/.infisicalignore
@@@ -62,5 -62,3 +62,6 @@@ backend/src/services/certificate-reques
docs/documentation/platform/pki/enrollment-methods/api.mdx:private-key:142
backend/src/lib/crypto/pqc/index.ts:private-key:35
backend/src/ee/services/honey-token/honey-token-service.ts:generic-api-key:49
+
+docs/integrations/app-connections/ovh.mdx:private-key:84
++docs/integrations/app-connections/datadog.mdx:generic-api-key:161
diff --cc backend/src/ee/routes/v1/pki-discovery-router.ts
index 1fa696aaab,91d2c28049..6ddf921004
--- a/backend/src/ee/routes/v1/pki-discovery-router.ts
+++ b/backend/src/ee/routes/v1/pki-discovery-router.ts
@@@ -74,20 -74,31 +74,31 @@@ export const registerPkiDiscoveryRoute
tags: [ApiDocsTags.PkiDiscovery],
operationId: "createPkiDiscovery",
description: "Create a new PKI discovery configuration",
- body: z.object({
- projectId: z.string().optional().describe(openApiHidden()),
- name: slugSchema({ field: "Name", max: 100 }).describe("Name of the discovery configuration"),
- description: z.string().max(500).optional().describe("Description of the discovery configuration"),
- discoveryType: z
- .nativeEnum(PkiDiscoveryType)
- .optional()
- .default(PkiDiscoveryType.Network)
- .describe("Type of discovery scan"),
- targetConfig: NetworkTargetConfigSchema.describe("Target configuration for discovery scans"),
- isAutoScanEnabled: z.boolean().optional().default(false).describe("Enable automatic scheduled scans"),
- scanIntervalDays: z.number().min(1).max(365).optional().describe("Interval in days between automatic scans"),
- gatewayId: z.string().uuid().optional().describe("Gateway ID for scanning private networks")
- }),
+ body: z
+ .object({
- projectId: z.string().describe("The ID of the project"),
++ projectId: z.string().optional().describe(openApiHidden()),
+ name: slugSchema({ field: "Name", max: 100 }).describe("Name of the discovery configuration"),
+ description: z.string().max(500).optional().describe("Description of the discovery configuration"),
+ discoveryType: z
+ .nativeEnum(PkiDiscoveryType)
+ .optional()
+ .default(PkiDiscoveryType.Network)
+ .describe("Type of discovery scan"),
+ targetConfig: NetworkTargetConfigSchema.describe("Target configuration for discovery scans"),
+ isAutoScanEnabled: z.boolean().optional().default(false).describe("Enable automatic scheduled scans"),
+ scanIntervalDays: z.number().min(1).max(365).optional().describe("Interval in days between automatic scans"),
+ gatewayId: z.string().uuid().optional().describe("Gateway ID for scanning private networks"),
+ gatewayPoolId: z.string().uuid().optional().describe("Gateway pool ID for scanning private networks")
+ })
+ .superRefine((data, ctx) => {
+ if (data.gatewayId && data.gatewayPoolId) {
+ ctx.addIssue({
+ path: ["gatewayPoolId"],
+ code: z.ZodIssueCode.custom,
+ message: "Cannot specify both a gateway and a gateway pool"
+ });
+ }
+ }),
response: {
200: PkiDiscoveryConfigsSchema
}