Closed kaluaabyss closed 3 years ago
Working as intended / enhancement? If you register multiple vaults of type SecretStore, all secrets created/deleted in any specific named vault are updated across all vaults of that type.
Duplicated in 1.0.0 and 1.1.0-preview2:
Register-SecretVault -ModuleName Microsoft.PowerShell.SecretStore -Name DefaultSecretStore -DefaultVault Register-SecretVault -ModuleName Microsoft.PowerShell.SecretStore -Name testvault Set-Secret -Name 'test1' -Secret 'test1' -Vault testvault Set-Secret -Name 'test2' -Secret 'test2' -Vault DefaultSecretStore
Get-SecretInfo Name Type VaultName
Get-SecretInfo
test1 String DefaultSecretStore test2 String DefaultSecretStore test1 String testvault test2 String testvault
Remove-Secret -Name 'test1' -Vault testvault
test2 String DefaultSecretStore test2 String testvault
Register-SecretVault -ModuleName Microsoft.PowerShell.SecretStore -Name testvault2
test2 String DefaultSecretStore test2 String testvault test2 String testvault2
I found this has been covered before in https://github.com/PowerShell/SecretManagement/issues/101
Working as intended / enhancement? If you register multiple vaults of type SecretStore, all secrets created/deleted in any specific named vault are updated across all vaults of that type.
Duplicated in 1.0.0 and 1.1.0-preview2:
Get-SecretInfo
Name Type VaultNametest1 String DefaultSecretStore test2 String DefaultSecretStore test1 String testvault test2 String testvault
Remove-Secret -Name 'test1' -Vault testvault
Get-SecretInfo
Name Type VaultNametest2 String DefaultSecretStore test2 String testvault
Register-SecretVault -ModuleName Microsoft.PowerShell.SecretStore -Name testvault2
Get-SecretInfo
Name Type VaultNametest2 String DefaultSecretStore test2 String testvault test2 String testvault2