{"record":{"id":"00ded1ea743414dc","repo":"kubernetes/kops","slug":"fetched-certificate-subject-key-identifier-does-no","errorCode":null,"errorMessage":"fetched certificate subject key identifier does not match signer authority key identifier","messagePattern":"fetched certificate subject key identifier does not match signer authority key identifier","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"upup/pkg/fi/cloudup/azure/attest.go","lineNumber":479,"sourceCode":"\tif signer == nil {\n\t\treturn fmt.Errorf(\"signer certificate is required\")\n\t}\n\tif cert == nil {\n\t\treturn fmt.Errorf(\"fetched certificate is required\")\n\t}\n\tif !cert.IsCA {\n\t\treturn fmt.Errorf(\"fetched certificate is not a CA certificate\")\n\t}\n\t// Require at least one issuer identifier so the per-field length guards below cannot silently\n\t// degrade to \"no identity check\" if both fields happen to be empty.\n\tif len(signer.RawIssuer) == 0 && len(signer.AuthorityKeyId) == 0 {\n\t\treturn fmt.Errorf(\"signer certificate has neither RawIssuer nor AuthorityKeyId set\")\n\t}\n\tif len(signer.RawIssuer) > 0 && !bytes.Equal(cert.RawSubject, signer.RawIssuer) {\n\t\treturn fmt.Errorf(\"fetched certificate subject does not match signer issuer\")\n\t}\n\tif len(signer.AuthorityKeyId) > 0 && !bytes.Equal(cert.SubjectKeyId, signer.AuthorityKeyId) {\n\t\treturn fmt.Errorf(\"fetched certificate subject key identifier does not match signer authority key identifier\")\n\t}\n\n\treturn nil\n}\n\n// microsoftIntermediateCandidateURLs treats signer AIA values as untrusted input. It keeps only\n// entries that stay within the configured Microsoft PKI host/path allowlist and normalizes them\n// onto the configured scheme and host.\nfunc microsoftIntermediateCandidateURLs(baseURL string, signer *x509.Certificate) ([]string, error) {\n\tif signer == nil {\n\t\treturn nil, fmt.Errorf(\"signer certificate is required\")\n\t}\n\n\tbase, err := url.Parse(baseURL)\n\tif err != nil {\n\t\treturn nil, fmt.Errorf(\"parsing base URL: %w\", err)\n\t}\n\tif !base.IsAbs() || base.Host == \"\" {","sourceCodeStart":461,"sourceCodeEnd":497,"githubUrl":"https://github.com/kubernetes/kops/blob/4c8573c808a73d578c5eadc86d410646ea0b0d73/upup/pkg/fi/cloudup/azure/attest.go#L461-L497","documentation":"Structural check in validateFetchedIntermediateForSigner: the fetched certificate's SubjectKeyId does not equal the signer's AuthorityKeyId, so the key identity does not match the referenced issuer.","triggerScenarios":"Thrown at upup/pkg/fi/cloudup/azure/attest.go:479 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Discard this intermediate and try the next candidate AIA URL","Reject the attestation if no matching intermediate is found"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"4c8573c808a73d578c5eadc86d410646ea0b0d73","analyzedAt":"2026-09-05T04:13:19.212Z","contentChangedAt":"2026-09-05T04:13:19.212Z","schemaVersion":2},"datasetVersion":"2026-09-12T07:17:12.445Z"}