diff --git a/backend/src/controllers/v2/secretsController.ts b/backend/src/controllers/v2/secretsController.ts index 4dd281f11..fd8982f73 100644 --- a/backend/src/controllers/v2/secretsController.ts +++ b/backend/src/controllers/v2/secretsController.ts @@ -943,6 +943,21 @@ export const getSecrets = async (req: Request, res: Response) => { channel, ipAddress: req.realIP })); + + await EEAuditLogService.createAuditLog( + req.authData, + { + type: EventType.GET_SECRETS, + metadata: { + environment, + secretPath: secretPath as string, + numberOfSecrets: secrets.length + } + }, + { + workspaceId: new Types.ObjectId(workspaceId as string) + } + ); const postHogClient = await TelemetryService.getPostHogClient(); if (postHogClient) { diff --git a/backend/src/ee/services/EELicenseService.ts b/backend/src/ee/services/EELicenseService.ts index 569f2483f..52d95c9d5 100644 --- a/backend/src/ee/services/EELicenseService.ts +++ b/backend/src/ee/services/EELicenseService.ts @@ -63,12 +63,12 @@ class EELicenseService { environmentsUsed: 0, secretVersioning: true, pitRecovery: false, - ipAllowlisting: true, + ipAllowlisting: false, rbac: true, - customRateLimits: true, - customAlerts: true, - auditLogs: true, - auditLogsRetentionDays: 30, + customRateLimits: false, + customAlerts: false, + auditLogs: false, + auditLogsRetentionDays: 0, samlSSO: false, status: null, trial_end: null, diff --git a/frontend/src/layouts/AppLayout/AppLayout.tsx b/frontend/src/layouts/AppLayout/AppLayout.tsx index 543a83b55..bb08e849d 100644 --- a/frontend/src/layouts/AppLayout/AppLayout.tsx +++ b/frontend/src/layouts/AppLayout/AppLayout.tsx @@ -483,7 +483,7 @@ export const AppLayout = ({ children }: LayoutProps) => { - + {/* { Audit Logs V2 - + */} (); - - const secKey = useWatch({ - control, - name: `secrets.${index}.key`, - disabled: false, - exact: true - }); - - console.log("secKeyyy", secKey); const overrideAction = useWatch({ control, name: `secrets.${index}.overrideAction` }); const isOverridden = @@ -102,7 +93,8 @@ export const SecretDetailDrawer = ({ isDisabled={isReadOnly} onClick={() => { const secret = getValues(`secrets.${index}`); - onSecretDelete(index, secret._id, secret.idOverride); + + onSecretDelete(index, secret.key, secret._id, secret.idOverride); }} > Delete