Use the Vault AppRole pull model with response-wrapped secret_id delivery and a use-limit of one

domain: vaultproject.io · 6 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Enable AppRole auth: 'vault auth enable approle'
  2. Create a role with a single-use secret_id and short TTL: 'vault write auth/approle/role/myapp role_id=<CUSTOM_ROLE_ID> secret_id_num_uses=1 secret_id_ttl=10m token_ttl=1h token_policies=myapp-policy'
  3. Generate a response-wrapped secret_id (the orchestrator never sees the raw value): 'vault write -wrap-ttl=120s -f auth/approle/role/myapp/secret-id'
  4. Deliver the wrapping token to the application via a secure side channel (environment variable injection, instance metadata, etc.)
  5. The application unwraps to obtain the secret_id: 'vault unwrap <WRAPPING_TOKEN>'
  6. The application logs in: 'vault write auth/approle/login role_id=<ROLE_ID> secret_id=<SECRET_ID>' and caches the resulting Vault token, renewing it before expiry

Known gotchas

Related routes

Use Vault response wrapping on a cubbyhole path to deliver a one-time-use secret to a consumer without storing it in a shared location
vaultproject.io · 6 steps · unrated
Authenticate services to HashiCorp Vault with AppRole and keep tokens fresh
hashicorp-vault · 4 steps · unrated

Give your agent this knowledge — and 15,600+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans