From b85516bb9aa315f73fe4568a9ddc2d6d501238c0 Mon Sep 17 00:00:00 2001 From: zouyee Date: Fri, 9 Aug 2019 15:37:02 +0800 Subject: [PATCH] remove iSCSI volume storage cleartext secrets in logs --- pkg/volume/iscsi/iscsi_util.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/volume/iscsi/iscsi_util.go b/pkg/volume/iscsi/iscsi_util.go index 9fb88c55a78..ebc0dee3903 100644 --- a/pkg/volume/iscsi/iscsi_util.go +++ b/pkg/volume/iscsi/iscsi_util.go @@ -96,7 +96,7 @@ func updateISCSIDiscoverydb(b iscsiDiskMounter, tp string) error { if len(v) > 0 { out, err := b.exec.Run("iscsiadm", "-m", "discoverydb", "-t", "sendtargets", "-p", tp, "-I", b.Iface, "-o", "update", "-n", k, "-v", v) if err != nil { - return fmt.Errorf("iscsi: failed to update discoverydb key %q with value %q error: %v", k, v, string(out)) + return fmt.Errorf("iscsi: failed to update discoverydb key %q error: %v", k, string(out)) } } } @@ -118,7 +118,7 @@ func updateISCSINode(b iscsiDiskMounter, tp string) error { if len(v) > 0 { out, err := b.exec.Run("iscsiadm", "-m", "node", "-p", tp, "-T", b.Iqn, "-I", b.Iface, "-o", "update", "-n", k, "-v", v) if err != nil { - return fmt.Errorf("iscsi: failed to update node session key %q with value %q error: %v", k, v, string(out)) + return fmt.Errorf("iscsi: failed to update node session key %q error: %v", k, string(out)) } } }