Skip to content

Secrets

Nate Ferrell edited this page Aug 22, 2019 · 4 revisions

Synopsis

An overview of the Secrets concept in PSProfile.

Description

Secrets are stored in $PSProfile.Vault and can either be PSCredential objects or SecureStrings. PSCredential Secrets are stored and recalled via the UserName, while SecureStrings are stored and recalled using a provided friendly name, e.g. MyAPIKey.

Secrets are stored using the Data Protection API, so users on non-Windows platforms should be aware that the secrets stored are not encrypted as they are on Windows due to lack of of the underlying Data Protection API.

Commands

Adds a new Secret to your PSProfile.

Equivalent to running Get-PSProfileSecret $env:UserName. Allows easily pulling your current user's credentials for use with other commands, e.g. Invoke-Command -Credential (Get-MyCreds).

Gets a Secret from your PSProfile configuration.

Removes a Secret from your PSProfile.

PSProfile

Concepts

Function Help

Command Aliases

Configuration

Helpers

Init Scripts

Meta

Modules to Import

Modules to Install

Path Aliases

Plugin Paths

Plugins

Power Tools

Project Paths

Prompts

Script Paths

Secrets

Symbolic Links

Variables

Badges

Azure Pipelines      Discord - Chat      Slack - Chat      Codacy PowerShell Gallery      GitHub Releases      GitHub Releases

Clone this wiki locally