Skip to content
Permalink
Browse files

remove iSCSI volume storage cleartext secrets in logs

  • Loading branch information...
zouyee committed Aug 9, 2019
1 parent a51d574 commit b85516bb9aa315f73fe4568a9ddc2d6d501238c0
Showing with 2 additions and 2 deletions.
  1. +2 −2 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))
}
}
}

0 comments on commit b85516b

Please sign in to comment.
You can’t perform that action at this time.