diff --git a/content/waf/configure/compiler.md b/content/waf/configure/compiler.md index ae68ae719..160f4e1c3 100644 --- a/content/waf/configure/compiler.md +++ b/content/waf/configure/compiler.md @@ -113,6 +113,7 @@ Replace `` with the location of your client key and ```shell curl -s https://private-registry.nginx.com/v2/nap/waf-compiler/tags/list --key --cert ``` + ```json { "name": "nap/waf-compiler", @@ -245,7 +246,7 @@ There are ways to remediate them based on the context: | _Policy Bundles have differing global states_ | Recompile all of your bundles from scratch with your custom compiler. Bundles must be compiled with the same compiler: you cannot mix default and custom bundles. | | _Policy Bundles have differing cookie seeds_ | Recompile all of your bundles from scratch with your custom compiler. Bundles must be compiled with the same compiler: you cannot mix default and custom bundles. | | _Duplicate policy name found_ | Don't compile multiple policies with the same name, or one policy to multiple bundles. Each policy can be compiled once but a bundle can be re-used. | -| _Duplicate logging profile name found | Don't compile the same logging profile to multiple bundles. Each profile can be compiled once but a bundle can be re-used. | +| _Duplicate logging profile name found_ | Don't compile the same logging profile to multiple bundles. Each profile can be compiled once but a bundle can be re-used. | | _Timeout waiting for enforcer_ | Likely an internal issue: [contact Support]({{< ref "/waf/support.md" >}}) | {{< /table >}} @@ -288,7 +289,6 @@ When deploying multiple scalability instances (Such as Kubernetes deployment rep {{< /call-out >}} - ## Using the compiler in a CI/CD process When executing commands inside the compiler container, ensure that you use `/opt/app_protect/bin/apcompile` as the compiler binary. diff --git a/content/waf/configure/converters.md b/content/waf/configure/converters.md index dc79fb05b..7b6000add 100644 --- a/content/waf/configure/converters.md +++ b/content/waf/configure/converters.md @@ -63,6 +63,7 @@ docker run -it --rm \ -o /tmp/convert/policy.json \ --full-export ``` + ```json { "completed_successfully": true, @@ -184,6 +185,7 @@ Replace `waf-compiler-\:custom` with your compiler image. ```shell docker run -v `pwd`:`pwd` -w `pwd` --entrypoint /opt/app_protect/bin/convert-signatures waf-compiler-:custom -i /path/to/signatures.xml -o /path/to/signatures.json | jq ``` + ```json { "filename": "/path/to/signatures.json", @@ -193,6 +195,7 @@ docker run -v `pwd`:`pwd` -w `pwd` --entrypoint /opt/app_protect/bin/convert-sig ``` **signatures.json** + ```json { "tag": "user-defined-signatures", @@ -346,6 +349,7 @@ This command example generates a signature report with all signature details: ```shell /opt/app_protect/bin/get-signatures -o /path/to/signature-report.json ``` + ```json { "file_size": 1868596, @@ -353,7 +357,9 @@ This command example generates a signature report with all signature details: "completed_successfully": true } ``` + **signature-report.json** + ```json { "signatures": [