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
Merge branch 'main' into ENG-5125
Thiago Araujo da Silva5c12d6d99102
diff --cc backend/CLAUDE.mdindex 5e27cc74ba,b70bd6cc4b..9df3d7a88c--- a/backend/CLAUDE.md+++ b/backend/CLAUDE.md@@@ -997,56 -995,14 +997,64 @@@ directly, so falling through turns a daboundary the gateway exists to enforce. And `app_connections.gatewayId` is **not** a v1 column — unlike thethree above it never grew a `gatewayV2Id`, so that one column carries v2 ids and must stay.+ **Any new path that attaches an individual gateway must call `assertIndividualGatewayAllowed`**+ (`ee/services/gateway-pool/gateway-pool-policy-fns.ts`) next to its `AttachGateways` check. It enforces the+ org-level `requireGatewayPools` setting. Pass the gateway the resource already had as `previousGatewayId`,+ because clients re-send unchanged values on every save and resources created before the setting was turned+ on must stay editable. The check reads the setting, not the plan, so it keeps applying after a downgrade.+ Only exempt a mode that refuses pools outright, the way gateway Kubernetes auth in Gateway review mode does+ (`$assertCanAttachProxy` in `resource-auth-method-service.ts`), or the policy removes that mode entirely.++### Audit Log Event Classes and Settings++Every `EventType` belongs to exactly one class in+`src/ee/services/audit-log/audit-log-event-classes.ts`: `management`, `authentication`,+`authorization` (only `PERMISSION_DENIED`), or `data-access`. The class is derived from the event+type at write and read time, so stored rows carry no class column. **A new event type is+`management` unless you add it to one of the explicit lists**, and `audit-log-event-classes.test.ts`+fails if a type lands in two lists. Reads, lists, dashboards, insights views, CMEK use operations+and the dynamic secret lease lifecycle are data access; VIEW_AUDIT_LOGS and privileged session+lifecycle are management on purpose.++Every class but management can be turned off per scope, and scopes do not inherit: an org (root or sub-org) has its own+rows for org-level events, each project has its own rows for its events, and a scope without a row uses+the default in `AUDIT_LOG_EVENT_CLASS_DEFAULTS` (data access on, authorization off). The rows live in+`audit_log_settings` (one per scope and class, `projectId` null for the org scope) behind+`audit-log-settings-service.ts`. `getEffectiveSettings(orgId, projectId?)` caches per scope, not per+org: one key for the org's rows plus `shouldUseNewPrivilegeSystem`, one key per org and project+(`{}` when it has no rows), read together in one `MGET` for 10 minutes. Never build a value that+holds every project in an org, since every event would fetch and parse it. Each write clears only its own scope's key, and+the lookup never throws: a failure records everything.+Enforcement is `isAuditLogEventEnabled` in the settings service, called from `buildStreamEntry` in+`audit-log-queue.ts` with the settings memoized per request so a batch of events costs one read.+Suppressed events are dropped silently and do not count on the dropped counter. Management is+always on: the helper returns true for it before looking at any row, `toSettings` reports it as+enabled, and the update methods reject any request that names it, so the change that turns a+class off is itself always recorded. An update is a full replacement: `PUT` must name every class in+`CONFIGURABLE_AUDIT_LOG_EVENT_CLASSES` exactly once, and the service deletes the scope's rows and+inserts the new set, so there is no merge with what was stored before.++`PERMISSION_DENIED` is recorded by the `onError` hook in+`src/server/plugins/audit-log-permission-denied.ts` for every CASL `ForbiddenError` and+`PermissionBoundaryError` (not `ForbiddenRequestError`, which verifyAuth and plan gates also throw),+only for orgs on the new privilege system whose plan has audit log retention, and collapsed per+actor, project, action, subject, route and method for one minute. `recordPermissionDenied` on the+audit log service never throws to the request. Because a legacy org can never record a denial, the+settings update methods reject a request that turns the authorization class on for one+(`assertAuthorizationClassAllowed`), and the UI locks the toggle with a link to the upgrade, so the+restriction is surfaced in the API error, the response's `shouldUseNewPrivilegeSystem`, the UI, and+the docs rather than stored as a setting that does nothing.++The collapse itself is generic. `createCollapsedAuditLog` on the audit log service takes any+`TCreateAuditLogDTO` plus `collapseKeyParts` (the event type is always part of the key) and an+optional `collapseWindowSeconds` (default 60). The first event per key is written at once and+schedules a delayed `AuditLogCollapsedFlush` job; repeats inside the window only bump a keystore+counter scoped to that window's start (which the window key holds as its value, so consecutive+windows and a late flush never share a counter), and the job writes one summary event with `suppressedRepeats`, `suppressedFrom` and+`suppressedUntil` in its metadata when the window closes, so a burst that stops is still accounted+for. To collapse another event, call it instead of `createAuditLog` and add+`TAuditLogCollapseSummary` to that event's metadata type so the summary fields are typed.+### Server PluginsKey plugins in `src/server/plugins/`:diff --cc backend/src/ee/services/audit-log/audit-log-event-classes.tsindex e0d396dc3c,0000000000..60cdf41e45mode 100644,000000..100644--- a/backend/src/ee/services/audit-log/audit-log-event-classes.ts+++ b/backend/src/ee/services/audit-log/audit-log-event-classes.ts@@@ -1,307 -1,0 +1,309 @@@+import { EventType } from "./audit-log-types";++export enum AuditLogEventClass {+ Management = "management",+ Authentication = "authentication",+ Authorization = "authorization",+ DataAccess = "data-access"+}++export const AUDIT_LOG_EVENT_CLASS_DEFAULTS: Record<AuditLogEventClass, boolean> = {+ [AuditLogEventClass.Management]: true,+ [AuditLogEventClass.Authentication]: true,+ [AuditLogEventClass.DataAccess]: true,+ [AuditLogEventClass.Authorization]: false+};++export const AUDIT_LOG_EVENT_CLASSES = [+ AuditLogEventClass.Management,+ AuditLogEventClass.DataAccess,+ AuditLogEventClass.Authentication,+ AuditLogEventClass.Authorization+] as const;++export const ALWAYS_RECORDED_AUDIT_LOG_EVENT_CLASSES: readonly AuditLogEventClass[] = [+ AuditLogEventClass.Management,+ AuditLogEventClass.DataAccess+];++export const CONFIGURABLE_AUDIT_LOG_EVENT_CLASSES = [+ AuditLogEventClass.Authentication,+ AuditLogEventClass.Authorization+] as const;++export type TConfigurableAuditLogEventClass = (typeof CONFIGURABLE_AUDIT_LOG_EVENT_CLASSES)[number];++export const isAlwaysRecordedEventClass = (eventClass: AuditLogEventClass) =>+ ALWAYS_RECORDED_AUDIT_LOG_EVENT_CLASSES.includes(eventClass);++const AUTHENTICATION_EVENT_TYPES: readonly EventType[] = [+ EventType.LOGIN_IDENTITY_UNIVERSAL_AUTH,+ EventType.LOGIN_IDENTITY_UNIVERSAL_AUTH_FAILED,+ EventType.LOGIN_IDENTITY_KUBERNETES_AUTH,+ EventType.LOGIN_IDENTITY_KUBERNETES_AUTH_FAILED,+ EventType.LOGIN_IDENTITY_OIDC_AUTH,+ EventType.LOGIN_IDENTITY_OIDC_AUTH_FAILED,+ EventType.LOGIN_IDENTITY_JWT_AUTH,+ EventType.LOGIN_IDENTITY_JWT_AUTH_FAILED,+ EventType.LOGIN_IDENTITY_SPIFFE_AUTH,+ EventType.LOGIN_IDENTITY_SPIFFE_AUTH_FAILED,+ EventType.LOGIN_IDENTITY_GCP_AUTH,+ EventType.LOGIN_IDENTITY_GCP_AUTH_FAILED,+ EventType.LOGIN_IDENTITY_ALICLOUD_AUTH,+ EventType.LOGIN_IDENTITY_ALICLOUD_AUTH_FAILED,+ EventType.LOGIN_IDENTITY_TLS_CERT_AUTH,+ EventType.LOGIN_IDENTITY_TLS_CERT_AUTH_FAILED,+ EventType.LOGIN_IDENTITY_AWS_AUTH,+ EventType.LOGIN_IDENTITY_AWS_AUTH_FAILED,+ EventType.LOGIN_IDENTITY_OCI_AUTH,+ EventType.LOGIN_IDENTITY_OCI_AUTH_FAILED,+ EventType.LOGIN_IDENTITY_AZURE_AUTH,+ EventType.LOGIN_IDENTITY_AZURE_AUTH_FAILED,+ EventType.LOGIN_IDENTITY_LDAP_AUTH,+ EventType.LOGIN_IDENTITY_LDAP_AUTH_FAILED,+ EventType.ORG_ADMIN_BYPASS_SSO,+ EventType.USER_LOGIN,+ EventType.SELECT_ORGANIZATION,+ EventType.SELECT_SUB_ORGANIZATION,+ EventType.KMIP_SERVER_CONNECT,+ EventType.PAM_SESSION_UPLOAD_TOKEN_INVALID,+ EventType.AGENT_VAULT_PROXY_ENROLL,+ EventType.OAUTH_CLIENT_AUTHORIZE,+ EventType.OAUTH_CLIENT_TOKEN_EXCHANGE,+ EventType.GATEWAY_ENROLL,+ EventType.GATEWAY_CONNECT,+ EventType.RESOURCE_AUTH_METHOD_LOGIN,+ EventType.RESOURCE_AUTH_METHOD_LOGIN_FAILED+];++const AUTHORIZATION_EVENT_TYPES: readonly EventType[] = [EventType.PERMISSION_DENIED];++const EXPLICIT_MANAGEMENT_EVENT_TYPES: readonly EventType[] = [+ EventType.CREATE_PKI_ALERT,+ EventType.UPDATE_PKI_ALERT,+ EventType.DELETE_PKI_ALERT,+ EventType.CREATE_ALERT,+ EventType.UPDATE_ALERT,+ EventType.DELETE_ALERT,+ EventType.TEST_ALERT_CHANNEL,+ EventType.CREATE_PKI_APPLICATION_ALERT,+ EventType.UPDATE_PKI_APPLICATION_ALERT,+ EventType.DELETE_PKI_APPLICATION_ALERT,+ EventType.TEST_PKI_APPLICATION_ALERT_CHANNEL+];++const DATA_ACCESS_EVENT_TYPES: readonly EventType[] = [+ EventType.GET_SECRETS,+ EventType.GET_SECRET,+ EventType.REVEAL_SECRET,+ EventType.GET_PROJECT_KEY,+ EventType.GET_IDENTITY_UNIVERSAL_AUTH,+ EventType.GET_TOKENS_IDENTITY_TOKEN_AUTH,+ EventType.GET_TOKEN_IDENTITY_TOKEN_AUTH,+ EventType.GET_IDENTITY_TOKEN_AUTH,+ EventType.GET_IDENTITY_KUBERNETES_AUTH,+ EventType.GET_IDENTITY_OIDC_AUTH,+ EventType.GET_IDENTITY_JWT_AUTH,+ EventType.GET_IDENTITY_SPIFFE_AUTH,+ EventType.GET_IDENTITY_UNIVERSAL_AUTH_CLIENT_SECRETS,+ EventType.GET_IDENTITY_UNIVERSAL_AUTH_CLIENT_SECRET_BY_ID,+ EventType.GET_IDENTITY_GCP_AUTH,+ EventType.GET_IDENTITY_ALICLOUD_AUTH,+ EventType.GET_IDENTITY_TLS_CERT_AUTH,+ EventType.GET_IDENTITY_AWS_AUTH,+ EventType.GET_IDENTITY_OCI_AUTH,+ EventType.GET_IDENTITY_AZURE_AUTH,+ EventType.GET_IDENTITY_LDAP_AUTH,+ EventType.GET_ENVIRONMENT,+ EventType.GET_PROJECT_MEMBER_PERMISSION_AUDIT,+ EventType.GET_PROJECT_IDENTITY_PERMISSION_AUDIT,+ EventType.GET_SECRET_IMPORTS,+ EventType.GET_SECRET_IMPORT,+ EventType.GET_AZURE_AD_TEMPLATES,+ EventType.GET_ADCS_TEMPLATES,+ EventType.GET_CA,+ EventType.GET_CAS,+ EventType.GET_CA_CSR,+ EventType.GET_CA_CERTS,+ EventType.GET_CA_CERT,+ EventType.GET_CA_CRLS,+ EventType.GET_CA_SIGNING_CONFIG,+ EventType.GET_CA_AUTO_RENEWAL_CONFIG,+ EventType.GET_CA_CERTIFICATE_TEMPLATES,+ EventType.GET_CERT,+ EventType.GET_CERT_BODY,+ EventType.GET_CERT_PRIVATE_KEY,+ EventType.GET_CERT_BUNDLE,+ EventType.EXPORT_CERT_PKCS12,+ EventType.GET_PKI_ALERT,+ EventType.GET_PKI_COLLECTION,+ EventType.GET_PKI_COLLECTION_ITEMS,+ EventType.GET_PKI_SUBSCRIBER,+ EventType.LIST_PKI_SUBSCRIBER_CERTS,+ EventType.GET_SUBSCRIBER_ACTIVE_CERT_BUNDLE,+ EventType.GET_KMS,+ EventType.GET_PROJECT_KMS_BACKUP,+ EventType.GET_CERTIFICATE_POLICY,+ EventType.LIST_CERTIFICATE_POLICIES,+ EventType.GET_CERTIFICATE_TEMPLATE_EST_CONFIG,+ EventType.GET_CERTIFICATE_PROFILE,+ EventType.LIST_CERTIFICATE_PROFILES,+ EventType.GET_PKI_APPLICATION,+ EventType.LIST_PKI_APPLICATIONS,+ EventType.LIST_PKI_APPLICATION_MEMBERS,+ EventType.GET_PKI_APPLICATION_ENROLLMENT,+ EventType.REVEAL_PKI_APPLICATION_ACME_EAB_SECRET,+ EventType.GET_CERT_MANAGER_INSTANCE_STATE,+ EventType.GET_CERTIFICATE_PROFILE_LATEST_ACTIVE_BUNDLE,+ EventType.GET_CERTIFICATE_REQUEST,+ EventType.GET_CERTIFICATE_FROM_REQUEST,+ EventType.LIST_CERTIFICATE_REQUESTS,+ EventType.GET_PROJECT_SLACK_CONFIG,+ EventType.GET_SLACK_INTEGRATION,+ EventType.GET_PROJECT_WORKFLOW_INTEGRATION_CONFIG,+ EventType.GET_CMEKS,+ EventType.GET_CMEK,+ EventType.CMEK_ENCRYPT,+ EventType.CMEK_DECRYPT,+ EventType.CMEK_SIGN,+ EventType.CMEK_VERIFY,+ EventType.CMEK_GENERATE_MAC,+ EventType.CMEK_VERIFY_MAC,+ EventType.CMEK_LIST_SIGNING_ALGORITHMS,+ EventType.CMEK_GET_PUBLIC_KEY,+ EventType.CMEK_GET_PRIVATE_KEY,+ EventType.CMEK_BULK_EXPORT_PRIVATE_KEYS,+ EventType.GET_EXTERNAL_GROUP_ORG_ROLE_MAPPINGS,+ EventType.GET_PROJECT_TEMPLATES,+ EventType.GET_PROJECT_TEMPLATE,+ EventType.GET_APP_CONNECTIONS,+ EventType.GET_AVAILABLE_APP_CONNECTIONS_DETAILS,+ EventType.GET_APP_CONNECTION,+ EventType.GET_APP_CONNECTION_USAGE,+ EventType.READ_SHARED_SECRET,+ EventType.GET_SECRET_SYNCS,+ EventType.GET_SECRET_SYNC,+ EventType.GET_PKI_SYNCS,+ EventType.GET_PKI_SYNC,+ EventType.GET_PKI_SYNC_CERTIFICATES,+ EventType.GET_KMIP_CLIENT,+ EventType.GET_KMIP_CLIENTS,+ EventType.GET_KMIP,+ EventType.KMIP_OPERATION_GET,+ EventType.KMIP_OPERATION_GET_ATTRIBUTES,+ EventType.KMIP_OPERATION_LOCATE,+ EventType.GET_SECRET_ROTATIONS,+ EventType.GET_SECRET_ROTATION,+ EventType.GET_SECRET_ROTATION_GENERATED_CREDENTIALS,+ EventType.MICROSOFT_TEAMS_WORKFLOW_INTEGRATION_CHECK_INSTALLATION_STATUS,+ EventType.MICROSOFT_TEAMS_WORKFLOW_INTEGRATION_GET_TEAMS,+ EventType.MICROSOFT_TEAMS_WORKFLOW_INTEGRATION_GET,+ EventType.MICROSOFT_TEAMS_WORKFLOW_INTEGRATION_LIST,+ EventType.GET_PROJECT_PIT_COMMITS,+ EventType.GET_PROJECT_PIT_COMMIT_AUTHORS,+ EventType.GET_PROJECT_PIT_COMMIT_CHANGES,+ EventType.GET_PROJECT_PIT_COMMIT_COUNT,+ EventType.PIT_GET_FOLDER_STATE,+ EventType.PIT_COMPARE_FOLDER_STATES,+ EventType.SECRET_SCANNING_DATA_SOURCE_LIST,+ EventType.SECRET_SCANNING_DATA_SOURCE_GET,+ EventType.SECRET_SCANNING_RESOURCE_LIST,+ EventType.SECRET_SCANNING_SCAN_LIST,+ EventType.SECRET_SCANNING_FINDING_LIST,+ EventType.SECRET_SCANNING_CONFIG_GET,+ EventType.LIST_PROJECT_ROLES,+ EventType.GET_PROJECT_ROLE,+ EventType.GET_SECRET_REMINDER,+ EventType.DASHBOARD_LIST_SECRETS,+ EventType.DASHBOARD_GET_SECRET_VALUE,+ EventType.DASHBOARD_GET_SECRET_VERSION_VALUE,+ EventType.SEARCH_SECRETS_BY_METADATA,++ EventType.SEARCH_SECRETS_BY_VALUE,+ EventType.VIEW_INSIGHTS_AUTH_METHODS,+ EventType.VIEW_INSIGHTS_SECRETS_MANAGEMENT_CALENDAR,+ EventType.VIEW_INSIGHTS_SECRETS_MANAGEMENT_ACCESS_VOLUME,+ EventType.VIEW_INSIGHTS_SECRETS_MANAGEMENT_ORG_AUTH_METHOD_DISTRIBUTION,+ EventType.VIEW_INSIGHTS_SECRETS_MANAGEMENT_ACCESS_LOCATIONS,+ EventType.VIEW_INSIGHTS_SECRETS_MANAGEMENT_SUMMARY,+ EventType.VIEW_INSIGHTS_SECRETS_DUPLICATION,++ EventType.VIEW_INSIGHTS_ORG_SECRETS_DUPLICATION,+ EventType.VIEW_INSIGHTS_SECRETS_MANAGEMENT_COUNTS,+ EventType.VIEW_INSIGHTS_SECRETS_MANAGEMENT_USAGE,+ EventType.VIEW_INSIGHTS_SECRETS_MANAGEMENT_PROJECT_WARNINGS,+ EventType.GET_AUDIT_REPORTS,+ EventType.GET_AUDIT_REPORT,+ EventType.GET_ORG_AUDIT_REPORTS,+ EventType.VIEW_INSIGHTS_PAM_SUMMARY,+ EventType.VIEW_INSIGHTS_PAM_SESSION_ACTIVITY,+ EventType.VIEW_INSIGHTS_PAM_TOP_ACTORS,+ EventType.VIEW_INSIGHTS_PAM_RESOURCE_BREAKDOWN,+ EventType.VIEW_INSIGHTS_PAM_ROTATION_CALENDAR,+ EventType.PAM_SESSION_CREDENTIALS_GET,+ EventType.PAM_ACCOUNT_CREDENTIALS_VIEW,+ EventType.APPROVAL_POLICY_LIST,+ EventType.APPROVAL_POLICY_GET,+ EventType.APPROVAL_REQUEST_GET,+ EventType.APPROVAL_REQUEST_LIST,+ EventType.APPROVAL_REQUEST_GRANT_LIST,+ EventType.APPROVAL_REQUEST_GRANT_GET,+ EventType.RETRIEVE_ACME_ACCOUNT,+ EventType.DOWNLOAD_ACME_CERTIFICATE,+ EventType.GET_DYNAMIC_SECRET,+ EventType.LIST_DYNAMIC_SECRETS,+ EventType.CREATE_DYNAMIC_SECRET_LEASE,+ EventType.DELETE_DYNAMIC_SECRET_LEASE,+ EventType.RENEW_DYNAMIC_SECRET_LEASE,+ EventType.LIST_DYNAMIC_SECRET_LEASES,+ EventType.GET_DYNAMIC_SECRET_LEASE,+ EventType.GET_PKI_DISCOVERY,+ EventType.GET_PKI_DISCOVERIES,+ EventType.GET_PKI_INSTALLATION,+ EventType.GET_PKI_INSTALLATIONS,+ EventType.GET_PKI_SIGNER,+ EventType.GET_PKI_SIGNERS,+ EventType.GET_PKI_SIGNER_PUBLIC_KEY,+ EventType.GET_PKI_SIGNING_OPERATIONS,+ EventType.GET_PKI_SIGNING_OPERATION,+ EventType.PKI_SIGNER_SIGN,+ EventType.EXPORT_PKI_SIGNER_CERTIFICATE,+ EventType.PKI_SIGNER_REQUEST_TO_SIGN+];++const EVENT_TYPE_TO_CLASS = new Map<EventType, AuditLogEventClass>([+ ...EXPLICIT_MANAGEMENT_EVENT_TYPES.map((type) => [type, AuditLogEventClass.Management] as const),+ ...AUTHENTICATION_EVENT_TYPES.map((type) => [type, AuditLogEventClass.Authentication] as const),+ ...AUTHORIZATION_EVENT_TYPES.map((type) => [type, AuditLogEventClass.Authorization] as const),+ ...DATA_ACCESS_EVENT_TYPES.map((type) => [type, AuditLogEventClass.DataAccess] as const)+]);++const MANAGEMENT_EVENT_TYPES: readonly EventType[] = Object.values(EventType).filter(+ (type) => (EVENT_TYPE_TO_CLASS.get(type) ?? AuditLogEventClass.Management) === AuditLogEventClass.Management+);++export const AUDIT_LOG_EVENT_CLASS_MEMBERS: Record<AuditLogEventClass, readonly EventType[]> = {+ [AuditLogEventClass.Management]: MANAGEMENT_EVENT_TYPES,+ [AuditLogEventClass.Authentication]: AUTHENTICATION_EVENT_TYPES,+ [AuditLogEventClass.Authorization]: AUTHORIZATION_EVENT_TYPES,+ [AuditLogEventClass.DataAccess]: DATA_ACCESS_EVENT_TYPES+};++export const getAuditLogEventClass = (eventType: string): AuditLogEventClass =>+ EVENT_TYPE_TO_CLASS.get(eventType as EventType) ?? AuditLogEventClass.Management;++export const getEventTypesForClasses = (eventClasses: AuditLogEventClass[]): EventType[] =>+ eventClasses.flatMap((eventClass) => AUDIT_LOG_EVENT_CLASS_MEMBERS[eventClass]);++export const resolveEventClassFilter = (+ eventClasses: AuditLogEventClass[],+ eventType?: EventType[]+): { eventType?: EventType[]; excludeEventType?: EventType[] } | null => {+ if (eventType?.length) {+ const matching = eventType.filter((type) => eventClasses.includes(getAuditLogEventClass(type)));+ return matching.length ? { eventType: matching } : null;+ }+ if (eventClasses.includes(AuditLogEventClass.Management)) {+ const excluded = AUDIT_LOG_EVENT_CLASSES.filter((eventClass) => !eventClasses.includes(eventClass));+ return { excludeEventType: getEventTypesForClasses(excluded) };+ }+ return { eventType: getEventTypesForClasses(eventClasses) };+};diff --cc backend/src/server/routes/v1/organization-router.tsindex 68c48da54f,bf529619fa..2e4a4b3a41--- a/backend/src/server/routes/v1/organization-router.ts+++ b/backend/src/server/routes/v1/organization-router.ts@@@ -10,15 -10,11 +10,16 @@@ importOrgMembershipStatus,OrgRolesSchema} from "@app/db/schemas";+import { AuditLogEventClass } from "@app/ee/services/audit-log/audit-log-event-classes";+import {+ AuditLogSettingsResponseSchema,+ updateAuditLogSettingsBodySchema+} from "@app/ee/services/audit-log/audit-log-settings-schemas";import { EventType, UserAgentType } from "@app/ee/services/audit-log/audit-log-types";import { KeyStorePrefixes, KeyStoreTtls } from "@app/keystore/keystore";-import { ApiDocsTags, AUDIT_LOGS, ORGANIZATIONS } from "@app/lib/api-docs";+import { ApiDocsTags, AUDIT_LOG_SETTINGS, AUDIT_LOGS, ORGANIZATIONS } from "@app/lib/api-docs";import { getLastMidnightDateISO, removeTrailingSlash } from "@app/lib/fn";+ import { JobState } from "@app/queue/queue-service";import { readLimit, writeLimit } from "@app/server/config/rateLimiter";import { GenericResourceNameSchema, slugSchema } from "@app/server/lib/schemas";import { getTelemetryDistinctId } from "@app/server/lib/telemetry";diff --cc frontend/src/pages/agent-vault/AgentVaultAuditLogsPage/AgentVaultAuditLogsPage.tsxindex 40ff0d5458,e7744f615b..54d6e084a0--- a/frontend/src/pages/agent-vault/AgentVaultAuditLogsPage/AgentVaultAuditLogsPage.tsx+++ b/frontend/src/pages/agent-vault/AgentVaultAuditLogsPage/AgentVaultAuditLogsPage.tsx@@@ -8,9 -9,10 +8,9 @@@ import { ProjectAuditLogsTabs } from "@export const AgentVaultAuditLogsPage = () => {const { t } = useTranslation();- const { currentProject } = useProject();return (- <div className="mx-auto mb-6 flex w-full max-w-8xl flex-col gap-8">+ <div className="mx-auto mb-6 flex w-full max-w-8xl flex-col"><Helmet><title>{t("common.head-title", { title: "Audit Logs" })}</title></Helmet>diff --cc frontend/src/pages/pam/PamAuditLogsPage/PamAuditLogsPage.tsxindex 460517d8c3,cec6ee971d..fb7add8429--- a/frontend/src/pages/pam/PamAuditLogsPage/PamAuditLogsPage.tsx+++ b/frontend/src/pages/pam/PamAuditLogsPage/PamAuditLogsPage.tsx@@@ -2,9 -2,10 +2,9 @@@ import { Helmet } from "react-helmet"import { useTranslation } from "react-i18next";import { FileText } from "lucide-react";- import { PageHeader } from "@app/components/v2";+ import { PageHeader } from "@app/components/v3/platform";-import { useProject } from "@app/context";import { ProjectType } from "@app/hooks/api/projects/types";-import { LogsSection } from "@app/pages/organization/AuditLogsPage/components";+import { ProjectAuditLogsTabs } from "@app/pages/project/AuditLogsPage/components";export const PamAuditLogsPage = () => {const { t } = useTranslation();diff --cc frontend/src/pages/project/AuditLogsPage/AuditLogsPage.tsxindex f5a60017fa,f893c078c0..d205a0f5ed--- a/frontend/src/pages/project/AuditLogsPage/AuditLogsPage.tsx+++ b/frontend/src/pages/project/AuditLogsPage/AuditLogsPage.tsx@@@ -1,11 -1,10 +1,11 @@@import { Helmet } from "react-helmet";- import { PageHeader } from "@app/components/v2";import { LookingForOrgPageLink } from "@app/components/v3";+ import { PageHeader } from "@app/components/v3/platform";import { useProject } from "@app/context";import { ProjectType } from "@app/hooks/api/projects/types";-import { LogsSection } from "@app/pages/organization/AuditLogsPage/components";++import { ProjectAuditLogsTabs } from "./components";export const AuditLogsPage = () => {const { currentProject } = useProject();