From b6140bcba065e3ab088822e770f986509cb2951e Mon Sep 17 00:00:00 2001 From: Willem <14mRh4X0r@gmail.com> Date: Wed, 8 Jan 2025 16:47:21 +0100 Subject: [PATCH] [BUGFIX] Check if any usable key matches on clone (#3027) This commit changes the check whether we have access to the cloned repository from checking whether *all* of our usable keys are included to whether *any* of our usable keys are included. Signed-off-by: Willem Mulder --- internal/action/clone.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/action/clone.go b/internal/action/clone.go index 3739f0436f..6be90157a5 100644 --- a/internal/action/clone.go +++ b/internal/action/clone.go @@ -204,7 +204,8 @@ func (s *Action) cloneCheckDecryptionKeys(ctx context.Context, mount string) err } idSet := set.New(ids...) - if idSet.IsSubset(recpSet) { + // Check whether any of our usable keys are in recpSet + if _, found := recpSet.Choose(idSet.Contains); found { out.Noticef(ctx, "Found valid decryption keys. You can now decrypt your passwords.") return nil