SecretStore icon indicating copy to clipboard operation
SecretStore copied to clipboard

need documentation on backup/restore operation of the vaults

Open emrgcl opened this issue 3 years ago • 3 comments

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

emrgcl avatar May 06 '21 12:05 emrgcl

Thanks @emrgcl there is some information on the file path here: https://github.com/PowerShell/SecretStore/blob/master/Docs/ARCHITECTURE.md#files

SydneyhSmith avatar May 10 '21 15:05 SydneyhSmith

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.

PaulHigin avatar May 13 '21 17:05 PaulHigin

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

belibug avatar Jun 21 '24 04:06 belibug