gopasspw / gopass-jsonapi

Gopass Browser Bindings
MIT License
48 stars 17 forks source link

respect .gpg-id in subfolders #103

Open gotjoshua opened 1 year ago

gotjoshua commented 1 year ago

Summary

i have an empty .gpg-id at the root of my repo and subfolders for shared and private shared has a .gpg-id with three keys all subfolders of pri have .gpg-id with a single key

creating a pw via gopass bridge (which calls gopass-jsonapi) fails failed to store secret: failed to encrypt

creating via gopass commandline is functional:
finds and respects the first .gpg-id file and only encrypts for that key

Steps To Reproduce

set up a repo as described above add a key via chrome gopassbridge

Expected behavior

success to create an encrypted new key

Environment

gotjoshua commented 1 year ago

investigation the error comes from here

which comes from here

which leads me to belive that something is going on over here

which means this is may be a problem in gopass itself, but then its hard to explain why adding a key from the command line works fine.

crawling to [find the id file should work] (https://github.com/gopasspw/gopass/blob/2409939549eeeaef31353fd73394a80b8237aaba/internal/store/leaf/store.go#L77) and seems to on the cli