getsops/sops · error
key with fingerprint '%s' is not available in keyring
Error message
key with fingerprint '%s' is not available in keyring
What it means
Error "key with fingerprint '%s' is not available in keyring" thrown in getsops/sops.
Source
Thrown at pgp/keysource.go:509
// TypeToIdentifier returns the string identifier for the MasterKey type.
func (key *MasterKey) TypeToIdentifier() string {
return KeyTypeIdentifier
}
// retrievePubKey attempts to retrieve the public key from the public keyring
// by Fingerprint.
func (key *MasterKey) retrievePubKey() (openpgp.Entity, error) {
ring, err := key.getPubRing()
if err == nil {
fingerprints := fingerprintIndex(ring)
entity, ok := fingerprints[key.Fingerprint]
if ok {
return entity, nil
}
}
return openpgp.Entity{},
fmt.Errorf("key with fingerprint '%s' is not available "+
"in keyring", key.Fingerprint)
}
// getPubRing loads the public keyring from the configured path, or falls back
// to defaultPubRing relative to the GnuPG home. It returns an openpgp.EntityList
// read from the keyring, or an error.
func (key *MasterKey) getPubRing() (openpgp.EntityList, error) {
path := key.pubRing
if path == "" {
path = filepath.Join(gnuPGHome(key.gnuPGHomeDir), defaultPubRing)
}
return loadRing(path)
}
// getSecRing loads the sec keyring from the configured path, or falls back
// to defaultSecRing relative to the GnuPG home. It returns an openpgp.EntityList
// read from the keyring, or an error.
func (key *MasterKey) getSecRing() (openpgp.EntityList, error) {View on GitHub (pinned to 13442bb981)
When it happens
Trigger: Thrown at pgp/keysource.go:509 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of getsops/sops@13442bb981 (2026-09-01).
Data as JSON: /api/errors/dace743296a78d96.
Report an issue: GitHub.