From 59243508e61a42b367709cd3ed046554dd0ce738 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gianguido=20Sor=C3=A0?= Date: Tue, 9 Mar 2021 19:40:08 +0100 Subject: [PATCH] add trust to macOS Keychain for calling apps by default This commit automatically trusts the calling application with its data, avoiding all the annoying keychain popups that appears when dealing with keys (list, add...). --- 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 9734af37b1a..0634871a551 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), } }