Skip to content
FossShelf
Home / Categories / For Security Teams

Vault

Secrets management with encryption as a service and audit logs

Replaces Aws Secrets Manager, Azure Key Vault, Cyberark Conjur

36.52K starsBUSL-1.1last commit 13 Nov 2026
Screenshot of Vault

Who it's for

DevOps engineers managing application secrets across services

Vault centralizes credentials for all services in a deployment, replacing ad-hoc environment variable management with policy-controlled access. Applications authenticate to Vault at startup and receive short-lived credentials with automatic renewal. When a service is decommissioned, revoking its Vault policy removes its access to all credentials in one operation.

If your applications only need simple static API keys shared across a small team, a simpler tool or an encrypted secrets file may involve less operational overhead than running a Vault cluster.

Security teams enforcing least-privilege database access

The database secrets engine creates per-application database users with scoped permissions on demand. Each credential is short-lived: when the lease ends, the user is dropped. This removes shared database passwords and gives the security team a complete record of which service accessed which database and when.

If your databases do not support dynamic user creation or your organization lacks the operational maturity to manage lease TTLs, static credentials with a rotation schedule may be simpler to start with.

Platform teams standardizing secrets across multi-cloud infrastructure

Vault exposes a single secrets API across AWS, Azure, GCP, and on-premises systems. Platform teams can give development teams a consistent secrets interface without tying them to a specific cloud provider. Cloud-native authentication using IAM roles or Kubernetes service accounts handles identity without separate Vault credentials per team.

If your entire infrastructure is in a single cloud, the native managed service (AWS Secrets Manager or Azure Key Vault) may have lower operational overhead than running your own Vault cluster.

Application teams adding encryption without managing keys

The transit secrets engine accepts plaintext over the Vault API and returns ciphertext, letting developers add encryption to applications without handling key material directly. Security teams control key rotation centrally in Vault; application code never touches the raw encryption keys.

If you only need encryption at rest for database fields and your database supports native encryption, Vault's transit engine may be more infrastructure than the use case requires.

The problem

Every application needs credentials at runtime: database passwords, API keys for third-party services, TLS certificates, encryption keys. The naive approach is to bake them into environment variables, config files, or deployment scripts, but this creates a sprawling, hard-to-audit credentials surface. When a developer leaves, when a key is compromised, or when a service is decommissioned, there is no clean way to revoke access across every service that shared the credential. The pain deepens at scale. A single application talking to five backing services means five credentials to rotate, five places to update, and five blast radii if any one is leaked. Managed services from cloud providers like AWS and Azure address the sprawl but tie you to their ecosystem and billing, leaving multi-cloud and on-premises teams without a portable path.

How it works

Secure Secret Storage

Vault encrypts all secrets before writing them to persistent storage, so raw access to the backend (disk, Consul, cloud object stores) does not expose credentials. The key-value secrets engine stores arbitrary key-value pairs under configurable paths, with access controlled by per-path policies.

Dynamic Secret Generation

Rather than storing long-lived credentials, Vault generates secrets on demand for supported systems including AWS IAM and SQL databases. Each set of credentials is short-lived and tied to a lease. When the lease expires, Vault revokes the credentials automatically, reducing the blast radius of any compromise.

Encryption as a Service

The transit secrets engine encrypts and decrypts data for applications without storing the plaintext. Security teams configure encryption parameters centrally; developers call the Vault API instead of managing keys and cipher choices themselves. This separates key management from application code entirely.

Leasing and Automatic Revocation

Every secret Vault issues carries a lease. Clients renew leases via the built-in API for as long as they need the credential. When the lease expires or is manually revoked, Vault invalidates the secret. Revocation works at any level: a single secret, all secrets for a user, or all secrets of a specific type.

Database Credential Management

The database secrets engine manages the full lifecycle of database credentials. Vault connects to the database directly and creates short-lived users with narrowly scoped permissions. When the lease ends, Vault drops the database user, so compromised credentials expire automatically without manual intervention.

Features

  • Secure Secret Storage
  • Dynamic Secret Generation
  • Encryption as a Service
  • Leasing and Automatic Revocation
  • Database Credential Management

How to install

Self-hosting Vault uses Docker with the official HashiCorp image.

docker run -d -p 8200:8200 hashicorp/vault

Recommended for this setup

Strengths

  • Vendor-neutral self-hosting: Vault runs on any infrastructure: bare metal, Docker, Kubernetes, or a cloud VM. Unlike AWS Secrets Manager or Azure Key Vault, it has no cloud provider dependency. Teams managing multi-cloud or hybrid environments can run a single Vault cluster and use it across all their services.
  • Dynamic secrets reduce credential lifespan: Static credentials stored in environment variables sit unchanged for months or years. Vault's dynamic secrets generate fresh credentials on each request with a configurable TTL. A compromised credential that expires in an hour is far less useful to an attacker than one that never rotates.
  • Detailed audit log on every access: Vault records every client authentication and secret access to a structured audit log. The log captures which identity accessed which secret and when, at a granularity that cloud provider IAM logs rarely match. This matters for compliance audits and post-incident forensics.
  • Long maintenance track record: Vault has been actively developed since February 2015 and received commits as recently as October 2026. The repository carries 36,330 GitHub stars and 4,773 forks. HashiCorp's official discussion forum, certification program, and documentation site are well-established resources for operators in production.

Trade-offs

  • License terms not declared in repository metadata: The GitHub repository metadata shows no SPDX license declaration, which means license terms cannot be verified from the repository's API response. Before deploying Vault in commercial or production contexts, review the LICENSE file in the repository directly. HashiCorp maintains both an open source version and a commercial Enterprise edition; the terms for each differ.
  • Production deployment requires significant planning: A production-grade Vault deployment requires decisions around storage backends, high-availability configuration, seal mechanisms, and backup procedures. The development mode is not suitable for production use. Teams new to secrets management should allocate time for architecture work before rolling Vault out across services.
  • High open issue count: The repository currently has 1,448 open issues. For a project of this scope this is not unusual, but it signals that some edge cases and integrations may have outstanding bugs. Operators running complex setups should search the issue tracker for their specific use case before committing.
  • Some advanced features require Enterprise license: The Transform Secrets Engine, which generates cryptographically secure tokens mapped to sensitive data, is listed as an Enterprise feature on the product website. Performance replication for multi-datacenter setups also requires the paid Enterprise tier. The open source version covers most secrets management use cases, but some compliance and scale features sit behind the commercial license.

Tech stack

Languages
Go, JavaScript, TypeScript, Handlebars, HCL, Shell, SCSS, Makefile, Go Template, Dockerfile, Smarty, Batchfile, HTML
Frameworks
—
Databases
—
Tooling
Webpack

FAQ

Is Vault free to use?

The open source version of Vault is free to self-host and covers most secrets management use cases. HashiCorp also offers HCP Vault Dedicated, a paid managed service, and a Vault Enterprise version with advanced features such as performance replication and the Transform Secrets Engine. The repository's GitHub metadata shows no declared SPDX license; review the LICENSE file in the repository for the specific terms governing the open source version.

How does Vault compare to AWS Secrets Manager?

Vault runs on any infrastructure without cloud provider dependency, making it the better fit for multi-cloud, hybrid, or on-premises environments. AWS Secrets Manager integrates more tightly if your workloads run entirely on AWS and you want zero infrastructure management. Vault's dynamic secrets and broad authentication backends give it more flexibility for heterogeneous environments; AWS Secrets Manager's advantage is zero operational overhead on AWS.

What is a dynamic secret in Vault?

A dynamic secret is a credential Vault generates on demand for a specific request, rather than retrieving a stored static value. For example, when an application needs database access, Vault creates a new database user with a short time-to-live. When the TTL expires, Vault deletes the user automatically. This means leaked credentials expire quickly without manual intervention, unlike long-lived static passwords.

Can Vault manage database credentials?

Yes. The database secrets engine supports databases including PostgreSQL, MySQL, and MongoDB. Vault connects to the database with an administrative credential, creates a new user on demand with configurable roles and permissions, and revokes the user when the lease expires. Applications never hold long-lived database passwords, and the database user list accurately reflects which services are currently active.

What programming languages can interact with Vault?

Vault exposes an HTTP API, so any language with an HTTP client can interact with it. HashiCorp provides official Go and API libraries, and the vault-examples repository on GitHub covers interaction from multiple languages. Community-maintained clients exist for Python, Java, Ruby, and other ecosystems. The CLI is the fastest way to test Vault operations during setup.

Similar tools

More in Security Teams