seknox / trasa

Zero Trust Service Access
https://www.trasa.io
Mozilla Public License 2.0
384 stars 68 forks source link

[BUG] Implement mutex lock to handle concurrent ssh sessions #290

Closed bhrg3se closed 3 years ago

bhrg3se commented 3 years ago

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: