Migrating from 1.x
This major release introduces significant architectural changes and new features:
- A redesigned user interface
- Learn more about the new interface and navigation in the UI migration guide.
- A switch to an Ubuntu Linux base image (from Alpine) for improved compatibility and security posture.
- Internal architecture updates, including the use of
HAProxy
for traffic routing andsupervisord
for process management. - New caching and session management layers, requiring a Redis Serialization Protocol (RESP)-compatible key/value storage engine.
Migration notes​
The 2.x release line is almost entirely backwards compatible with 1.x. Only the following changes are required to install and run it:
- A Redis-compatible data store (such as Redis or Valkey) is now required.
- Ensure you set the
REDIS_URL
environment variable.
- Ensure you set the
PACTFLOW_COOKIE_SECRET
must now be at least 64 characters. See documentation for details.- The
PACTFLOW_LOG_FORMAT
environment variable is deprecated and has no effect. All logs are now output in JSON only. - The base image has changed from Alpine Linux to Ubuntu 24.04. If you customized the image, review and update your setup, including any additional tools or libraries.
Note: This release does not include any database or data migrations. You can freely upgrade or roll back between 1.x and 2.x without concerns about database compatibility. All existing API calls, SDKs, and CLI integrations continue to work as expected.
Migration Checklist​
Use this checklist to prepare for upgrading from PactFlow 1.x to 2.x.
✅ Redis requirement
- Provision a Redis-compatible data store (Redis or Valkey).
- Set the
REDIS_URL
environment variable.
✅ Cookie secret length
- Ensure
PACTFLOW_COOKIE_SECRET
is at least 64 characters. - Update your environment configuration if required.
✅ Logging format
- Remove any usage of the
PACTFLOW_LOG_FORMAT
environment variable. - Update monitoring/forwarding pipelines to expect JSON logs only.
✅ Base image
- Note that the base image has changed from Alpine Linux to Ubuntu 24.04.
- If you maintain a custom image, review and update any tools, libraries, or scripts.