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 PAM-237-BASE
x032205a6748851da2f
diff --cc backend/src/ee/services/audit-log/audit-log-types.tsindex 711de8b467,01bccd72ae..8d9d1c92f7--- a/backend/src/ee/services/audit-log/audit-log-types.ts+++ b/backend/src/ee/services/audit-log/audit-log-types.ts@@@ -677,13 -696,26 +695,21 @@@ export enum EventTypeVIEW_INSIGHTS_SECRETS_MANAGEMENT_ACCESS_VOLUME = "view-insights-secrets-management-access-volume",VIEW_INSIGHTS_SECRETS_MANAGEMENT_ACCESS_LOCATIONS = "view-insights-secrets-management-access-locations",VIEW_INSIGHTS_SECRETS_MANAGEMENT_SUMMARY = "view-insights-secrets-management-summary",+ VIEW_INSIGHTS_SECRETS_DUPLICATION = "view-insights-secrets-duplication",+ VIEW_INSIGHTS_PAM_SUMMARY = "view-insights-pam-summary",+ VIEW_INSIGHTS_PAM_SESSION_ACTIVITY = "view-insights-pam-session-activity",+ VIEW_INSIGHTS_PAM_TOP_ACTORS = "view-insights-pam-top-actors",+ VIEW_INSIGHTS_PAM_RESOURCE_BREAKDOWN = "view-insights-pam-resource-breakdown",+ VIEW_INSIGHTS_PAM_ROTATION_CALENDAR = "view-insights-pam-rotation-calendar",++ PAM_SESSION_CREDENTIALS_GET = "pam-session-credentials-get",PAM_SESSION_START = "pam-session-start",- PAM_SESSION_LOGS_UPDATE = "pam-session-logs-update",PAM_SESSION_END = "pam-session-end",- PAM_SESSION_TERMINATE = "pam-session-terminate",- PAM_SESSION_GET = "pam-session-get",- PAM_SESSION_LIST = "pam-session-list",- PAM_SESSION_EVENT_BATCH_UPLOAD = "pam-session-event-batch-upload",PAM_SESSION_CHUNK_UPLOAD = "pam-session-chunk-upload",PAM_SESSION_UPLOAD_TOKEN_INVALID = "pam-session-upload-token-invalid",- PAM_RECORDING_CONFIG_UPDATE = "pam-recording-config-update",- PAM_RECORDING_CONFIG_DELETE = "pam-recording-config-delete",- PAM_RECORDING_BUCKET_CONNECTION_TEST_FAILED = "pam-recording-bucket-connection-test-failed",+ PAM_ACCOUNT_TEMPLATE_CREATE = "pam-account-template-create",+ PAM_ACCOUNT_TEMPLATE_UPDATE = "pam-account-template-update",+ PAM_ACCOUNT_TEMPLATE_DELETE = "pam-account-template-delete",PAM_FOLDER_CREATE = "pam-folder-create",PAM_FOLDER_UPDATE = "pam-folder-update",PAM_FOLDER_DELETE = "pam-folder-delete",@@@ -7395,7 -7892,13 +7528,8 @@@ export type Event| ViewSecretManagementInsightsAccessLocationsEvent| ViewInsightsAuthMethodsEvent| ViewSecretManagementInsightsSummaryEvent+ | ViewInsightsSecretsDuplicationEvent| ViewAuditLogsEvent- | ViewPamInsightsSummaryEvent- | ViewPamInsightsSessionActivityEvent- | ViewPamInsightsTopActorsEvent- | ViewPamInsightsResourceBreakdownEvent- | ViewPamInsightsRotationCalendarEvent| ProjectRoleCreateEvent| ProjectRoleUpdateEvent| ProjectRoleDeleteEventdiff --cc backend/src/keystore/keystore.tsindex 3f1ce775d1,aaac1a7eed..6bf4dfe861--- a/backend/src/keystore/keystore.ts+++ b/backend/src/keystore/keystore.ts@@@ -159,8 -166,9 +167,10 @@@ export const KeyStoreTtls =InvalidatingCacheInSeconds: 1800, // 30 minutes max lock for cache invalidation jobAuditLogMigrationAlertInSeconds: 604800, // 7 daysLicenseCloudPlanInSeconds: 300, // 5 minutes+ PamDefaultProjectInSeconds: 300, // 5 minutes+ LicenseEntitlementsInSeconds: 1800, // 30 minutesAiMcpEndpointOAuthFlowInSeconds: 300, // 5 minutes+ OauthAuthorizationCodeInSeconds: 600, // 10 minutesAiMcpServerOAuthSessionInSeconds: 600, // 10 minutesDashboardCacheInSeconds: 600, // 10 minutesProjectEnvironmentOperationMarkerInSeconds: 10,diff --cc backend/src/lib/api-docs/constants.tsindex d0265398b9,8492e44a37..af60ff141f--- a/backend/src/lib/api-docs/constants.ts+++ b/backend/src/lib/api-docs/constants.ts@@@ -92,12 -92,7 +92,13 @@@ export enum ApiDocsTagsScim = "SCIM",Events = "Event Subscriptions",GatewaysV3 = "Gateways",+ PamAccounts = "PAM Accounts",+ PamFolders = "PAM Folders",+ PamAccountTemplates = "PAM Account Templates",+ PamSessions = "PAM Sessions",+ PamMemberships = "PAM Memberships",- PamRoles = "PAM Roles"++ PamRoles = "PAM Roles",+ KmipServers = "KMIP Servers"}export const GROUPS = {diff --cc backend/src/server/routes/index.tsindex 38c28e2298,e5470935f0..acc4033d9e--- a/backend/src/server/routes/index.ts+++ b/backend/src/server/routes/index.ts@@@ -496,8 -523,9 +504,10 @@@ import { injectAuditLogInfo } from "../import { injectAssumePrivilege } from "../plugins/auth/inject-assume-privilege";import { injectIdentity } from "../plugins/auth/inject-identity";import { injectPermission } from "../plugins/auth/inject-permission";- import { forwardToGoSidecar } from "../plugins/go-sidecar-forwarding";+ import { goSidecarPlugin } from "../plugins/go-sidecar";+ // import { forwardToGoSidecar } from "../plugins/go-sidecar-forwarding";+ import { shadowToGoSidecar } from "../plugins/go-sidecar-shadowing";+import { injectPamProjectId } from "../plugins/inject-pam-project-id";import { injectRateLimits } from "../plugins/inject-rate-limits";import { forwardWritesToPrimary } from "../plugins/primary-forwarding-mode";import { registerV1Routes } from "./v1";@@@ -3437,8 -3624,13 +3490,9 @@@ export const registerRoutes = asyncprojectEnvQueue.init();projectCleanupQueue.init();healthAlert.init();+ auditLogStreamOutboxQueue.init();pkiSyncCleanup.init();pkiDiscoveryQueue.startPkiDiscoveryScanQueue();- pamDiscoveryQueue.startPamDiscoveryQueue();- pamAccountRotation.init();- pamSessionExpirationService.init();- pamSessionAiSummaryService.init();dailyReminderQueueService.startDailyRemindersJob();secretSyncQueue.startDailySecretSyncRetryJob();dailyExpiringPkiItemAlert.startSendingAlerts();diff --cc frontend/src/pages/organization/AccessManagementPage/components/OrgMembersTab/components/OrgMembersSection/AddOrgMemberModal.tsxindex 92eded9e98,9667aa3857..787d762aaa--- a/frontend/src/pages/organization/AccessManagementPage/components/OrgMembersTab/components/OrgMembersSection/AddOrgMemberModal.tsx+++ b/frontend/src/pages/organization/AccessManagementPage/components/OrgMembersTab/components/OrgMembersSection/AddOrgMemberModal.tsx@@@ -51,19 -50,28 +50,41 @@@ const CERT_MANAGER_ROLES =}];+const PAM_ROLES = [+ {+ slug: "admin",+ name: "Admin",+ description: "Full administrative access over Access Management"+ },+ {+ slug: "member",+ name: "Member",+ description: "Access scoped to the folders and accounts they've been added to"+ }+];++ type ProductDefinition = {+ type: ProjectType;+ name: string;+ isSingleton: boolean;+ roles?: { slug: string; name: string; description: string }[];+ };++ const PRODUCT_DEFINITIONS: ProductDefinition[] = [+ { type: ProjectType.SecretManager, name: "Secrets", isSingleton: false },+ {+ type: ProjectType.CertificateManager,+ name: "Certificate Manager",+ isSingleton: true,+ roles: CERT_MANAGER_ROLES+ },+ { type: ProjectType.KMS, name: "KMS", isSingleton: false },+ { type: ProjectType.SSH, name: "SSH", isSingleton: false },+ { type: ProjectType.SecretScanning, name: "Secret Scanning", isSingleton: false },- { type: ProjectType.PAM, name: "PAM", isSingleton: false },++ { type: ProjectType.PAM, name: "Access Management", isSingleton: false, roles: PAM_ROLES },+ { type: ProjectType.AI, name: "AI", isSingleton: false }+ ];+const EmailSchema = z.string().email().min(1).trim().toLowerCase();const addMemberFormSchema = z.object({diff --cc frontend/src/routeTree.gen.tsindex 0dd2ebb058,2fc58b8791..4ba46149e8--- a/frontend/src/routeTree.gen.ts+++ b/frontend/src/routeTree.gen.ts@@@ -86,9 -87,10 +87,11 @@@ import { Route as pamLayoutImport } froimport { Route as kmsLayoutImport } from './pages/kms/layout'import { Route as certManagerLayoutImport } from './pages/cert-manager/layout'import { Route as aiLayoutImport } from './pages/ai/layout'+import { Route as pamPamAccountAccessPageRouteImport } from './pages/pam/PamAccountAccessPage/route'+ import { Route as organizationKmipServersPageKmipServerDetailsByIDPageRouteImport } from './pages/organization/KmipServersPage/KmipServerDetailsByIDPage/route'import { Route as organizationAppConnectionsGitHubManifestCallbackPageRouteImport } from './pages/organization/AppConnections/GitHubManifestCallbackPage/route'import { Route as organizationAppConnectionsOauthCallbackPageRouteImport } from './pages/organization/AppConnections/OauthCallbackPage/route'+ import { Route as organizationKmipServersPageRouteImport } from './pages/organization/KmipServersPage/route'import { Route as projectAuditLogsPageRouteSshImport } from './pages/project/AuditLogsPage/route-ssh'import { Route as projectAccessControlPageRouteSshImport } from './pages/project/AccessControlPage/route-ssh'import { Route as projectAuditLogsPageRouteSecretScanningImport } from './pages/project/AuditLogsPage/route-secret-scanning'@@@ -1095,13 -1118,14 +1118,21 @@@ const aiLayoutRoute = aiLayoutImport.upAuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsAiProjectIdRoute,} as any)+const pamPamAccountAccessPageRouteRoute =+ pamPamAccountAccessPageRouteImport.update({+ id: '/organizations/$orgId/pam/accounts/$accountType/$accountId/access',+ path: '/organizations/$orgId/pam/accounts/$accountType/$accountId/access',+ getParentRoute: () => middlewaresInjectOrgDetailsRoute,+ } as any)++ const organizationKmipServersPageKmipServerDetailsByIDPageRouteRoute =+ organizationKmipServersPageKmipServerDetailsByIDPageRouteImport.update({+ id: '/$kmipServerId',+ path: '/$kmipServerId',+ getParentRoute: () =>+ AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsKmsKmipServersRoute,+ } as any)+const organizationAppConnectionsGitHubManifestCallbackPageRouteRoute =organizationAppConnectionsGitHubManifestCallbackPageRouteImport.update({id: '/github/manifest/callback',@@@ -3347,13 -3407,13 +3407,20 @@@ declare module '@tanstack/react-routerpreLoaderRoute: typeof organizationAppConnectionsGitHubManifestCallbackPageRouteImportparentRoute: typeof AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdAppConnectionsImport}+ '/_authenticate/_inject-org-details/organizations/$orgId/pam/accounts/$accountType/$accountId/access': {+ id: '/_authenticate/_inject-org-details/organizations/$orgId/pam/accounts/$accountType/$accountId/access'+ path: '/organizations/$orgId/pam/accounts/$accountType/$accountId/access'+ fullPath: '/organizations/$orgId/pam/accounts/$accountType/$accountId/access'+ preLoaderRoute: typeof pamPamAccountAccessPageRouteImport+ parentRoute: typeof middlewaresInjectOrgDetailsImport+ }+ '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/kms/kmip-servers/$kmipServerId': {+ id: '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/kms/kmip-servers/$kmipServerId'+ path: '/$kmipServerId'+ fullPath: '/organizations/$orgId/projects/kms/kmip-servers/$kmipServerId'+ preLoaderRoute: typeof organizationKmipServersPageKmipServerDetailsByIDPageRouteImport+ parentRoute: typeof AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsKmsKmipServersImport+ }'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ai/$projectId/_ai-layout': {id: '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ai/$projectId/_ai-layout'path: ''@@@ -6370,9 -6463,10 +6463,11 @@@ export interface FileRoutesByFullPath'/organizations/$orgId/projects/secret-scanning/$projectId': typeof secretScanningLayoutRouteWithChildren'/organizations/$orgId/projects/ssh/$projectId': typeof sshLayoutRouteWithChildren'/organizations/$orgId/secret-manager/$projectId/approval': typeof secretManagerRedirectsRedirectApprovalPageRoute+ '/organizations/$orgId/projects/kms/kmip-servers/': typeof organizationKmipServersPageRouteRoute'/organizations/$orgId/app-connections/$appConnection/oauth/callback': typeof organizationAppConnectionsOauthCallbackPageRouteRoute'/organizations/$orgId/app-connections/github/manifest/callback': typeof organizationAppConnectionsGitHubManifestCallbackPageRouteRoute+ '/organizations/$orgId/pam/accounts/$accountType/$accountId/access': typeof pamPamAccountAccessPageRouteRoute+ '/organizations/$orgId/projects/kms/kmip-servers/$kmipServerId': typeof organizationKmipServersPageKmipServerDetailsByIDPageRouteRoute'/organizations/$orgId/projects/ai/$projectId/overview': typeof aiMCPPageRouteRoute'/organizations/$orgId/projects/ai/$projectId/settings': typeof aiSettingsPageRouteRoute'/organizations/$orgId/projects/cert-manager/$projectId/alerting': typeof certManagerAlertingPageRouteRoute@@@ -6658,9 -6754,10 +6754,11 @@@ export interface FileRoutesByTo'/organizations/$orgId/projects/secret-scanning/$projectId': typeof secretScanningLayoutRouteWithChildren'/organizations/$orgId/projects/ssh/$projectId': typeof sshLayoutRouteWithChildren'/organizations/$orgId/secret-manager/$projectId/approval': typeof secretManagerRedirectsRedirectApprovalPageRoute+ '/organizations/$orgId/projects/kms/kmip-servers': typeof organizationKmipServersPageRouteRoute'/organizations/$orgId/app-connections/$appConnection/oauth/callback': typeof organizationAppConnectionsOauthCallbackPageRouteRoute'/organizations/$orgId/app-connections/github/manifest/callback': typeof organizationAppConnectionsGitHubManifestCallbackPageRouteRoute+ '/organizations/$orgId/pam/accounts/$accountType/$accountId/access': typeof pamPamAccountAccessPageRouteRoute+ '/organizations/$orgId/projects/kms/kmip-servers/$kmipServerId': typeof organizationKmipServersPageKmipServerDetailsByIDPageRouteRoute'/organizations/$orgId/projects/ai/$projectId/overview': typeof aiMCPPageRouteRoute'/organizations/$orgId/projects/ai/$projectId/settings': typeof aiSettingsPageRouteRoute'/organizations/$orgId/projects/cert-manager/$projectId/alerting': typeof certManagerAlertingPageRouteRoute@@@ -6939,9 -7039,10 +7039,11 @@@ export interface FileRoutesById'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/secret-scanning/$projectId': typeof AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsSecretScanningProjectIdRouteWithChildren'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ssh/$projectId': typeof AuthenticateInjectOrgDetailsOrgLayoutOrganizationsOrgIdProjectsSshProjectIdRouteWithChildren'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/secret-manager/$projectId/approval': typeof secretManagerRedirectsRedirectApprovalPageRoute+ '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/kms/kmip-servers/': typeof organizationKmipServersPageRouteRoute'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/app-connections/$appConnection/oauth/callback': typeof organizationAppConnectionsOauthCallbackPageRouteRoute'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/app-connections/github/manifest/callback': typeof organizationAppConnectionsGitHubManifestCallbackPageRouteRoute+ '/_authenticate/_inject-org-details/organizations/$orgId/pam/accounts/$accountType/$accountId/access': typeof pamPamAccountAccessPageRouteRoute+ '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/kms/kmip-servers/$kmipServerId': typeof organizationKmipServersPageKmipServerDetailsByIDPageRouteRoute'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ai/$projectId/_ai-layout': typeof aiLayoutRouteWithChildren'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-manager/$projectId/_cert-manager-layout': typeof certManagerLayoutRouteWithChildren'/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/kms/$projectId/_kms-layout': typeof kmsLayoutRouteWithChildren@@@ -7244,9 -7348,10 +7348,11 @@@ export interface FileRouteTypes| '/organizations/$orgId/projects/secret-scanning/$projectId'| '/organizations/$orgId/projects/ssh/$projectId'| '/organizations/$orgId/secret-manager/$projectId/approval'+ | '/organizations/$orgId/projects/kms/kmip-servers/'| '/organizations/$orgId/app-connections/$appConnection/oauth/callback'| '/organizations/$orgId/app-connections/github/manifest/callback'+ | '/organizations/$orgId/pam/accounts/$accountType/$accountId/access'+ | '/organizations/$orgId/projects/kms/kmip-servers/$kmipServerId'| '/organizations/$orgId/projects/ai/$projectId/overview'| '/organizations/$orgId/projects/ai/$projectId/settings'| '/organizations/$orgId/projects/cert-manager/$projectId/alerting'@@@ -7531,9 -7638,10 +7638,11 @@@| '/organizations/$orgId/projects/secret-scanning/$projectId'| '/organizations/$orgId/projects/ssh/$projectId'| '/organizations/$orgId/secret-manager/$projectId/approval'+ | '/organizations/$orgId/projects/kms/kmip-servers'| '/organizations/$orgId/app-connections/$appConnection/oauth/callback'| '/organizations/$orgId/app-connections/github/manifest/callback'+ | '/organizations/$orgId/pam/accounts/$accountType/$accountId/access'+ | '/organizations/$orgId/projects/kms/kmip-servers/$kmipServerId'| '/organizations/$orgId/projects/ai/$projectId/overview'| '/organizations/$orgId/projects/ai/$projectId/settings'| '/organizations/$orgId/projects/cert-manager/$projectId/alerting'@@@ -7810,9 -7921,10 +7921,11 @@@| '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/secret-scanning/$projectId'| '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ssh/$projectId'| '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/secret-manager/$projectId/approval'+ | '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/kms/kmip-servers/'| '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/app-connections/$appConnection/oauth/callback'| '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/app-connections/github/manifest/callback'+ | '/_authenticate/_inject-org-details/organizations/$orgId/pam/accounts/$accountType/$accountId/access'+ | '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/kms/kmip-servers/$kmipServerId'| '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ai/$projectId/_ai-layout'| '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/cert-manager/$projectId/_cert-manager-layout'| '/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/kms/$projectId/_kms-layout'@@@ -8550,10 -8681,10 +8681,14 @@@ export const routeTree = rootRout"filePath": "organization/AppConnections/GitHubManifestCallbackPage/route.tsx","parent": "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/app-connections"},+ "/_authenticate/_inject-org-details/organizations/$orgId/pam/accounts/$accountType/$accountId/access": {+ "filePath": "pam/PamAccountAccessPage/route.tsx",+ "parent": "/_authenticate/_inject-org-details"+ },+ "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/kms/kmip-servers/$kmipServerId": {+ "filePath": "organization/KmipServersPage/KmipServerDetailsByIDPage/route.tsx",+ "parent": "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/kms/kmip-servers"+ },"/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ai/$projectId/_ai-layout": {"filePath": "ai/layout.tsx","parent": "/_authenticate/_inject-org-details/_org-layout/organizations/$orgId/projects/ai/$projectId",