Skip to content

Commit d852f84

Browse files
authored
Fix: linting and formatting issues (#1392)
1 parent 9f0d88c commit d852f84

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

content/waf/configure/compiler.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ Replace `<path-to-your-nginx-repo.key>` with the location of your client key and
113113
```shell
114114
curl -s https://private-registry.nginx.com/v2/nap/waf-compiler/tags/list --key <path-to-your-nginx-repo.key> --cert <path-to-your-nginx-repo.crt>
115115
```
116+
116117
```json
117118
{
118119
"name": "nap/waf-compiler",
@@ -245,7 +246,7 @@ There are ways to remediate them based on the context:
245246
| _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. |
246247
| _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. |
247248
| _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. |
248-
| _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. |
249+
| _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. |
249250
| _Timeout waiting for enforcer_ | Likely an internal issue: [contact Support]({{< ref "/waf/support.md" >}}) |
250251
{{< /table >}}
251252

@@ -288,7 +289,6 @@ When deploying multiple scalability instances (Such as Kubernetes deployment rep
288289

289290
{{< /call-out >}}
290291

291-
292292
## Using the compiler in a CI/CD process
293293

294294
When executing commands inside the compiler container, ensure that you use `/opt/app_protect/bin/apcompile` as the compiler binary.

content/waf/configure/converters.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ docker run -it --rm \
6363
-o /tmp/convert/policy.json \
6464
--full-export
6565
```
66+
6667
```json
6768
{
6869
"completed_successfully": true,
@@ -184,6 +185,7 @@ Replace `waf-compiler-\<version-tag\>:custom` with your compiler image.
184185
```shell
185186
docker run -v `pwd`:`pwd` -w `pwd` --entrypoint /opt/app_protect/bin/convert-signatures waf-compiler-<version-tag>:custom -i /path/to/signatures.xml -o /path/to/signatures.json | jq
186187
```
188+
187189
```json
188190
{
189191
"filename": "/path/to/signatures.json",
@@ -193,6 +195,7 @@ docker run -v `pwd`:`pwd` -w `pwd` --entrypoint /opt/app_protect/bin/convert-sig
193195
```
194196

195197
**signatures.json**
198+
196199
```json
197200
{
198201
"tag": "user-defined-signatures",
@@ -346,14 +349,17 @@ This command example generates a signature report with all signature details:
346349
```shell
347350
/opt/app_protect/bin/get-signatures -o /path/to/signature-report.json
348351
```
352+
349353
```json
350354
{
351355
"file_size": 1868596,
352356
"filename": "/path/to/signature-report.json",
353357
"completed_successfully": true
354358
}
355359
```
360+
356361
**signature-report.json**
362+
357363
```json
358364
{
359365
"signatures": [

0 commit comments

Comments
 (0)