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
fix(pam-rdp): swallow per-event apply failures in replay player
bernie-g4575b3fff80d
diff --git a/frontend/src/pages/pam/PamSessionsByIDPage/components/RdpReplayView/rdpReplayPlayer.ts b/frontend/src/pages/pam/PamSessionsByIDPage/components/RdpReplayView/rdpReplayPlayer.tsindex c91150e2d5..e71c00d4c5 100644--- a/frontend/src/pages/pam/PamSessionsByIDPage/components/RdpReplayView/rdpReplayPlayer.ts+++ b/frontend/src/pages/pam/PamSessionsByIDPage/components/RdpReplayView/rdpReplayPlayer.ts@@ -206,7 +206,13 @@ export class RdpReplayPlayer {this.clockMs = now - this.wallStart;while (this.index < this.events.length && this.events[this.index].elapsedMs <= this.clockMs) {- this.apply(this.events[this.index]);+ // One bad event shouldn't halt the raf loop.+ try {+ this.apply(this.events[this.index]);+ } catch (err) {+ // eslint-disable-next-line no-console+ console.warn("RDP replay: apply failed, skipping event", err);+ }this.index += 1;}