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 inkwallctl test [flags] --suite FILE [--junit 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). With --suite, a file of cases, each a request and optionally its response, is checked against the verdicts it expects, and --junit writes the results as JUnit XML.
The version subcommand (or --version) prints the version, the commit and the Go version inkwallctl was built with.
The explain subcommand says why a WAFPolicy isn't Ready (explain policy NAMESPACE/NAME) or why a request was denied (explain request REQUEST-ID), from the cluster's state, read only, with -o json for scripts and assistants (docs/troubleshooting.md).
The mcp subcommand serves those read-only tools and this version's docs to an AI assistant over the Model Context Protocol, on standard input and output (docs/mcp.md).
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.