SynfraCore
Synfracore
Start Learning
Navigation

Academies

Platform

RoadmapsLabsCertificationsInterviewPYQsAI AssistantCareer
Start Learning Free Learning Roadmaps

HashiCorp VaultNotes

Key takeaways, tips, and important points to remember

📄
Last updated Aug 2026
Expert Content

Vault Key Notes

Core Concepts Quick Reference

ConceptWhat It Is

|---|---|

Seal / UnsealVault starts encrypted-at-rest and inert; must be unsealed (Shamir threshold or auto-unseal via KMS) before serving requests
Secrets EngineA plugin mounted at a path implementing a specific secret type (KV, database, PKI, Transit, AWS, etc.)
Auth MethodHow a client proves identity (token, AppRole, Kubernetes, OIDC, etc.) — results in a Vault token
PolicyPath-based capability grants (read/write/delete/list/sudo) attached to an authenticated identity; deny-by-default
LeaseThe record of a granted dynamic secret's TTL and revocation info

Command Reference

vault server -dev                          # dev-mode server (never production)
vault status                                # sealed/unsealed status
vault operator init                         # one-time: generates unseal keys + root token
vault operator unseal <key>                 # submit one unseal key share

vault secrets enable -path=<p> <engine>     # mount a secrets engine
vault secrets list                          # list mounted engines

vault kv put secret/<path> key=value        # write a KV secret (v2)
vault kv get secret/<path>                  # read latest version
vault kv get -version=N secret/<path>       # read a specific version

vault policy write <name> <file.hcl>        # create/update a policy
vault token create -policy="<name>"         # issue a scoped token

vault read database/creds/<role>            # generate dynamic DB credential
vault lease renew <lease-id>                # renew before expiry
vault lease revoke <lease-id>                # revoke immediately

vault write transit/encrypt/<key> plaintext=<b64>   # Transit encrypt
vault write transit/decrypt/<key> ciphertext=<ct>   # Transit decrypt

Secrets Engines Quick Match

EnginePurpose

|---|---|

KV (v1/v2)Static secret storage; v2 adds versioning
DatabaseDynamic, short-lived database credentials
PKIDynamic, short-lived TLS certificates (Vault as a CA)
TransitEncryption as a service — Vault never stores your data
AWS / Azure / GCPDynamic cloud provider credentials
SSHOne-time passwords or signed SSH certificates

Auth Methods Quick Match

MethodBest Fit

|---|---|

TokenThe base mechanism everything resolves to
AppRoleMachine-to-machine (CI/CD pipelines, services)
KubernetesIn-cluster Pods, using their own ServiceAccount token
OIDC / LDAPHuman users, tied to existing identity providers

Token Types

Root token      — unlimited access, revoke/lock away after setup
Service token   — normal, policy-scoped, the default for apps/users
Batch token     — lightweight, non-renewable, no child tokens
Periodic token  — renewable indefinitely if renewed within each period

HA / Storage Quick Facts

Raft integrated storage — Vault's own consensus-based storage,
  no separate Consul cluster required, tolerates node failures
  per majority-quorum math (same idea as odd-numbered Swarm/etcd)

Auto-unseal    — cloud KMS decrypts Vault's master key on restart,
                 no human intervention needed
Manual Shamir  — threshold of separately-held key shares required,
                 stronger "no single point of trust" property,
                 operationally heavier

Enterprise-Only Features

Namespaces                    — multi-tenancy within one cluster
Performance Replication       — active-read secondary clusters
Disaster Recovery Replication — standby-only, promotable on primary loss
Sentinel                      — policy-as-code, richer than plain ACLs
Share:
Join our Community
Daily tips, job alerts, interview help — join engineers learning together
Up Next
📝
HashiCorp VaultPYQ
Previous Year Questions with detailed solutions
Also Worth Exploring
← Back to all HashiCorp Vault modules
CheatsheetsPYQ