PoC and testing Vault transit encryption mechanism
docker-compose up -d
cd provisioning
terraform init
terraform apply
curl -s -H "X-Vault-Request: true" -H "X-Vault-Token: $(vault print token)" http://localhost:8200/v1/transit/backup/my_key | jq -r .data.backup | base64 -d | jq .
curl -X PUT -H "X-Vault-Token: $(vault print token)" -H "X-Vault-Request: true" -d '{"backup":"eyJwb2xpY3kiOnsibmFtZSI6Im15X2tleSIsImtleXMiOnsiMSI6eyJrZXkiOiJOVkJXWjVDUzczeDFlM1QzZlZkcFVTdXBCakpYMDZyQzlWUWs1Z1dDVzhzPSIsImhtYWNfa2V5IjoiQVN5eUgvalpQOEptdlFndGhpRVFuQ3AxY0tNY1hEV3ZkU1p3RXZtQWhIRT0iLCJ0aW1lIjoiMjAyMC0xMC0xM1QxNzoxODoxNC4yMDI0MzY2WiIsImVjX3giOm51bGwsImVjX3kiOm51bGwsImVjX2QiOm51bGwsInJzYV9rZXkiOm51bGwsInB1YmxpY19rZXkiOiIiLCJjb252ZXJnZW50X3ZlcnNpb24iOjAsImNyZWF0aW9uX3RpbWUiOjE2MDI2MDk0OTR9fSwiZGVyaXZlZCI6ZmFsc2UsImtkZiI6MCwiY29udmVyZ2VudF9lbmNyeXB0aW9uIjpmYWxzZSwiZXhwb3J0YWJsZSI6dHJ1ZSwibWluX2RlY3J5cHRpb25fdmVyc2lvbiI6MSwibWluX2VuY3J5cHRpb25fdmVyc2lvbiI6MCwibGF0ZXN0X3ZlcnNpb24iOjEsImFyY2hpdmVfdmVyc2lvbiI6MSwiYXJjaGl2ZV9taW5fdmVyc2lvbiI6MCwibWluX2F2YWlsYWJsZV92ZXJzaW9uIjowLCJkZWxldGlvbl9hbGxvd2VkIjp0cnVlLCJjb252ZXJnZW50X3ZlcnNpb24iOjAsInR5cGUiOjAsImJhY2t1cF9pbmZvIjp7InRpbWUiOiIyMDIwLTEwLTEzVDE3OjMyOjAxLjUxMjUxMzRaIiwidmVyc2lvbiI6MX0sInJlc3RvcmVfaW5mbyI6bnVsbCwi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