mirror of
https://github.com/getsops/sops.git
synced 2026-02-05 03:45:44 +01:00
Don't log failures to user as an error within pgp keysource
This commit is contained in:
@@ -379,7 +379,8 @@ func (key *MasterKey) Decrypt() ([]byte, error) {
|
||||
}
|
||||
errs = append(errs, fmt.Errorf("GnuPG binary error: %w", binaryErr))
|
||||
|
||||
log.WithError(errs).WithField("fingerprint", key.Fingerprint).Error("Decryption failed")
|
||||
// TODO: Should only display an error to the user if all keys have been attempted (when there are multiple keys in the pgp key group)
|
||||
log.WithError(errs).WithField("fingerprint", key.Fingerprint).Info("Decryption failed")
|
||||
return nil, fmt.Errorf("could not decrypt data key with PGP key: %w", errs)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user