Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DO NOT MERGE] Log control service command #980

Draft
wants to merge 1 commit into
base: devel
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions pkg/controlsvc/controlsvc.go
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,7 @@ func (s *Server) RunControlSession(conn net.Conn) {
if len(cmdBytes) == 0 {
continue
}
s.nc.GetLogger().Debug("Control service received command: %s\n", string(cmdBytes))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We will need to sanitise this to prevent Log Injection Attacks i think.
I have already created SanitizedDebug to do exactly this, however it comes with a performance cost 😄

var cmd string
var params string
var jsonData map[string]interface{}
Expand Down
Loading