Skip to content
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
@EvrenJG

Description

@EvrenJG

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:

credential.Persist = (uint) NativeUtils.CRED_PERSIST.LOCAL_MACHINE;

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'}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions