JustinGrote / SecretManagement.KeePass

MIT License
116 stars 22 forks source link

Get-Secret Does Not Pull Updated Password from KeePass DB #28

Closed magyarka closed 3 years ago

magyarka commented 3 years ago

NOTE: Not sure if this is an issue with the SecretManagement.KeePass module or the larger Microsoft.PowerShell.SecretManagement module.

Situation:

JustinGrote commented 3 years ago

Due to the nature of how keepass works, once you unlock a vault, that vault is persisted in memory for performance, otherwise you have to close and open the vault every single action. I will add a command Refresh-KeepassSecretVault that will remove the connection and allow you to get refreshed info.

JustinGrote commented 3 years ago

I figured out a way to have the refresh work automatically, since keepass persists the database hash of the last on-disk DB it saved.