{"record":{"id":"313a8c78c0d69f75","repo":"GoogleContainerTools/skaffold","slug":"retrieving-insecure-registries-w","errorCode":null,"errorMessage":"retrieving insecure registries: %w","messagePattern":"retrieving insecure registries: %w","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"cmd/skaffold/app/cmd/filter.go","lineNumber":125,"sourceCode":"\t\tmanifestList, err = manifestList.SetLabels(pkgutil.EnvSliceToMap(opts.CustomLabels, \"=\"),\n\t\t\tmanifest.NewResourceSelectorLabels(allow, deny))\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\tmanifestList, err = manifestList.ReplaceImages(ctx, buildArtifacts, manifest.NewResourceSelectorImages(allow, deny))\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\n\t\tif debuggingFilters {\n\t\t\t// TODO(bdealwis): refactor this code\n\t\t\tdebugHelpersRegistry, err := config.GetDebugHelpersRegistry(opts.GlobalConfig)\n\t\t\tif err != nil {\n\t\t\t\treturn fmt.Errorf(\"resolving debug helpers: %w\", err)\n\t\t\t}\n\t\t\tinsecureRegistries, err := getInsecureRegistries(opts, configs)\n\t\t\tif err != nil {\n\t\t\t\treturn fmt.Errorf(\"retrieving insecure registries: %w\", err)\n\t\t\t}\n\n\t\t\tmanifestList, err = debugging.ApplyDebuggingTransforms(manifestList, buildArtifacts, manifest.Registries{\n\t\t\t\tDebugHelpersRegistry: debugHelpersRegistry,\n\t\t\t\tInsecureRegistries:   insecureRegistries,\n\t\t\t})\n\t\t\tif err != nil {\n\t\t\t\treturn fmt.Errorf(\"transforming manifests: %w\", err)\n\t\t\t}\n\t\t}\n\t\tout.Write([]byte(manifestList.String()))\n\t\treturn nil\n\t})\n}\n\nfunc getTransformList(configs []util.VersionedConfig) (map[apim.GroupKind]latest.ResourceFilter, map[apim.GroupKind]latest.ResourceFilter) {\n\t// TODO: remove code duplication by adding a new Filter method to the runner.\n\t// and reuse renderer/util.ConsolidateTransformConfiguration","sourceCodeStart":107,"sourceCodeEnd":143,"githubUrl":"https://github.com/GoogleContainerTools/skaffold/blob/a1189de023efc32d4b8e11f395acc678aa555011/cmd/skaffold/app/cmd/filter.go#L107-L143","documentation":"Wraps a failure from getInsecureRegistries(opts, configs) while preparing the registries configuration for debugging transforms. It means Skaffold could not compute the set of insecure registries from options and loaded configs.","triggerScenarios":"debuggingFilters is enabled and getInsecureRegistries fails after the debug-helpers lookup succeeded, wrapped at filter.go:125 (e.g. config iteration/parse issue in the cfg chain).","commonSituations":"Malformed registry-related entries in skaffold.yaml or global config, or an internal config-access failure while resolving insecure registries.","solutions":["Read the wrapped error to see which config source failed","Validate skaffold.yaml registry/insecure settings","Fix or remove the malformed configuration entry","Re-run the filter command"],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":"if err != nil {\n    return fmt.Errorf(\"retrieving insecure registries: %w\", err)\n}","preventionTips":["Keep registry/insecure entries in skaffold.yaml well-formed","Avoid duplicate or contradictory registry settings across config sources"],"tags":["cli","registries","config","debugging"],"backgroundTag":"invalid-registry-config","analyzedSha":"a1189de023efc32d4b8e11f395acc678aa555011","analyzedAt":"2026-09-05T12:09:27.064Z","contentChangedAt":"2026-09-05T12:09:27.064Z","schemaVersion":2},"datasetVersion":"2026-09-12T17:17:11.597Z"}