{"id":"c96a2321968545e6","repo":"docker/cli","slug":"no-valid-signing-keys-for-delegation-roles","errorCode":null,"errorMessage":"no valid signing keys for delegation roles","messagePattern":"no valid signing keys for delegation roles","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"cmd/docker-trust/internal/trust/trust.go","lineNumber":317,"sourceCode":"\t// and attempt to sign in to all those roles.\n\tfor _, delegationRole := range allDelegationRoles {\n\t\t// We do not support signing any delegation role that isn't a direct child of the targets role.\n\t\t// Also don't bother checking the keys if we can't add the target\n\t\t// to this role due to path restrictions\n\t\tif path.Dir(delegationRole.Name.String()) != data.CanonicalTargetsRole.String() || !delegationRole.CheckPaths(target.Name) {\n\t\t\tcontinue\n\t\t}\n\n\t\tfor _, canonicalKeyID := range delegationRole.KeyIDs {\n\t\t\tif _, ok := allCanonicalKeyIDs[canonicalKeyID]; ok {\n\t\t\t\tsignableRoles = append(signableRoles, delegationRole.Name)\n\t\t\t\tbreak\n\t\t\t}\n\t\t}\n\t}\n\n\tif len(signableRoles) == 0 {\n\t\treturn signableRoles, errors.New(\"no valid signing keys for delegation roles\")\n\t}\n\n\treturn signableRoles, nil\n}\n\n// ImageRefAndAuth contains all reference information and the auth config for an image request\ntype ImageRefAndAuth struct {\n\toriginal   string\n\tauthConfig *registrytypes.AuthConfig\n\treference  reference.Named\n\trepoInfo   *RepositoryInfo\n\ttag        string\n\tdigest     digest.Digest\n}\n\n// RepositoryInfo describes a repository\ntype RepositoryInfo struct {\n\tName reference.Named","sourceCodeStart":299,"sourceCodeEnd":335,"githubUrl":"https://github.com/docker/cli/blob/e9452d6e785f6e365712b9d71bd7517591773c86/cmd/docker-trust/internal/trust/trust.go#L299-L335","documentation":"Error \"no valid signing keys for delegation roles\" thrown in docker/cli.","triggerScenarios":"Thrown at cmd/docker-trust/internal/trust/trust.go:317 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}