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
fix(pki): count CA-less certificates in inventory total
Devin AIe38195e888b6
diff --git a/backend/src/services/certificate/certificate-dal.ts b/backend/src/services/certificate/certificate-dal.tsindex 3cc5fb18a3..2f01f4b912 100644--- a/backend/src/services/certificate/certificate-dal.ts+++ b/backend/src/services/certificate/certificate-dal.ts@@ -367,11 +367,7 @@ export const certificateDALFactory = (db: TDbClient) => {count: string;}- let query = db- .replicaNode()(TableName.Certificate)- .join(TableName.CertificateAuthority, `${TableName.Certificate}.caId`, `${TableName.CertificateAuthority}.id`)- .join(TableName.Project, `${TableName.CertificateAuthority}.projectId`, `${TableName.Project}.id`)- .where(`${TableName.Project}.id`, projectId);+ let query = db.replicaNode()(TableName.Certificate).where(`${TableName.Certificate}.projectId`, projectId);const hasEnrollmentTypeFilter = Boolean(filters.enrollmentTypes);if (hasEnrollmentTypeFilter) {