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
lint & tweaks
x032205eb6cbf16c02f
diff --git a/backend/package-lock.json b/backend/package-lock.jsonindex 533debcec9..5af999b13e 100644--- a/backend/package-lock.json+++ b/backend/package-lock.json@@ -17,6 +17,7 @@"@aws-sdk/client-iam": "^3.525.0","@aws-sdk/client-kms": "^3.609.0","@aws-sdk/client-route-53": "^3.810.0",+ "@aws-sdk/client-s3": "^3.1020.0","@aws-sdk/client-secrets-manager": "^3.504.0","@aws-sdk/client-ssm": "^3.1015.0","@aws-sdk/client-sts": "^3.600.0",diff --git a/backend/src/@types/fastify.d.ts b/backend/src/@types/fastify.d.tsindex 4eaea07507..9f2f129b11 100644--- a/backend/src/@types/fastify.d.ts+++ b/backend/src/@types/fastify.d.ts@@ -36,8 +36,8 @@ import { TPamAccountPolicyServiceFactory } from "@app/ee/services/pam-account-poimport { TPamDiscoverySourceServiceFactory } from "@app/ee/services/pam-discovery/pam-discovery-source-service";import { TPamDomainServiceFactory } from "@app/ee/services/pam-domain/pam-domain-service";import { TPamFolderServiceFactory } from "@app/ee/services/pam-folder/pam-folder-service";-import { TPamProjectRecordingConfigServiceFactory } from "@app/ee/services/pam-project-recording-config/pam-project-recording-config-service";import { TPamInsightsServiceFactory } from "@app/ee/services/pam-insights/pam-insights-service";+import { TPamProjectRecordingConfigServiceFactory } from "@app/ee/services/pam-project-recording-config/pam-project-recording-config-service";import { TPamResourceRotationRulesServiceFactory } from "@app/ee/services/pam-resource/pam-resource-rotation-rules-service";import { TPamResourceServiceFactory } from "@app/ee/services/pam-resource/pam-resource-service";import { TPamSessionChunkServiceFactory } from "@app/ee/services/pam-session/pam-session-chunk-service";diff --git a/backend/src/ee/routes/v1/index.ts b/backend/src/ee/routes/v1/index.tsindex 3a60321de4..0b151a42fb 100644--- a/backend/src/ee/routes/v1/index.ts+++ b/backend/src/ee/routes/v1/index.ts@@ -41,8 +41,8 @@ import {registerPamDomainRouter} from "./pam-domain-routers";import { registerPamFolderRouter } from "./pam-folder-router";-import { registerPamRecordingConfigRouter } from "./pam-recording-config-router";import { registerPamInsightsRouter } from "./pam-insights-router";+import { registerPamRecordingConfigRouter } from "./pam-recording-config-router";import { PAM_RESOURCE_REGISTER_ROUTER_MAP } from "./pam-resource-routers";import { registerPamResourceRotationRulesRouter } from "./pam-resource-routers/pam-resource-rotation-rules-router";import { registerPamResourceRouter } from "./pam-resource-routers/pam-resource-router";diff --git a/backend/src/ee/services/pam-insights/pam-insights-service.ts b/backend/src/ee/services/pam-insights/pam-insights-service.tsindex af58b09aca..648496fa54 100644--- a/backend/src/ee/services/pam-insights/pam-insights-service.ts+++ b/backend/src/ee/services/pam-insights/pam-insights-service.ts@@ -22,7 +22,10 @@ const FAILED_ROTATIONS_LIMIT = 25;type TPamInsightsServiceFactoryDep = {permissionService: Pick<TPermissionServiceFactory, "getProjectPermission">;- pamSessionDAL: Pick<TPamSessionDALFactory, "countActiveByProject" | "countDailyByProject" | "findTopActorsByProject">;+ pamSessionDAL: Pick<+ TPamSessionDALFactory,+ "countActiveByProjectId" | "countDailyByProjectId" | "findTopActorsByProjectId"+ >;pamResourceDAL: Pick<TPamResourceDALFactory,"countByProject" | "countWithRotationByProject" | "countByProjectGroupedByType"@@ -96,7 +99,7 @@ export const pamInsightsServiceFactory = ({pamAccountDAL.countByProject(projectId),pamAccountDAL.countFailedRotationsByProject(projectId),pamAccountDAL.findFailedRotationsByProject(projectId, FAILED_ROTATIONS_LIMIT),- pamSessionDAL.countActiveByProject(projectId),+ pamSessionDAL.countActiveByProjectId(projectId),pamResourceDAL.countByProjectGroupedByType(projectId)]);@@ -129,7 +132,7 @@ export const pamInsightsServiceFactory = ({ttlSeconds: KeyStoreTtls.InsightsCacheInSeconds,fetcher: async () => {const startDate = getStartOfDayUtc(SESSION_ACTIVITY_DAYS - 1);- const rows = await pamSessionDAL.countDailyByProject(projectId, startDate);+ const rows = await pamSessionDAL.countDailyByProjectId(projectId, startDate);const dayCounts = new Map<string, number>();for (let i = SESSION_ACTIVITY_DAYS - 1; i >= 0; i -= 1) {@@ -158,7 +161,7 @@ export const pamInsightsServiceFactory = ({ttlSeconds: KeyStoreTtls.InsightsCacheInSeconds,fetcher: async () => {const startDate = getStartOfDayUtc(TOP_ACTORS_DAYS - 1);- const rows = await pamSessionDAL.findTopActorsByProject(projectId, startDate, TOP_ACTORS_LIMIT);+ const rows = await pamSessionDAL.findTopActorsByProjectId(projectId, startDate, TOP_ACTORS_LIMIT);return {actors: rows.map((row) => ({diff --git a/backend/src/server/routes/index.ts b/backend/src/server/routes/index.tsindex a90bd19f26..cc02baadf4 100644--- a/backend/src/server/routes/index.ts+++ b/backend/src/server/routes/index.ts@@ -106,9 +106,9 @@ import { pamDomainDALFactory } from "@app/ee/services/pam-domain/pam-domain-dal"import { pamDomainServiceFactory } from "@app/ee/services/pam-domain/pam-domain-service";import { pamFolderDALFactory } from "@app/ee/services/pam-folder/pam-folder-dal";import { pamFolderServiceFactory } from "@app/ee/services/pam-folder/pam-folder-service";+import { pamInsightsServiceFactory } from "@app/ee/services/pam-insights/pam-insights-service";import { pamProjectRecordingConfigDALFactory } from "@app/ee/services/pam-project-recording-config/pam-project-recording-config-dal";import { pamProjectRecordingConfigServiceFactory } from "@app/ee/services/pam-project-recording-config/pam-project-recording-config-service";-import { pamInsightsServiceFactory } from "@app/ee/services/pam-insights/pam-insights-service";import { pamResourceDALFactory } from "@app/ee/services/pam-resource/pam-resource-dal";import { pamResourceFavoriteDALFactory } from "@app/ee/services/pam-resource/pam-resource-favorite-dal";import { pamResourceRotationRulesDALFactory } from "@app/ee/services/pam-resource/pam-resource-rotation-rules-dal";diff --git a/frontend/src/pages/pam/InsightsPage/components/PamTopActors.tsx b/frontend/src/pages/pam/InsightsPage/components/PamTopActors.tsxindex d7808b2799..5e28b49d6e 100644--- a/frontend/src/pages/pam/InsightsPage/components/PamTopActors.tsx+++ b/frontend/src/pages/pam/InsightsPage/components/PamTopActors.tsx@@ -63,8 +63,7 @@ export const PamTopActors = () => {onClick={() =>navigate({to: sessionsRoute,- params: { orgId: currentOrg.id, projectId },- search: { search: actor.actorEmail || actor.actorName || undefined }+ params: { orgId: currentOrg.id, projectId }})}>