From f53a9a13ac4b5c8035645de0a219c651a9dce621 Mon Sep 17 00:00:00 2001 From: Bernd Schoolmann Date: Fri, 5 Apr 2024 08:06:17 +0200 Subject: [PATCH] Add debug logging to keyhierarchy --- agent/bitwarden/crypto/keyhierarchy.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/agent/bitwarden/crypto/keyhierarchy.go b/agent/bitwarden/crypto/keyhierarchy.go index e850cc4..5a5cf9c 100644 --- a/agent/bitwarden/crypto/keyhierarchy.go +++ b/agent/bitwarden/crypto/keyhierarchy.go @@ -49,6 +49,7 @@ func InitKeyringFromMasterKey(keyring *Keyring, accountKey EncString, accountPri keyring.UnlockWithAccountKey(accountSymmetricKey) + keyringLog.Info("Decrypting account private key") pkcs8PrivateKey, err := DecryptWith(accountPrivateKey, accountSymmetricKey) if err != nil { return err @@ -65,6 +66,7 @@ func InitKeyringFromMasterKey(keyring *Keyring, accountKey EncString, accountPri func InitKeyringFromUserSymmetricKey(keyring *Keyring, accountSymmetricKey SymmetricEncryptionKey, accountPrivateKey EncString, orgKeys map[string]string) error { keyring.UnlockWithAccountKey(accountSymmetricKey) + keyringLog.Info("Decrypting account private key") pkcs8PrivateKey, err := DecryptWith(accountPrivateKey, accountSymmetricKey) if err != nil { return err