Просмотр исходного кода

wsman: avoid logging the connection info

The WSMAN (WinRM) connection info is expected to contain sensitive
data, such as passwords or key certificates.

For this reason, it shouldn't be logged. There's a subsequent
log message covering the host and port, which should be enough.
Lucian Petrut 2 недель назад
Родитель
Сommit
82a3ace172
1 измененных файлов с 0 добавлено и 2 удалено
  1. 0 2
      coriolis/wsman.py

+ 0 - 2
coriolis/wsman.py

@@ -75,8 +75,6 @@ class WSManConnection(object):
         cert_key_pem = connection_info.get("cert_key_pem")
         url = "https://%s:%s/wsman" % (host, port)
 
-        LOG.info("Connection info: %s", str(connection_info))
-
         LOG.info("Waiting for connectivity on host: %(host)s:%(port)s",
                  {"host": host, "port": port})
         utils.wait_for_port_connectivity(host, port)