{"record":{"id":"dace743296a78d96","repo":"getsops/sops","slug":"key-with-fingerprint-s-is-not-available-in-keyr","errorCode":null,"errorMessage":"key with fingerprint '%s' is not available in keyring","messagePattern":"key with fingerprint '(.+?)' is not available in keyring","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"pgp/keysource.go","lineNumber":509,"sourceCode":"\n// TypeToIdentifier returns the string identifier for the MasterKey type.\nfunc (key *MasterKey) TypeToIdentifier() string {\n\treturn KeyTypeIdentifier\n}\n\n// retrievePubKey attempts to retrieve the public key from the public keyring\n// by Fingerprint.\nfunc (key *MasterKey) retrievePubKey() (openpgp.Entity, error) {\n\tring, err := key.getPubRing()\n\tif err == nil {\n\t\tfingerprints := fingerprintIndex(ring)\n\t\tentity, ok := fingerprints[key.Fingerprint]\n\t\tif ok {\n\t\t\treturn entity, nil\n\t\t}\n\t}\n\treturn openpgp.Entity{},\n\t\tfmt.Errorf(\"key with fingerprint '%s' is not available \"+\n\t\t\t\"in keyring\", key.Fingerprint)\n}\n\n// getPubRing loads the public keyring from the configured path, or falls back\n// to defaultPubRing relative to the GnuPG home. It returns an openpgp.EntityList\n// read from the keyring, or an error.\nfunc (key *MasterKey) getPubRing() (openpgp.EntityList, error) {\n\tpath := key.pubRing\n\tif path == \"\" {\n\t\tpath = filepath.Join(gnuPGHome(key.gnuPGHomeDir), defaultPubRing)\n\t}\n\treturn loadRing(path)\n}\n\n// getSecRing loads the sec keyring from the configured path, or falls back\n// to defaultSecRing relative to the GnuPG home. It returns an openpgp.EntityList\n// read from the keyring, or an error.\nfunc (key *MasterKey) getSecRing() (openpgp.EntityList, error) {","sourceCodeStart":491,"sourceCodeEnd":527,"githubUrl":"https://github.com/getsops/sops/blob/13442bb98183887d7a9ac09ec8ab0564673a59d8/pgp/keysource.go#L491-L527","documentation":"Error \"key with fingerprint '%s' is not available in keyring\" thrown in getsops/sops.","triggerScenarios":"Thrown at pgp/keysource.go:509 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"13442bb98183887d7a9ac09ec8ab0564673a59d8","analyzedAt":"2026-09-01T03:53:00.447Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-08T10:18:20.063Z"}