From 145a18062e68a32ba9e1d375da4f1fca76e73f45 Mon Sep 17 00:00:00 2001 From: Remi Rampin Date: Sun, 18 Aug 2024 05:57:01 -0400 Subject: [PATCH] Don't crash if a Docker password contains a colon (#2167) --- runtime/docker/auth.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/docker/auth.go b/runtime/docker/auth.go index 2a83b6d3d..ecda3ce8e 100644 --- a/runtime/docker/auth.go +++ b/runtime/docker/auth.go @@ -94,7 +94,7 @@ func GetDockerAuth(dockerConfig *DockerConfig, imageName string) (string, error) return "", err } - decodedAuthSplit := strings.Split(string(decodedAuth), authStringSep) + decodedAuthSplit := strings.SplitN(string(decodedAuth), authStringSep, authStringLength) if len(decodedAuthSplit) != authStringLength { return "", errors.New("unexpected auth string")