PowerShell / Modules

MIT License
111 stars 25 forks source link

[SecretManagement] Get-secretvault -ListAvailable #91

Open itfranck opened 4 years ago

itfranck commented 4 years ago

Get-secretvault -ListAvailable - List all secret providers available on the system

It could be nice to get a list of the secret providers available for registration on your system. I suggest adding a -ListAvailable parameter to the existing Get-SecretVault

Maybe this would tie in well together with

https://github.com/PowerShell/Modules/issues/89 https://github.com/PowerShell/Modules/issues/90

Get-SecretVault could return vault parameters used and / or a list of the available settings (hashtable of settings with empty values) when used in with -ListAvailable

That way, having a Get-SecretVaultRegistrationSettings cmdlet would be rendered redundant.

(Providers, such as Az.keyvault would have to pass their settings list so it can be retrieved when calling the cmdlet with the -ListAvailable switch.