This repository was archived by the owner on Dec 8, 2021. It is now read-only.
This repository was archived by the owner on Dec 8, 2021. It is now read-only.
[SecretManagement] Support for persistence levels #95
Open
Description
Summary of the new feature/enhancement
As a PowerShell developer I want to set the persistence on secrets so I can align with the security requirements of my application.
Proposed technical implementation details
In Windows Credentials Manager, secrets can be stored with three levels of persistence: Local Computer, Session and Enterprise.
In the Preview 2 of Microsoft.PowerShell.SecretManagement, credentials are created with Local Computer persistence level, and this is not configurable as per this line:
If this feature makes only sense for the Windows implementation, then maybe this could be implemented as a free text parameter? I don't believe there are parameters to secrets yet but one could for instance have it as a vault parameter? i.e. Register-SecretVault [...] -VaultParameters @{Persistence='Session'}