feat: add audit.session.end NATS pipeline for SSH session tracking
Poller publishes session end events via JetStream when SSH sessions close (normal disconnect or idle timeout). Backend subscribes with a durable consumer and writes ssh_session_end audit log entries with duration. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -220,7 +220,7 @@ func main() {
|
||||
// -----------------------------------------------------------------------
|
||||
// Initialize SSH relay server and HTTP listener
|
||||
// -----------------------------------------------------------------------
|
||||
sshServer := sshrelay.NewServer(redisClient, credentialCache, deviceStore, sshrelay.Config{
|
||||
sshServer := sshrelay.NewServer(redisClient, credentialCache, deviceStore, publisher, sshrelay.Config{
|
||||
IdleTimeout: time.Duration(cfg.SSHIdleTimeout) * time.Second,
|
||||
MaxSessions: cfg.SSHMaxSessions,
|
||||
MaxPerUser: cfg.SSHMaxPerUser,
|
||||
|
||||
Reference in New Issue
Block a user