Skip to content

feat: add terminal session monitoring and AI audit - #4904

Open
huanghongbo-hhb wants to merge 36 commits into
koderover:mainfrom
huanghongbo-hhb:feat/terminal-session-audit-v2
Open

feat: add terminal session monitoring and AI audit#4904
huanghongbo-hhb wants to merge 36 commits into
koderover:mainfrom
huanghongbo-hhb:feat/terminal-session-audit-v2

Conversation

@huanghongbo-hhb

@huanghongbo-hhb huanghongbo-hhb commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add terminal session recording, live monitoring, replay, termination, and bounded AI security audit.

Main Changes

  • Record pod exec, workflow debug, and SSH sessions with searchable command metadata.
  • Broadcast live output across replicas independently from recording; persist redacted AI results and mark truncated analysis as partial.

Risk / Compatibility

  • Adds system APIs and MongoDB collections/indexes; existing terminal APIs remain unchanged.

Test

  • Built all affected packages; compiled targeted audit and PodExec packages without running tests.

Contact: huanghongbo@koderover.com


This change is Reviewable

Signed-off-by: huanghongbo-hhb <huanghongbo@koderover.com>
Signed-off-by: huanghongbo-hhb <huanghongbo@koderover.com>
…on-audit-v2

Signed-off-by: huanghongbo-hhb <huanghongbo@koderover.com>
Signed-off-by: huanghongbo-hhb <huanghongbo@koderover.com>
Signed-off-by: huanghongbo-hhb <huanghongbo@koderover.com>
Signed-off-by: huanghongbo-hhb <huanghongbo@koderover.com>
Signed-off-by: huanghongbo-hhb <huanghongbo@koderover.com>
Signed-off-by: huanghongbo-hhb <huanghongbo@koderover.com>
Signed-off-by: huanghongbo-hhb <huanghongbo@koderover.com>
Signed-off-by: huanghongbo-hhb <huanghongbo@koderover.com>
Signed-off-by: huanghongbo-hhb <huanghongbo@koderover.com>
Signed-off-by: huanghongbo-hhb <huanghongbo@koderover.com>
Signed-off-by: huanghongbo-hhb <huanghongbo@koderover.com>
Signed-off-by: huanghongbo-hhb <huanghongbo@koderover.com>
Signed-off-by: huanghongbo-hhb <huanghongbo@koderover.com>
Signed-off-by: huanghongbo-hhb <huanghongbo@koderover.com>
Signed-off-by: huanghongbo-hhb <huanghongbo@koderover.com>
Signed-off-by: huanghongbo-hhb <huanghongbo@koderover.com>
Signed-off-by: huanghongbo-hhb <huanghongbo@koderover.com>
Signed-off-by: huanghongbo-hhb <huanghongbo@koderover.com>
Signed-off-by: huanghongbo-hhb <huanghongbo@koderover.com>
Signed-off-by: huanghongbo-hhb <huanghongbo@koderover.com>
Signed-off-by: huanghongbo-hhb <huanghongbo@koderover.com>
Signed-off-by: huanghongbo-hhb <huanghongbo@koderover.com>
Signed-off-by: huanghongbo-hhb <huanghongbo@koderover.com>
Signed-off-by: huanghongbo-hhb <huanghongbo@koderover.com>
Signed-off-by: huanghongbo-hhb <huanghongbo@koderover.com>
@huanghongbo-hhb
huanghongbo-hhb force-pushed the feat/terminal-session-audit-v2 branch from ea9b08b to 74d19b7 Compare September 1, 2026 08:56
Signed-off-by: huanghongbo-hhb <huanghongbo@koderover.com>
Signed-off-by: huanghongbo-hhb <huanghongbo@koderover.com>
Signed-off-by: huanghongbo-hhb <huanghongbo@koderover.com>
Signed-off-by: huanghongbo-hhb <huanghongbo@koderover.com>
Comment thread pkg/microservice/aslan/core/common/repository/models/terminal_audit.go Outdated
Comment thread pkg/microservice/aslan/core/common/repository/models/terminal_audit.go Outdated
Comment thread pkg/microservice/aslan/core/common/repository/mongodb/s3.go
Comment thread pkg/microservice/aslan/core/common/repository/mongodb/terminal_audit_ai_result.go Outdated
Comment thread pkg/microservice/aslan/core/system/handler/terminal_audit.go Outdated
Comment thread pkg/microservice/podexec/core/service/ws_terminal.go Outdated
Comment thread pkg/microservice/podexec/core/service/workflow_debug.go Outdated
Signed-off-by: huanghongbo-hhb <huanghongbo@koderover.com>
Signed-off-by: huanghongbo-hhb <huanghongbo@koderover.com>
Signed-off-by: huanghongbo-hhb <huanghongbo@koderover.com>
Signed-off-by: huanghongbo-hhb <huanghongbo@koderover.com>
Signed-off-by: huanghongbo-hhb <huanghongbo@koderover.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants