Upgrave to v3 🆕

We made a big effort for v3 to keep the API similar to the previous version. But some minor changes are still needed for migrating to the new major release.

This tutorial details the steps requiring to upgrade your Coraza v2 application to Coraza v3.

Seclang parser

NewParser now panics instead of returning an error, and it doesn’t need the waf as parameter.

// old code:
parser, err := seclang.NewParser(waf)
// new code:
parser := seclang.NewParser()

Directives and rules

No changes required.

Plugins Interfaces

Soon

Top