HashiCorp Vault
Vault as a system: seal and unseal, Raft storage and HA, the secret engines and auth methods that matter on Kubernetes, policy design, leases, and what happens to your applications when Vault is unavailable.
Overview
Vault as a system you operate
Vault appears inside other secret-management topics as one option among several. This topic treats it as the system it is: on a platform team Vault is rarely a component you consume, it is a component you operate, and the interview questions are operational.
Start with the path a secret takes. A pod proves who it is with its ServiceAccount token. The kubernetes auth method checks that token with the cluster's TokenReview API and hands back a Vault token that carries policies. With that token the pod asks a secrets engine, which mints a credential on the spot. The credential comes with a lease and a TTL (time to live), and Vault revokes it when the lease ends. Underneath all of this sits the Vault core: sealed, encrypted storage replicated with Raft, and the audit devices. The figure shows these parts and how a pod reaches them.
Key concepts
- Seal and unseal
- Integrated Storage (Raft)
- KV v2 path split
- Dynamic secrets and leases
- Kubernetes auth method
- Policies
- Transit engine
- Audit devices
Interview questions
- Walk me through what happens from Vault process start to a pod reading a database credential.
- Compare KV v1 and KV v2, and explain the policy and migration consequences.
- Design the auth and policy model for a multi-team Kubernetes platform on Vault. How do you get tenant isolation?
- Compare the Vault Agent Injector, the Vault Secrets Operator, and External Secrets Operator. When do you pick each?
- Vault becomes unavailable. Walk me through the blast radius and how you design so it is survivable.
- Explain dynamic database credentials end to end, and compare them with static roles and with plain KV.
Sign up free to read the full topic
More DevOps topics
- GNU Make and gmake
- Go for Control-Plane Development
- Go Templating
- Golden Paths
- gRPC & Protocol Buffers
- Hardware-in-the-Loop CI
- Helm 4 Migration
- Helm vs Kustomize
- HelmRelease and helm-controller
- High Availability System Design
- How User Requests Travel in Kubernetes
- HTTP 4xx and 5xx in Kubernetes — Which Hop Sent It and How to Fix It
Start free on Cariara · Coding problems · System design studio