Skip to content

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

fix(pki): stop asserting a runtime-dependent ML-DSA label in the keystore test

Saif6811c7d13c62
diff --git a/backend/src/services/certificate/certificate-pkcs12-fns.test.ts b/backend/src/services/certificate/certificate-pkcs12-fns.test.ts
index 30db1a0010..6770686299 100644
--- a/backend/src/services/certificate/certificate-pkcs12-fns.test.ts
+++ b/backend/src/services/certificate/certificate-pkcs12-fns.test.ts
@@ -131,8 +131,9 @@ describe("extractPkcs12Entries chain building", () => {
const { entries } = await extract(fixtures.mlDsa, "hunter2");
expect(entries).toHaveLength(1);
- expect(entries[0].keyAlgorithm).toBe("ML-DSA-44");
+ expect(entries[0].privateKeyPem).toContain("BEGIN PRIVATE KEY");
expect(entries[0].chainWarning).toContain("No usable issuer chain");
+ // The algorithm label is whatever the runtime can name, and only some Node builds know ML-DSA.
});
});