PowerShell / SecretStore

MIT License
158 stars 24 forks source link

need documentation on backup/restore operation of the vaults #65

Open emrgcl opened 3 years ago

emrgcl commented 3 years ago

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

SydneyhSmith commented 3 years ago

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

PaulHigin commented 3 years ago

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.

belibug commented 4 months ago

This is crucial requirement for multiple use cases

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