Skip to content

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

fix: pass audit log info from import/delete secrets for sync endpoint

Scott Wilson9cbef2c07b9a
diff --git a/backend/src/server/routes/v1/secret-sync-routers/secret-sync-endpoints.ts b/backend/src/server/routes/v1/secret-sync-routers/secret-sync-endpoints.ts
index 6ab9b59398..9db3a2013c 100644
--- a/backend/src/server/routes/v1/secret-sync-routers/secret-sync-endpoints.ts
+++ b/backend/src/server/routes/v1/secret-sync-routers/secret-sync-endpoints.ts
@@ -382,7 +382,8 @@ export const registerSyncSecretsEndpoints = <T extends TSecretSync, I extends TS
{
syncId,
destination,
- importBehavior
+ importBehavior,
+ auditLogInfo: req.auditLogInfo
},
req.permission
)) as T;
@@ -415,7 +416,8 @@ export const registerSyncSecretsEndpoints = <T extends TSecretSync, I extends TS
const secretSync = (await server.services.secretSync.triggerSecretSyncRemoveSecretsById(
{
syncId,
- destination
+ destination,
+ auditLogInfo: req.auditLogInfo
},
req.permission
)) as T;