obsidian-gpgCrypt icon indicating copy to clipboard operation
obsidian-gpgCrypt copied to clipboard

Keys path can't starts with dot (e.g. '.keys/')

Open cooparo opened this issue 2 years ago • 5 comments

I wanna put my key in a .keys folder (so I don't see them in the Obsidian explorer), but when I do that and change the path in the settings, it's not able to find them. It's says "Failed to load "file.md". No private key for decryption configured". I don't know if it supposed to works like that or it's a bug. I'm on Ubuntu 22.04.3 LTS, Obsidian it's v1.5.3.

cooparo avatar Jan 26 '24 08:01 cooparo

I tried a bunch of path formats to no avail. It's absolutely retarded to store the private key in the vault.

attilaszkrs avatar Feb 27 '24 03:02 attilaszkrs

I tried a bunch of path formats to no avail. It's absolutely retarded to store the private key in the vault.

Feel free to fill in a Pull Request with the absolutely best way to solve this! lol Otherwise you can also use gpg wrapper mode, so it is completly sepearated from the Vault.

I had already a look into this. It seems Obsidian APIs doesn't like the dot-prefixed folder. So I will check if there is a workaround for this.

tejado avatar Feb 27 '24 07:02 tejado

I tried a bunch of path formats to no avail. It's absolutely retarded to store the private key in the vault.

It's not retarded, until you not expose your private key.

I had already a look into this. It seems Obsidian APIs doesn't like the dot-prefixed folder. So I will check if there is a workaround for this.

No big deal, just good to know, tnx

cooparo avatar Feb 28 '24 17:02 cooparo

Same here. I can't use the plugin because it doesnt make sense to leave the private key in the vault folder.

ahfauth avatar May 17 '24 18:05 ahfauth

Same here. I can't use the plugin because it doesnt make sense to leave the private key in the vault folder.

Why doesnt it make sense? If this is a concern, you can still use an encrypted private key or gpg mode.

tejado avatar May 18 '24 07:05 tejado