Skip to content

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

feat(pam-rdp): accept rdp channel and event type in session logs

bernie-g5d5cef67089b
diff --git a/backend/src/ee/services/pam-session/pam-session-enums.ts b/backend/src/ee/services/pam-session/pam-session-enums.ts
index 26ca5a4178..9666101c94 100644
--- a/backend/src/ee/services/pam-session/pam-session-enums.ts
+++ b/backend/src/ee/services/pam-session/pam-session-enums.ts
@@ -8,5 +8,6 @@ export enum PamSessionStatus {
export enum TerminalChannelType {
Terminal = "terminal", // Interactive SSH terminal session
Exec = "exec", // SSH exec command
- Sftp = "sftp" // SFTP file transfer session
+ Sftp = "sftp", // SFTP file transfer session
+ Rdp = "rdp" // RDP frame/input tap; data carries an RDP-specific JSON envelope
}
diff --git a/backend/src/ee/services/pam-session/pam-session-schemas.ts b/backend/src/ee/services/pam-session/pam-session-schemas.ts
index d12ef510eb..00d26ae60a 100644
--- a/backend/src/ee/services/pam-session/pam-session-schemas.ts
+++ b/backend/src/ee/services/pam-session/pam-session-schemas.ts
@@ -10,8 +10,11 @@ export const PamSessionCommandLogSchema = z.object({
timestamp: z.coerce.date()
});
-// SSH Terminal Event schemas
-export const TerminalEventTypeSchema = z.enum(["input", "output", "resize", "error"]);
+// Terminal-channel event types. SSH uses input / output / resize / error.
+// "rdp" tags an RDP-tap event whose `data` field carries an RDP-specific
+// JSON envelope (target_frame / keyboard / unicode / mouse) -- the player on
+// the frontend decodes that envelope after AAD-bound chunk decryption.
+export const TerminalEventTypeSchema = z.enum(["input", "output", "resize", "error", "rdp"]);
export const TerminalChannelTypeSchema = z.nativeEnum(TerminalChannelType);