Skip to content

Vault

HashiCorp Vault stores, encrypts and audits access to secrets via a policy-driven API, replacing plaintext credentials in code, CI and config files.

Definition

What it is

Vault is not "an encrypted key-value store". It is a policy-enforcing gatekeeper for secrets. Every read is authenticated, authorized by policy, audited. Every secret can be rotated, versioned and leased. Backends (KV, PKI, AWS, databases, transit, SSH) provide different shapes of secret — static, dynamic, cryptography-as-a-service — all behind the same API.

Why it matters

A leaked AWS key is a $100K bill. A leaked database password is a breach. A leaked JWT signing key is account takeover. Vault makes leaking harder: secrets are never in code, access is audited, rotation is scheduled, and dynamic secrets expire in hours, not years.

Vault vs sealed-secrets vs AWS Secrets Manager

Aspect

Vault

Sealed-secrets

AWS Secrets Manager

Deployment

Self-hosted or HCP

In-cluster controller

Managed

Dynamic secrets

Yes (DB, AWS, PKI)

No

Limited

Rotation

Built-in

Manual

Built-in

Cloud lock-in

None

Kubernetes-only

AWS-only

Seal / unseal flow

graph LR
  S[Vault sealed] --> U[Submit unseal keys]
  U --> M[Master key in memory]
  M --> R[Read secrets allowed]
  M --> S2[Re-seal on shutdown]
  style R fill:#E8F5E9

How to use it well

Vault that ages well

  1. Auto-unseal via cloud KMS

    Manual unseal requires 3 of 5 key holders. KMS auto-unseal removes the bottleneck.

  2. Dynamic secrets over static

    Prefer database / AWS dynamic secrets that expire in hours over KV static secrets.

  3. Least privilege policies

    One policy per service account, not one policy for everything.

  4. Audit device always on

    File or syslog device; every access is logged. Without it, compliance is impossible.

  5. Versioned KV

    Enable KV v2 for secret versioning and rollback.

Common failures

Origin

Vault secures, stores, and tightly controls access to tokens, passwords, certificates, and encryption keys for protecting secrets and other sensitive data.

— HashiCorp, *Vault Documentation*, 2024
2015 · Vault 0.1 lanzado por HashiCorp
2018 · Vault 1.0 + auto-unseal
2023 · Cambio de licencia a BSL
2023 · OpenBao nace (Linux Foundation)
2024 · Vault 1.17

Evidence

FAQ

What is sealing?

Vault starts sealed. It cannot read its own storage until unsealed by M of N key holders (Shamir) or by an auto-unseal mechanism (KMS).

Vault vs OpenBao?

OpenBao is a fork of Vault created after HashiCorp moved Vault to BSL in August 2023. It is governed by the Linux Foundation and remains under MPL 2.0.

What are dynamic secrets?

Credentials generated on demand: DB users, AWS keys, PKI certificates. They expire automatically.

Which backends matter most?

KV v2 (static secrets), PKI (internal CA), database (dynamic DB creds), AWS (dynamic IAM), transit (encryption-as-a-service).

Connections

  • secrets-management
  • openbao
  • keycloak
  • iam
  • oauth2
Vaultsecrets-masecuritysecrets-maopenbaokeycloakiamoauth2

● broader ● narrower ● related

Broader

  • secrets-management
  • security

Related

  • secrets-management
  • openbao
  • keycloak
  • iam
  • oauth2

Used in the garden

Sources

Etymology

Origin: borrowed

  • vault (noun): from Old French voute, "arched roof"; a secure chamber

Semantic network

Vaultsecrets-masecuritysecrets-maopenbaokeycloakiamoauth2

● broader ● narrower ● related

Broader

  • secrets-management
  • security

Related

  • secrets-management
  • openbao
  • keycloak
  • iam
  • oauth2

Used in the garden

Sources