From 21a549528c2659758cf15ff3fbd82a8035c23394 Mon Sep 17 00:00:00 2001 From: Willem Mulder Date: Fri, 3 Jan 2025 12:40:01 +0100 Subject: [PATCH] [BUGFIX] Check if any usable key matches on clone 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