Skip to content

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

Update/remove comments

Tuan Dang5af53d339860
diff --git a/backend/src/services/certificate-authority/certificate-authority-service.ts b/backend/src/services/certificate-authority/certificate-authority-service.ts
index dc1d927daa..52cfa80390 100644
--- a/backend/src/services/certificate-authority/certificate-authority-service.ts
+++ b/backend/src/services/certificate-authority/certificate-authority-service.ts
@@ -389,8 +389,6 @@ export const certificateAuthorityServiceFactory = ({
/**
* Renew certificate for CA with id [caId]
* Note: Currently implements CA renewal with same key-pair only
- *
- * TODO: check rebuilt chain?
*/
const renewCaCert = async ({ caId, notAfter, actorId, actorAuthMethod, actor, actorOrgId }: TRenewCaCertDTO) => {
const ca = await certificateAuthorityDAL.findById(caId);
@@ -950,7 +948,8 @@ export const certificateAuthorityServiceFactory = ({
plainText: Buffer.from(certificateChain)
});
- // TODO: validate that >latest< public-private key of CA is used to sign the certificate
+ // TODO: validate that latest key-pair of CA is used to sign the certificate
+ // once renewal with new key pair is supported
const { caSecret, caPublicKey } = await getCaCredentials({
caId: ca.id,
certificateAuthorityDAL,