From 22acea3798f57d24aa7f4a7c70bc116f594151ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julian=20Peliz=C3=A4us?= Date: Wed, 12 Jun 2024 10:14:32 +0200 Subject: [PATCH] client: Remove clear-text logging of sensitive information MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This addresses CodeQL scan https://github.com/canonical/lxd/security/code-scanning/168 Signed-off-by: Julian Pelizäus --- client/lxd.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/client/lxd.go b/client/lxd.go index 12775d2f787b..796a6fb5c2bb 100644 --- a/client/lxd.go +++ b/client/lxd.go @@ -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