{"id":"92b0a3f53dbf5b50","repo":"docker/cli","slug":"invalid-auth-configuration-file","errorCode":null,"errorMessage":"invalid auth configuration file","messagePattern":"invalid auth configuration file","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"cli/config/configfile/file.go","lineNumber":314,"sourceCode":"// decodeAuth decodes a base64 encoded string and returns username and password\nfunc decodeAuth(authStr string) (string, string, error) {\n\tif authStr == \"\" {\n\t\treturn \"\", \"\", nil\n\t}\n\n\tdecLen := base64.StdEncoding.DecodedLen(len(authStr))\n\tdecoded := make([]byte, decLen)\n\tauthByte := []byte(authStr)\n\tn, err := base64.StdEncoding.Decode(decoded, authByte)\n\tif err != nil {\n\t\treturn \"\", \"\", err\n\t}\n\tif n > decLen {\n\t\treturn \"\", \"\", errors.New(\"something went wrong decoding auth config\")\n\t}\n\tuserName, password, ok := strings.Cut(string(decoded), \":\")\n\tif !ok || userName == \"\" {\n\t\treturn \"\", \"\", errors.New(\"invalid auth configuration file\")\n\t}\n\treturn userName, strings.Trim(password, \"\\x00\"), nil\n}\n\n// GetCredentialsStore returns a new credentials store from the settings in the\n// configuration file\nfunc (c *ConfigFile) GetCredentialsStore(registryHostname string) credentials.Store {\n\tstore := credentials.NewFileStore(c)\n\n\tif helper := getConfiguredCredentialStore(c, getAuthConfigKey(registryHostname)); helper != \"\" {\n\t\tstore = newNativeStore(c, helper)\n\t}\n\n\tenvConfig := os.Getenv(DockerEnvConfigKey)\n\tif envConfig == \"\" {\n\t\treturn store\n\t}\n","sourceCodeStart":296,"sourceCodeEnd":332,"githubUrl":"https://github.com/docker/cli/blob/e9452d6e785f6e365712b9d71bd7517591773c86/cli/config/configfile/file.go#L296-L332","documentation":"Error \"invalid auth configuration file\" thrown in docker/cli.","triggerScenarios":"Thrown at cli/config/configfile/file.go:314 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"analyzedSha":"e9452d6e785f6e365712b9d71bd7517591773c86","analyzedAt":"2026-08-01T07:09:22.474Z","schemaVersion":2}