Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cdhunt/powervault
PowerShell Client for HashiCorp Vault
https://github.com/cdhunt/powervault
hashicorp-vault powershell-client
Last synced: 8 days ago
JSON representation
PowerShell Client for HashiCorp Vault
- Host: GitHub
- URL: https://github.com/cdhunt/powervault
- Owner: cdhunt
- License: mit
- Created: 2015-05-13T19:33:53.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2020-12-02T15:01:31.000Z (almost 4 years ago)
- Last Synced: 2023-03-23T02:56:26.446Z (over 1 year ago)
- Topics: hashicorp-vault, powershell-client
- Language: PowerShell
- Size: 20.5 KB
- Stars: 42
- Watchers: 8
- Forks: 16
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PowerVault
PowerShell Client for HashiCorp VaultThis is a PowerShell client for [HashiCorp Vault](https://www.vaultproject.io/). It interfaces with the HTTP API and does not require vault.exe.
The HTTP API is not stable, so this module is not stable.
The module only contains basic CRUD functionality.
## Examples
```powershell
# Create and Read
PS C:\> $vault = Get-Vault -Address 127.0.0.1 -Token 46e231ee-49bb-189d-c58d-f276743ececaPS C:\> Set-Secret -VaultObject $vault -Path secret/new -Secret @{value="secret"}
PS C:\> Get-Secret $vault secret/new
value
-----
secret
``````powershell
# Retun the Secret as a [PSCredential]
PS C:\> Set-Secret -VaultObject $vault -Path secret/username -Secret @{password="P@55w0rd"}PS C:\> Get-Secret -VaultObject $vault -Path secret/username -AsCredential
UserName Password
-------- --------
username System.Security.SecureString
```## Testing
The tests depend on Vault.exe to launch a local Dev server. The script will pull down the binaries from HashiCorp to TestDrive:\ and start up a Vault.exe process. All of the files should be cleaned up when the tests complete.