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 regular expressions can lead to false-positive and/or false-negative results. We recommend using the https://regex101.com/ tool to test and build your regular expressions prior to building them into a Custom Policy Check.
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
Before you begin
Liquibase 4.29.0+
Configure a valid Liquibase Pro license key
Create a Check Settings file
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 theliquibase/lib
directory.Maven users only:
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