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
chore(pam-windows): re-disable Windows access pending session recording
bernie-g24316f188482
diff --git a/backend/src/ee/services/pam-account/pam-account-service.ts b/backend/src/ee/services/pam-account/pam-account-service.tsindex c63256cfe4..ac8b347fc1 100644--- a/backend/src/ee/services/pam-account/pam-account-service.ts+++ b/backend/src/ee/services/pam-account/pam-account-service.ts@@ -74,7 +74,6 @@ import { TPamAccountCredentials } from "../pam-resource/pam-resource-types";import { TRedisAccountCredentials } from "../pam-resource/redis/redis-resource-types";import { TSqlAccountCredentials, TSqlResourceConnectionDetails } from "../pam-resource/shared/sql/sql-resource-types";import { TSSHAccountCredentials, TSSHResourceInternalMetadata } from "../pam-resource/ssh/ssh-resource-types";-import { TWindowsAccountCredentials } from "../pam-resource/windows-server/windows-server-resource-types";import { TPamSessionDALFactory } from "../pam-session/pam-session-dal";import { PamSessionStatus } from "../pam-session/pam-session-enums";import { decryptSessionKey, generateSessionRecordingSecrets } from "../pam-session/pam-session-recording-secrets";@@ -896,14 +895,9 @@ export const pamAccountServiceFactory = ({kmsService);+ // Temporarily disable access to Windows Serverif (resourceType === PamResource.Windows) {- const recordingConfig = await pamProjectRecordingConfigDAL.findByProjectId(account.projectId);- if (!recordingConfig) {- throw new BadRequestError({- message:- "Windows resources require an external session recording configuration. Configure session recording in project settings before accessing Windows accounts."- });- }+ throw new BadRequestError({ message: `Windows resources cannot be accessed at this time` });}const user = await userDAL.findById(actor.id);@@ -1089,19 +1083,6 @@ export const pamAccountServiceFactory = ({};}break;- case PamResource.Windows:- {- const credentials = (await decryptAccountCredentials({- encryptedCredentials: account.encryptedCredentials,- kmsService,- projectId- })) as TWindowsAccountCredentials;-- metadata = {- username: credentials.username- };- }- break;case PamResource.Kubernetes:metadata = {resourceName: resource.name,