#!/usr/bin/env bash # Usage: ./unwrap.sh # This script unwraps a wrapped secret in HashiCorp Vault using the provided token. curl -s -X PUT \ -H "X-Vault-Token: $1" \ -H "X-Vault-Request: true" \ -d 'null' \ https://vault.koszewscy.waw.pl/v1/sys/wrapping/unwrap | jq '.data'