12 lines
546 B
PowerShell
Executable File
12 lines
546 B
PowerShell
Executable File
if ($null -eq $env:TEST_VAULT_KEY) { $env:TEST_VAULT_KEY = 'secret/test' }
|
|
if ($null -eq $env:TEST_VAULT_VALUE) { $env:TEST_VAULT_VALUE = 'It works!' }
|
|
if ($null -eq $env:VAULT_TOKEN) { $env:VAULT_TOKEN = 'root' }
|
|
|
|
# Populate our test secrets
|
|
Write-Output "🔐 Populating test secrets:"
|
|
& ".\vault.exe" kv put "${env:TEST_VAULT_KEY}" data="${env:TEST_VAULT_VALUE}"
|
|
|
|
# Populate our test transit backend with key
|
|
Write-Output "🔐 Populating test transit backend:"
|
|
& ".\vault.exe" secrets enable transit
|
|
& ".\vault.exe" write -f transit/keys/test |