1
0
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:
AJ Bahnken
2022-07-13 10:53:35 -07:00
parent fdfc61256a
commit adee2449f3

View File

@@ -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)
}