Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
Log GET secrets v2
Tuan Danga9389643b841
diff --git a/backend/src/controllers/v2/secretsController.ts b/backend/src/controllers/v2/secretsController.tsindex 4dd281f118..fd8982f734 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.tsindex 569f2483f1..52d95c9d58 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.tsxindex 543a83b554..bb08e849d8 100644--- a/frontend/src/layouts/AppLayout/AppLayout.tsx+++ b/frontend/src/layouts/AppLayout/AppLayout.tsx@@ -483,7 +483,7 @@ export const AppLayout = ({ children }: LayoutProps) => {</MenuItem></a></Link>- <Link href={`/project/${currentWorkspace?._id}/audit-logs`} passHref>+ {/* <Link href={`/project/${currentWorkspace?._id}/audit-logs`} passHref><a><MenuItemisSelected={@@ -494,7 +494,7 @@ export const AppLayout = ({ children }: LayoutProps) => {Audit Logs V2</MenuItem></a>- </Link>+ </Link> */}<Link href={`/project/${currentWorkspace?._id}/logs`} passHref><a><MenuItemdiff --git a/frontend/src/views/DashboardPage/components/SecretDetailDrawer/SecretDetailDrawer.tsx b/frontend/src/views/DashboardPage/components/SecretDetailDrawer/SecretDetailDrawer.tsxindex 182eea8f40..0f8446fccc 100644--- a/frontend/src/views/DashboardPage/components/SecretDetailDrawer/SecretDetailDrawer.tsx+++ b/frontend/src/views/DashboardPage/components/SecretDetailDrawer/SecretDetailDrawer.tsx@@ -45,15 +45,6 @@ export const SecretDetailDrawer = ({const [canRevealSecOverride, setCanRevealSecOverride] = useToggle();const { register, setValue, control, getValues } = useFormContext<FormData>();-- 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