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
tweaks
x032205645f70f770fe
diff --git a/backend/src/server/routes/v1/certificate-router.ts b/backend/src/server/routes/v1/certificate-router.tsindex e7f8a7833d..0e4cec8e1f 100644--- a/backend/src/server/routes/v1/certificate-router.ts+++ b/backend/src/server/routes/v1/certificate-router.ts@@ -131,7 +131,7 @@ export const registerCertRouter = async (server: FastifyZodProvider) => {response: {200: z.object({certificate: z.string().trim().describe(CERTIFICATES.GET_CERT.certificate),- certificateChain: z.string().trim().nullish().describe(CERTIFICATES.GET_CERT.certificateChain),+ certificateChain: z.string().trim().nullable().describe(CERTIFICATES.GET_CERT.certificateChain),privateKey: z.string().trim().nullable().describe(CERTIFICATES.GET_CERT.privateKey),serialNumber: z.string().trim().describe(CERTIFICATES.GET_CERT.serialNumberRes)})@@ -518,7 +518,7 @@ export const registerCertRouter = async (server: FastifyZodProvider) => {response: {200: z.object({certificate: z.string().trim().describe(CERTIFICATES.GET_CERT.certificate),- certificateChain: z.string().trim().nullish().describe(CERTIFICATES.GET_CERT.certificateChain),+ certificateChain: z.string().trim().nullable().describe(CERTIFICATES.GET_CERT.certificateChain),serialNumber: z.string().trim().describe(CERTIFICATES.GET_CERT.serialNumberRes)})}diff --git a/backend/src/services/certificate/certificate-service.ts b/backend/src/services/certificate/certificate-service.tsindex 3e52b25cec..292b5f1098 100644--- a/backend/src/services/certificate/certificate-service.ts+++ b/backend/src/services/certificate/certificate-service.ts@@ -29,6 +29,7 @@ import {TGetCertPrivateKeyDTO,TRevokeCertDTO} from "./certificate-types";+import { NotFoundError } from "@app/lib/errors";type TCertificateServiceFactoryDep = {certificateDAL: Pick<TCertificateDALFactory, "findOne" | "deleteById" | "update" | "find">;@@ -348,7 +349,10 @@ export const certificateServiceFactory = ({});privateKey = certPrivateKey;} catch (e) {- // This will error for older certificates+ // Skip NotFound errors but throw all others+ if (!(e instanceof NotFoundError)) {+ throw e;+ }}return {