bworkx.

Reference method

Reference methodApplication securityDependency-Track 4.xDependency-Track 5.xPostgreSQL

Dependency-Track v4 to v5 migration method

How bworkx inventories, rehearses, validates, and cuts over a Dependency-Track v4 to v5 migration with PostgreSQL and a rollback path.

Problem. A Dependency-Track v5 migration changes the database, the API, the notification payloads, and the deployment model at the same time.

Reference method. This page describes how bworkx plans and runs a Dependency-Track v4 to v5 migration. It is not a client engagement or a guarantee of zero downtime.

Why v5 is a migration, not an upgrade

Dependency-Track v5 is a major redesign. The database, deployment model, API surface, and notification payloads all change. Treating it as a container tag bump is how a working portfolio becomes an outage.

The v4.14.x line is in security-fix-only mode. The migration should be planned before the remaining fix window closes.

1. Inventory

We record:

  • v4 version and database engine.
  • Projects, components, and portfolio size.
  • Users, teams, and access-control configuration.
  • Policies, feeds, and notification publishers.
  • CI plugins and API clients.
  • Custom scripts and dashboards that read the API.

Anything that reads or writes Dependency-Track is in scope.

2. Design the v5 target

v5 standardises on PostgreSQL and separates the API server and frontend. We design:

  • PostgreSQL topology, backup, and restore.
  • API and frontend deployment, sizing, and network path.
  • Feed connectivity and proxy requirements.
  • Authentication and access control.
  • Monitoring and log retention.

A small deployment starts at 2 GB RAM and 2 CPU for the API server; 8 GB and 4 CPU are a safer production baseline. The frontend is lighter but still needs its own service.

3. Rehearse offline

v5 requires an offline migration to a separate PostgreSQL cluster. In-place upgrade is not supported.

We build an isolated v5 environment and run the supported v4 migrator against a copy of the v4 database. The rehearsal records:

  • The exact sequence and duration.
  • The migration failures and how they were resolved.
  • The validation queries.
  • The rollback procedure.

The production cutover uses the rehearsed sequence, not a first attempt.

4. Change the integrations

The migration is not finished when the database loads. We review:

  • Notifications — v4 payloads move to Protobuf; templates and consumers need updating.
  • REST API — v5 enforces pagination and changes some response schemas; API clients need a compatibility pass.
  • CI plugins — upload steps, credentials, and response handling are tested against v5.
  • Dashboards and scripts — any custom query is checked against the new schema.

5. Validate the portfolio

We compare v4 and v5 before cutover:

  • Project and component counts.
  • Vulnerability and policy findings.
  • Users, teams, and permissions.
  • API responses used by automation.
  • Feed health and notification delivery.

Differences are explained, not waved away. A migration that loses findings silently is worse than a failed cutover.

6. Cut over and roll back

The production cutover follows the agreed window. The v4 system stays available for rollback until:

  • The v5 portfolio is stable.
  • CI uploads succeed.
  • Notification consumers are confirmed.
  • Feeds and policies are healthy.

The rollback is tested in the rehearsal, not invented during the incident.

What this method does not cover

  • An in-place upgrade (not supported).
  • Zero-downtime migration.
  • A compliance certification.
  • Rebuilding a broken v4 deployment; that is a separate recovery scope.
  • Dependency-Track feature development beyond the migration.

What I would do differently

Inventory the integrations before touching the database. The database migration is usually the visible risk; the notification templates and API clients are the ones that fail quietly after the cutover.

Outcome. A rehearsed offline migration, a validated portfolio, and a cutover with a rollback.

Next step

Need an assessment like this?

If you are preparing for a review, a launch, or a customer security questionnaire, start with the scope and the authorization.