Vault as the Connect CA
Hand Consul's two hardest-to-manage secrets to Vault on a single VM: swap the service-mesh Connect CA from Consul's built-in provider to Vault's PKI engine, then enable Vault's Consul secrets engine to issue short-lived, lease-bound Consul ACL tokens on demand and revoke them the instant they leak.
Lab Overview
This is the hands-on lab for Section 11 (HashiCorp Vault Integration) of the Consul 101 course. A single Ubuntu VM runs a Vault dev server and a single-server Consul datacenter with ACLs already bootstrapped and the service mesh (Connect) enabled. You put Vault in charge of the two most sensitive pieces of Consul security: the certificate authority behind the mesh, and the ACL tokens that gate every request.
You will:
- Enable two Vault PKI secrets engines (a root and an intermediate), write the
Consul access policy, and point Consul's Connect CA at Vault with `consul connect ca set-config`, then prove the provider flipped from `consul` to `vault` while the mesh keeps working
- Enable Vault's Consul secrets engine and give it a scoped Consul token
(`acl = "write"`) so Vault can mint and revoke ACL tokens
- Map a Vault role to an existing Consul ACL policy so every token issued from
the role is born with exactly that policy attached
- Read a dynamic Consul ACL token out of Vault with `vault read consul/creds/<role>`,
confirm it is a real, scoped Consul token, and renew its lease
- Revoke the lease and watch Consul reject the token immediately, the property
that makes dynamic credentials so much safer than static ones
By the end you will have moved both the Connect CA key and Consul's ACL tokens into Vault, the exact integration pattern that underpins production Consul plus Vault deployments.
What You'll Learn
Configure Vault's PKI secrets engine as Consul's Connect CA with consul connect ca set-config
Verify the CA provider swap from built-in to Vault while the mesh stays connected
Enable and configure Vault's Consul secrets engine against an ACL-enabled datacenter
Map a Vault role to a Consul ACL policy and issue a dynamic, lease-bound Consul token
Renew and revoke a Vault lease and observe the Consul token being created and destroyed on demand
Prerequisites
Completion of the Consul 101 Section 11 lessons (Vault integration)
Familiarity with Consul ACLs (Section 06) and the service mesh (Section 07)
Basic Vault CLI comfort (vault secrets enable, policies, leases)
Technologies Covered
Choose your plan
Simple, Transparent Pricing
Unlock full access to TeKanAid courses, labs, and bootcamps
Just exploring? Start free below. Want the full experience? Try Premium free for 7 days (card required, $0 today).
Pro
All courses, with lab scripts to run on your own machine
Renews automatically. Cancel anytime.
Final price verified at checkout.
- Full access to all courses
- Lab scripts to download and run on your own machine (hosted labs not included)
- Progress tracking
- Certificate of completion
- Community access
- Self-paced bootcamps
- Premium puzzle library not included (5 free puzzles available)
- New content access
Premium
Full access, including unlimited hosted labs
Renews automatically. Cancel anytime.
Final price verified at checkout.
- Everything in Pro
- Unlimited hands-on labs, fully hosted on TeKanAid Academy (nothing to set up)
- Full access to the puzzle library
- Lab AI Assistant
- Priority support
Prefer a single course?
Purchase individual courses for a one-time fee of $79. Full access to course content, quizzes, certificates, and community features, lab access is not included.
Browse CoursesJust exploring? Start free, no account needed
Three free ways to start. All bridge into the paid Premium catalog when you're ready.
Not ready to commit? The crash course is email-only. No academy account required.
Ready to Get Started?
Start this hands-on lab and build real-world Platform Engineering skills
Get Access Now