summaryrefslogtreecommitdiff
path: root/cmd/podman
diff options
context:
space:
mode:
authorAbhijeet Kasurde <akasurde@redhat.com>2020-02-19 22:45:06 +0530
committerAbhijeet Kasurde <akasurde@redhat.com>2020-02-20 15:27:01 +0530
commitdb60abe3d8cf115e42c86ddcaf2dfcbf492801b8 (patch)
treeb2495a57b00e57f75d089c2f8a4aea1655bd22e6 /cmd/podman
parentf2bcc9cc7dc8b1937f39db503db96651d84c3e3e (diff)
downloadpodman-db60abe3d8cf115e42c86ddcaf2dfcbf492801b8.tar.gz
podman-db60abe3d8cf115e42c86ddcaf2dfcbf492801b8.tar.bz2
podman-db60abe3d8cf115e42c86ddcaf2dfcbf492801b8.zip
Warn user about --password cli option in login
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
Diffstat (limited to 'cmd/podman')
-rw-r--r--cmd/podman/login.go4
1 files changed, 4 insertions, 0 deletions
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)