Documentation
¶
Overview ¶
Command inkwallctl is the Inkwall command-line tool.
Usage:
inkwallctl test [flags] URL inkwallctl test [flags] --request FILE inkwallctl test [flags] --har FILE
The test subcommand shows the verdict and the matching rules for one or more requests, without sending them anywhere. A request is given like a curl command line (URL, -X, -H, -d), as raw HTTP in a file, or as a HAR file exported from a browser. By default the requests are inspected in-process with the OWASP Core Rule Set embedded in inkwallctl, the same code the engine runs, configured by flags. With --policy they are inspected by WAFPolicy objects, resolved the way the operator does and compiled the way the engine does; with --bundle, by a bundle the operator built; with --engine they are sent to a running engine's check API (inkwall-engine check).
The version subcommand (or --version) prints the version, the commit and the Go version inkwallctl was built with.
The migrate ingress-nginx subcommand converts ingress-nginx's ModSecurity annotations and ConfigMap settings into WAFPolicy objects, targeting the Ingresses or (--target) the HTTPRoutes or IngressRoutes replacing them.