Skip to content

Commit

Permalink
[BUGFIX] Check if any usable key matches on clone
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
14mRh4X0r committed Jan 3, 2025
1 parent ffe0234 commit 13439b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/action/clone.go
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ func (s *Action) cloneCheckDecryptionKeys(ctx context.Context, mount string) err
}

idSet := set.New(ids...)
if idSet.IsSubset(recpSet) {
if _, found := recpSet.Choose(idSet.Contains); found {
out.Noticef(ctx, "Found valid decryption keys. You can now decrypt your passwords.")

return nil
Expand Down

0 comments on commit 13439b2

Please sign in to comment.