From d761f088ab7077c285fc198ad61e72b77e5aea0f 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 --- 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 9734af37b1..0634871a55 100644 --- a/crypto/keyring/keyring.go +++ b/crypto/keyring/keyring.go @@ -607,9 +607,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), } }