Skip to content

Commit

Permalink
client: Remove clear-text logging of sensitive information
Browse files Browse the repository at this point in the history
This addresses CodeQL scan https://github.com/canonical/lxd/security/code-scanning/168

Signed-off-by: Julian Pelizäus <[email protected]>
  • Loading branch information
roosterfish committed Jun 12, 2024
1 parent eac6404 commit 22acea3
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions client/lxd.go
Original file line number Diff line number Diff line change
Expand Up @@ -269,9 +269,6 @@ func (r *ProtocolLXD) rawQuery(method string, url string, data any, ETag string)

// Set the encoding accordingly
req.Header.Set("Content-Type", "application/json")

// Log the data
logger.Debugf(logger.Pretty(data))
}
} else {
// No data to be sent along with the request
Expand Down

0 comments on commit 22acea3

Please sign in to comment.