Skip to content

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

misc: addressed feedback on comments

Sheen Capadngana08fd191cd9f
diff --git a/backend/src/keystore/keystore.ts b/backend/src/keystore/keystore.ts
index da01da3ba6..af00060605 100644
--- a/backend/src/keystore/keystore.ts
+++ b/backend/src/keystore/keystore.ts
@@ -186,10 +186,7 @@ export const KeyStorePrefixes = {
LicenseUsageReconcileMarker: (orgId: string) => `license-usage-reconcile-${orgId}` as const,
LicenseUsageLastReported: (orgId: string, featureKey: string) =>
`license-usage-last-reported-${orgId}-${featureKey}` as const,
- // Cached distinct active certificate quota keys per org tree. Not LicenseUsageLastReported, which
- // counts rows and is only written on a successful License Server report.
PkiCertificateQuotaCount: (orgId: string) => `pki-certificate-quota-count-${orgId}` as const,
- // Separate key rather than a JSON blob with the total, so both stay INCR-able on creation.
PkiWildcardCertificateQuotaCount: (orgId: string) => `pki-wildcard-certificate-quota-count-${orgId}` as const,
IdentityLockoutState: (identityId: string, authMethod: string, slug: string) =>
`lockout:identity:{${identityId}}:${authMethod}:${slug}` as const,
diff --git a/backend/src/services/certificate-common/certificate-quota-key.ts b/backend/src/services/certificate-common/certificate-quota-key.ts
index 9da1c408d4..a694136db2 100644
--- a/backend/src/services/certificate-common/certificate-quota-key.ts
+++ b/backend/src/services/certificate-common/certificate-quota-key.ts
@@ -1,7 +1,7 @@
import { createHash } from "node:crypto";
-// Identity of "one logical certificate" for quotas. orderId already collapses renewal chains; this
-// exists for re-enrollment, where ACME mints a new order for the same names every cycle.
+// Identity of "one logical certificate" for quotas: ACME re-enrolls rather than renews, minting a
+// fresh order for the same names every cycle
export const buildCertificateQuotaKey = ({
commonName,
altNames