From e542e069f12a94ee01ff11aadf3451f87f042ba0 Mon Sep 17 00:00:00 2001 From: CalobTech <157553998+CalobTech@users.noreply.github.com> Date: Wed, 8 Jan 2025 18:36:51 -0300 Subject: [PATCH] config.go: invoke the MaskProxyPasswordWithKey function to hide the environment variable When the HTTP_PROXY variable is set in the environment, Minikube hides the password when showing the network options, but displays it when showing the (env) variable. The "showVersionInfo" function has been changed to hide the variable's password as well. --- pkg/minikube/node/config.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/minikube/node/config.go b/pkg/minikube/node/config.go index 0ef66c916083..5f12b7a1cd3e 100644 --- a/pkg/minikube/node/config.go +++ b/pkg/minikube/node/config.go @@ -49,6 +49,7 @@ func showVersionInfo(k8sVersion string, cr cruntime.Manager) { out.Infof("opt {{.docker_option}}", out.V{"docker_option": v}) } for _, v := range config.DockerEnv { + v = util.MaskProxyPasswordWithKey(v) out.Infof("env {{.docker_env}}", out.V{"docker_env": v}) } }