Skip to content

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

remove deprecated EELogService

Maidul Islame902a54af036
diff --git a/backend/src/helpers/secrets.ts b/backend/src/helpers/secrets.ts
index ca90fefe87..4182be9dc3 100644
--- a/backend/src/helpers/secrets.ts
+++ b/backend/src/helpers/secrets.ts
@@ -1375,23 +1375,6 @@ export const createSecretBatchHelper = async ({
)
});
- // (EE) create (audit) log
- const action = await EELogService.createAction({
- name: ACTION_ADD_SECRETS,
- ...getAuthDataPayloadIdObj(authData),
- workspaceId,
- secretIds: newlyCreatedSecrets.map((n) => n._id)
- });
-
- action &&
- (await EELogService.createLog({
- ...getAuthDataPayloadIdObj(authData),
- workspaceId,
- actions: [action],
- channel: authData.userAgentType,
- ipAddress: authData.ipAddress
- }));
-
await EEAuditLogService.createAuditLog(
authData,
{
@@ -1587,23 +1570,6 @@ export const updateSecretBatchHelper = async ({
})
});
- // (EE) create (audit) log
- const action = await EELogService.createAction({
- name: ACTION_UPDATE_SECRETS,
- ...getAuthDataPayloadIdObj(authData),
- workspaceId,
- secretIds: secretsToBeUpdated.map(({ _id }) => _id)
- });
-
- action &&
- (await EELogService.createLog({
- ...getAuthDataPayloadIdObj(authData),
- workspaceId,
- actions: [action],
- channel: authData.userAgentType,
- ipAddress: authData.ipAddress
- }));
-
await EEAuditLogService.createAuditLog(
authData,
{
@@ -1727,23 +1693,6 @@ export const deleteSecretBatchHelper = async ({
secretIds: deletedSecrets.map((secret) => secret._id)
});
- // (EE) create (audit) log
- const action = await EELogService.createAction({
- name: ACTION_DELETE_SECRETS,
- ...getAuthDataPayloadIdObj(authData),
- workspaceId,
- secretIds: deletedSecrets.map((secret) => secret._id)
- });
-
- action &&
- (await EELogService.createLog({
- ...getAuthDataPayloadIdObj(authData),
- workspaceId,
- actions: [action],
- channel: authData.userAgentType,
- ipAddress: authData.ipAddress
- }));
-
await EEAuditLogService.createAuditLog(
authData,
{