Liquibase Pro Regex Custom Policy Checks

Liquibase Pro Regex Custom Policy Checks allow you to use regular expressions to specify advanced policies using the Liquibase Policy Checks framework. Using Custom Policy Checks, you can enforce compliance for a wide array of security, code standards, data quality, and more.

This collection of the Liquibase Pro Regex Custom Policy Checks is a subset of Custom Policy Checks allows you to implement complex governance with a variety of checks that search for specific patterns within your Changelog. Each check describes what the check can look for and how to implement the check in Liquibase Pro.

It is important to note that due to the nature of regular expressions, they can lead to false positive and/or false negative results. We recommend using the https://regex101.com/ tool to test out and build your regular expressions prior to building them into a Custom Policy Check.

Note: This is a Liquibase Pro feature, so you need a Liquibase Pro License Key to use it.

Business benefits

  • Ensure compliance to your specific issues and tech stack
  • Develop at your own cadence
  • Share easily across your entire organization
  • Easily customize from a base template

Prerequisites

Liquibase prerequisites

  • Install Liquibase 4.29.0+
  • Configure a valid Liquibase Pro license key
  • Ensure the Liquibase Checks extension is installed. In Liquibase 4.31.0+, it is already installed in the /liquibase/internal/lib directory, so no action is needed. If the checks JAR is not installed, download liquibase-checks-<version>.jar and put it in the liquibase/lib directory. Or, if you use Maven, add this dependency to your pom.xml file:
  • <dependency>
        <groupId>org.liquibase.ext</groupId>
        <artifactId>liquibase-checks</artifactId>
        <version>2.0.0</version>
    </dependency>
  • Java Development Kit 17+ (available for Open JDK and Oracle JDK)
  • Linux, macOS, or Windows operating system
  • Familiarity with Liquibase concepts: Changelog, Changeset, Policy Checks Commands, checks-scope, and snapshot