PowerShell / SecretManagement

PowerShell module to consistent usage of secrets through different extension vaults
MIT License
317 stars 46 forks source link

SecretManagement should only allow extension vaults that support multi-registration to multi register #167

Open PaulHigin opened 2 years ago

PaulHigin commented 2 years ago

This is related to SecretStore issue (https://github.com/PowerShell/SecretStore/issues/76#issuecomment-878563772). If an extension vault does not support multiple registrations but is registered twice in SecretManagement, the vault will be registered twice with different names. This can be confusing to the user and lead to data loss.

Proposed fix is to allow an extension vault to indicate if it can be registered multiple times, and if not then disallow a second registration.

Viajaz commented 1 year ago

Is this on any roadmaps? Quirks like this make this module less palatable in production.