Skip to content

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

fix: add CertificateExported telemetry to GET /:id/bundle route

Devin AI24e7718e0000
diff --git a/backend/src/server/routes/v1/certificate-router.ts b/backend/src/server/routes/v1/certificate-router.ts
index 4e61e9fa4b..91b45a4879 100644
--- a/backend/src/server/routes/v1/certificate-router.ts
+++ b/backend/src/server/routes/v1/certificate-router.ts
@@ -1478,6 +1478,15 @@ export const registerCertificateRouter = async (server: FastifyZodProvider) => {
}
});
+ await server.services.telemetry.sendPostHogEvents({
+ event: PostHogEventTypes.CertificateExported,
+ distinctId: getTelemetryDistinctId(req),
+ organizationId: req.permission.orgId,
+ properties: {
+ orgId: req.permission.orgId
+ }
+ });
+
addNoCacheHeaders(reply);
return {