Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

fix(pam-windows): include recording secrets in session credentials

bernie-g6b75b3155513
diff --git a/backend/src/ee/services/pam-account/pam-account-service.ts b/backend/src/ee/services/pam-account/pam-account-service.ts
index 25ca4260ee..c63256cfe4 100644
--- a/backend/src/ee/services/pam-account/pam-account-service.ts
+++ b/backend/src/ee/services/pam-account/pam-account-service.ts
@@ -1377,10 +1377,7 @@ export const pamAccountServiceFactory = ({
}
if (decryptedResource.resourceType === PamResource.Windows) {
- const { hostname, ...rest } = decryptedResource.connectionDetails as {
- hostname: string;
- [key: string]: unknown;
- };
+ const { hostname, ...rest } = decryptedResource.connectionDetails;
return {
credentials: {
...rest,
@@ -1390,7 +1387,8 @@ export const pamAccountServiceFactory = ({
policyRules,
projectId: project.id,
account,
- sessionStarted
+ sessionStarted,
+ recording: sessionRecordingSecrets
};
}