Skip to content

Instantly share code, notes, and snippets.

cat provider.tf
terraform {
required_providers {
vault = {
source = "hashicorp/vault"
version = "5.0.0"
}
}
}
# CLI output showing how Vault limits the size of the kv store
➜ ~ echo '{"data":"'$(head -c 818570 < /dev/urandom | base64 | tr -d '\n')'"}' > big.json 08:38:14 [35/1877]
➜ ~ vault kv put -mount=secret bigblob data=@big.json
Error writing data to secret/data/bigblob: Error making API request.
URL: PUT https://127.0.0.1:8200/v1/secret/data/bigblob
Code: 500. Errors:
* 1 error occurred:
@dgreeninger
dgreeninger / gist:fa112ac6ade203b27d6ce3699600b0b9
Created July 15, 2025 16:02
vault-benchmark transform examples
## Benchmark files to run alongside the Vault transform tutorial: https://developer.hashicorp.com/vault/tutorials/encryption-as-a-service/tokenization?productSlug=vault&tutorialSlug=adp&tutorialSlug=tokenization&variants=vault-deploy%3Aenterprise#setup-external-token-storage
## Example runs:
## vault-benchmark run -config=internal-tokenization.hcl
## 2025-07-15T08:58:32.094-0700 [INFO] vault-benchmark: setting up targets
## 2025-07-15T08:58:32.317-0700 [INFO] vault-benchmark: starting benchmarks: duration=1m0s
##
## 2025-07-15T08:59:32.920-0700 [INFO] vault-benchmark: benchmark complete
## Target: https://127.0.0.1:8200
## op count rate throughput mean 95th% 99th% successRatio