SecretManagement

noun

say it: “SEE-krit MAN-ij-ment” /ˈsikrɪt ˈmænɪdʒmənt/

Microsoft's PowerShell module for storing secrets in a locked vault on your computer and reading them back by name.

What is SecretManagement?

SecretManagement (Microsoft.PowerShell.SecretManagement) gives every vault the same few commands. A vault such as SecretStore keeps the secrets locked with a password of your own. Set-Secret puts a secret in by name, Get-Secret takes it out, and Get-SecretInfo lists the names only, so a token you use every day stays out of your scripts and out of your history.

Set-Secret -Name BikeShopDeployToken   # asks for the value and hides it
$env:BIKESHOP_DEPLOY_TOKEN = Get-Secret -Name BikeShopDeployToken -AsPlainText

In a sentence

  • “SecretManagement works with vaults such as SecretStore and Windows' Credential Manager.”
  • “With SecretManagement, Sam stored the deploy token once as BikeShopDeployToken.”

Level: Freelancer · More PowerShell terms at this level

Updated