From db60abe3d8cf115e42c86ddcaf2dfcbf492801b8 Mon Sep 17 00:00:00 2001 From: Abhijeet Kasurde Date: Wed, 19 Feb 2020 22:45:06 +0530 Subject: Warn user about --password cli option in login Signed-off-by: Abhijeet Kasurde --- cmd/podman/login.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'cmd') diff --git a/cmd/podman/login.go b/cmd/podman/login.go index e5ff273b8..e09117833 100644 --- a/cmd/podman/login.go +++ b/cmd/podman/login.go @@ -82,6 +82,10 @@ func loginCmd(c *cliconfig.LoginValues) error { server = registryFromFullName(scrubServer(args[0])) } + if c.Flag("password").Changed { + fmt.Fprintf(os.Stderr, "WARNING! Using --password via the cli is insecure. Please consider using --password-stdin\n") + } + sc := image.GetSystemContext("", c.Authfile, false) if c.Flag("tls-verify").Changed { sc.DockerInsecureSkipTLSVerify = types.NewOptionalBool(!c.TlsVerify) -- cgit v1.2.3-54-g00ecf