dbmate

The dbmate container image — the lightweight database migration tool. Teams run it as a database migration tool that connects to production databases with write credentials during deployments.

dbmate, database migration tool, docker image, container image

What is dbmate?

dbmate is a lightweight, framework-independent database migration tool that supports PostgreSQL, MySQL, SQLite, and more. It applies plain SQL migrations and keeps schema state in a migrations table.

What is Echo's dbmate image?

Echo's dbmate image is a hardened build of dbmate on Echo's hardened base. Echo images are designed to be a drop-in replacement: swap the image reference in your Dockerfile or deployment manifest and CVEs go to zero without disrupting your pipeline definitions, scripts, and credentials. Every image is tested across clouds, image use cases, and deployment targets. Echo ships every image in two variants:

  • Distroless variant — optimized for runtime use, with the smallest possible attack surface
  • Default variant — includes essential build tools, package managers, and shells for teams that need operational access

For production dbmate deployments, the distroless variant keeps all runtime operations — migration creation, schema changes, and rollbacks — fully intact while minimizing exposure; the default variant suits platform and DevOps teams that need shell access for scripting, debugging, or chaining other command-line tools in pipelines.

What is the difference between Echo's dbmate image and the public dbmate image?

Public dbmate images ship on bases that include OS-level tooling convenient for development but which contribute CVEs that accumulate on a database migration tool used in production. dbmate images run inside CI pipelines and operational jobs with access to database credentials and the schema definitions it applies. OS-level CVEs in the base image — particularly in libraries such as openssl, zlib, and libc — create exploitable paths in an environment that application-level controls never see. Because tooling images are pulled and executed constantly across pipelines, they are also a steady source of scanner noise — every package in the base becomes a finding your security team must triage, even when none of it is exercised by the job. Echo's build retains everything dbmate needs for migration creation, schema changes, and rollbacks while removing the packages that don't belong in a production dbmate database migration tool. As we covered in our post on how to protect your company from software supply chain attacks, build and automation images that run with access to source code, credentials, and deployment targets are a high-value path into everything downstream. Echo commits to a 7-day SLA for critical and high severity vulnerabilities, and 10 days for medium, low, and unknown — with vulnerabilities triaged within 24 hours. Echo images are recognized by all major scanners and mirrored to all major registries, so they fit into existing pipelines without changing your registry, scanner, or runtime tooling.

FAQ

Can I replace my dbmate image with Echo's dbmate image?

Yes. Echo's dbmate image is a drop-in replacement. Update the FROM line in your Dockerfile and your workloads keep running. Existing commands, flags, scripts, and pipeline definitions all continue to work without changes.

Is Echo's dbmate image FIPS-validated?

Yes. Echo's FIPS-validated images use cryptographic modules with an active FIPS 140-3 CMVP certificate, making them fit for federal use — unlike FIPS-compliant images that haven't been validated. This matters for teams running dbmate workloads inside FedRAMP boundaries, where a database migration tool that connects to production databases with write credentials during deployments must meet cryptographic requirements across the full stack — including the OpenSSL and TLS libraries bundled with the dbmate image.

What is Echo's vulnerability management SLA on the dbmate image?

Echo commits to a 7-day SLA for critical and high severity vulnerabilities, and 10 days for medium, low, and unknown — with vulnerabilities triaged within 24 hours. Patches are mirrored automatically into your private registry so you're always running a clean version — critical for a tooling image that is pulled and run constantly across pipelines with access to database credentials and the schema definitions it applies.

Is Echo's dbmate image distroless?

Echo ships every image in two variants: a distroless variant optimized for runtime use, and a default variant that includes essential build tools, package managers, and shells. For production dbmate deployments, the distroless variant is the leaner, more secure choice; for platform and DevOps teams that need shell access for scripting, debugging, or chaining other command-line tools in pipelines, the default variant is the right fit.

How does Echo achieve such a drastic CVE reduction in dbmate?

Echo's dbmate image is built from source with only the absolute essentials needed to run the dbmate database migration tool, which significantly shrinks the attack surface. Echo also patches aggressively over time, with backports available so you can stay on the dbmate version your applications and their dependencies are certified against — avoiding a disruptive upgrade forced purely by OS-level vulnerabilities in the base image rather than by your own requirements.

Will Echo's dbmate image help us achieve FedRAMP?

Yes. The hard parts of FedRAMP — managing vulnerabilities, applying fixes, and using FIPS-validated cryptography — are baked into Echo images, including STIG-hardened configuration and ConMon/POA&M-ready reporting. For federal agencies, contractors, and FedRAMP-authorized providers running dbmate under an ATO — whether that's a FedRAMP-authorized SaaS boundary, a DoD enclave, or an agency-operated platform — Echo's hardened dbmate image keeps the database migration tool layer in-boundary and compliant without requiring custom hardening scripts or manual base image patching between compliance cycles.

‍

Interested in base images that start and stay clean?