SecretStore
SecretStore copied to clipboard
need documentation on backup/restore operation of the vaults
Hi,
Awesome module! IT would be great to add the location of the vault file and how to backup and restore the vault.
Kind Regards, Emre
Thanks @emrgcl there is some information on the file path here: https://github.com/PowerShell/SecretStore/blob/master/Docs/ARCHITECTURE.md#files
There is currently no way to securely and automatically backup and restore the store content, but it is something we can look at as a future enhancement.
For now you would have to write our own backup/restore using the SecretManagement 'Get-SecretInfo','Get-Secret' cmdlets, to loop through and obtain the secrets and then store in a secure location such as Azure KeyVault.
This is crucial requirement for multiple use cases
- Backup secrets (so its not lost when system is rebuilt)
- Move or clone secrets from one machine to another
- Migrate from SecretStore to AzureVault (or any other extension)
I have written a simple module to address these use cases. But would prefer if it gets implemented with official module. Also, I believe this should be SecretManagement module feature rather than SecretStore Extension.
Module Link : PSGallery - SecretBackup Source code for module here - Github - SecretBackup