You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 8, 2021. It is now read-only.
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'}