Skip to content

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

fix(api): add the change request slug to the batch commit audit event (SECRETS-804) (#8874)

Andrew Huang04a00fbe47de
diff --git a/backend/src/ee/routes/v1/pit-router.ts b/backend/src/ee/routes/v1/pit-router.ts
index 759381c376..e940e38009 100644
--- a/backend/src/ee/routes/v1/pit-router.ts
+++ b/backend/src/ee/routes/v1/pit-router.ts
@@ -707,6 +707,7 @@ export const registerPITRouter = async (server: FastifyZodProvider) => {
metadata: {
commitId: result.commitId,
approvalId: result.approval?.id,
+ approvalSlug: result.approval?.slug,
projectId: req.body.projectId,
environment: req.body.environment,
secretPath: req.body.secretPath,
diff --git a/backend/src/ee/services/audit-log/audit-log-types.ts b/backend/src/ee/services/audit-log/audit-log-types.ts
index 72a61ea5f8..3b7c436e39 100644
--- a/backend/src/ee/services/audit-log/audit-log-types.ts
+++ b/backend/src/ee/services/audit-log/audit-log-types.ts
@@ -5727,6 +5727,7 @@ interface PitProcessNewCommitRawEvent {
secretPath: string;
message: string;
approvalId?: string;
+ approvalSlug?: string;
commitId?: string;
};
}