Closed magyarka closed 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.
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.
NOTE: Not sure if this is an issue with the SecretManagement.KeePass module or the larger Microsoft.PowerShell.SecretManagement module.
Situation:
$testCreds = Get-Secret -Vault testVault -Name 'test-creds'
$testCreds = Get-Secret -Vault testVault -Name 'test-creds'
$testCreds = Get-Secret -Vault testVault -Name 'test-creds'