JustinGrote / SecretManagement.KeePass

MIT License
116 stars 22 forks source link

Get-Secret can't get a secret from a folder (subgroup). #56

Closed l2aggron closed 3 years ago

l2aggron commented 3 years ago

Hello! It looks like you've already worked on a related problem: https://github.com/JustinGrote/SecretManagement.KeePass/issues/10 I am trying to access a secret in a folder but without success, is it not implemented or am I doing something wrong? My setup: Win10x64, PS 5.1, database format is KBDX 4.0, created in KeePassXC-2.6.4-Win64. image

l2aggron commented 3 years ago

It looks like the problem in compatibility with the database format. I created a new DB using Register-KeepassSecretVault and I can properly access the secrets in the folders. I checked the database, it has the format 3.1. When I created the db using KeePassXC, selecting this format, and registered the vault with the ShowFullTitle and ShowRecycleBin parameters, I can see the secrets, but I can't see the folders and recycler in secret paths. Similar behavior when creating db in the latest version of KeePass (2.48.1).

P.S. I would be happy if you would add documentation on the compatibility of the module and database formats, or update the necessary components to work with the latest versions of database formats. P.P.S. Anyway, thank you for your work!

JustinGrote commented 3 years ago

@l2aggron thanks for investigating! I honestly have no idea what the format compatibilities are, I've only tested against the latest, I guess I should gate the version for now with a warning.