Skip to content
This repository was archived by the owner on Jun 22, 2026. It is now read-only.
This repository was archived by the owner on Jun 22, 2026. It is now read-only.

Set/Add/New secret should be separate cmdlets #218

Open

Description

@dbramblett

Summary of the new feature / enhancement

The use of 'Set' instead of 'New' for the verb to create a secret doesn't seem intuitive to me, at least in the context of the descriptions provided by Get-Verb.

'New' creates a resource,
'Add' Adds a resource to a container or attaches an item to another item.
'Set' replaces data or creates a resource.

It seems to me that 'Set-Secret' here is combining all three verbs under the aegis of one verb.

If it were me, I'd look for the following.
'New-Secret' to create the secret,
'Add-Secret' to add it to the store.
'Set-Secret' to alter an existing secret.

These would make more sense to me than having a single cmdlet to do all three. 'Add-Secret' also auto-implies a 'Remove-Secret' and vice versa.

Proposed technical implementation details (optional)

No response

Activity

  1. OtterKring commented on Apr 15, 2024

    @OtterKring

    I would like to add to this asking for Set-Secret to NOT remove the metadata of an existing secret. It should really only set a new secret value.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions