From 91fea8d19071d6d97ebe2d04fb0a38a32addccdd Mon Sep 17 00:00:00 2001 From: Gianguido Sora Date: Wed, 10 Mar 2021 09:56:12 +0100 Subject: [PATCH] add trust to macOS Keychain for calling apps by default (#8826) This commit automatically trusts the calling application with its data, avoiding all the annoying keychain popups that appears when dealing with keys (list, add...). Co-authored-by: Alessio Treglia (cherry picked from commit d761f088ab7077c285fc198ad61e72b77e5aea0f) --- crypto/keyring/keyring.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/crypto/keyring/keyring.go b/crypto/keyring/keyring.go index f4a98e32554e..febad555df9c 100644 --- a/crypto/keyring/keyring.go +++ b/crypto/keyring/keyring.go @@ -593,9 +593,10 @@ func SignWithLedger(info Info, msg []byte) (sig []byte, pub types.PubKey, err er func newOSBackendKeyringConfig(appName, dir string, buf io.Reader) keyring.Config { return keyring.Config{ - ServiceName: appName, - FileDir: dir, - FilePasswordFunc: newRealPrompt(dir, buf), + ServiceName: appName, + FileDir: dir, + KeychainTrustApplication: true, + FilePasswordFunc: newRealPrompt(dir, buf), } }