seknox / trasa

Zero Trust Service Access

Home Page:https://www.trasa.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[BUG] Implement mutex lock to handle concurrent ssh sessions

bhrg3se opened this issue · comments

Describe the bug:

SSH session details are kept in map which are not safe for concurrent use. So we need to implement a mutex lock or use sync.Map. So when ssh usage is high, server might panic and crash.

Log file / Code snippet / Screenshots:

image

Scope of issue:

  • TRASA codebase
  • dashboard
  • server
  • mobile app
  • browser extension
  • device agent
  • website/docs