Skip to content

Commit de43770

Browse files
authored
fix: update github url for app-protect-waf (#3412)
1 parent bfd1141 commit de43770

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

docs/content/app-protect-waf/configuration.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -246,8 +246,8 @@ These are the typical steps to deploy an OpenAPI protection Policy in NGINX Ingr
246246
3. Make other custom changes if needed (e.g. enable Data Guard protection).
247247
4. Use a tool to convert the result to YAML. There are many, for example: [`yq` utility](https://github.com/mikefarah/yq).
248248
5. Add the YAML properties to create an `APPolicy` Custom Resource putting the policy itself (as in step 4) within the `spec` property of the Custom Resource. Refer to [App Protect Policies](#app-protect-policies) section above.
249-
6. Create a `Policy` object which references the `APPolicy` Custom Resource as in [this example](https://github.com/nginxinc/kubernetes-ingress/blob/v2.4.2/examples/custom-resources/waf/waf.yaml).
250-
7. Finally, attach the `Policy` object to a `VirtualServer` resource as in [this example](https://github.com/nginxinc/kubernetes-ingress/blob/v2.4.2/examples/custom-resources/waf/virtual-server.yaml).
249+
6. Create a `Policy` object which references the `APPolicy` Custom Resource as in [this example](https://github.com/nginxinc/kubernetes-ingress/blob/v2.4.2/examples/custom-resources/app-protect-waf/waf.yaml).
250+
7. Finally, attach the `Policy` object to a `VirtualServer` resource as in [this example](https://github.com/nginxinc/kubernetes-ingress/blob/v2.4.2/examples/custom-resources/app-protect-waf/virtual-server.yaml).
251251

252252
**Note**: You need to make sure that the server where the resource files are located is always available when you are compiling your policy.
253253

@@ -383,7 +383,7 @@ The `link` option is also available in the `openApiFileReference` property and i
383383
## Configuration in NGINX Plus Ingress Controller using Virtual Server Resource
384384
In this example we deploy the NGINX Plus Ingress Controller with NGINX App Protect WAF, a simple web application and then configure load balancing and WAF protection for that application using the VirtualServer resource.
385385

386-
**Note:** You can find the example, and the files referenced, on [GitHub](https://github.com/nginxinc/kubernetes-ingress/tree/v2.4.2/examples/custom-resources/waf).
386+
**Note:** You can find the example, and the files referenced, on [GitHub](https://github.com/nginxinc/kubernetes-ingress/tree/v2.4.2/examples/custom-resources/app-protect-waf).
387387

388388
## Prerequisites
389389

@@ -402,37 +402,37 @@ In this example we deploy the NGINX Plus Ingress Controller with NGINX App Prote
402402

403403
Create the application deployment and service:
404404
```
405-
$ kubectl apply -f https://raw.githubusercontent.com/nginxinc/kubernetes-ingress/v2.4.2/examples/custom-resources/waf/webapp.yaml
405+
$ kubectl apply -f https://raw.githubusercontent.com/nginxinc/kubernetes-ingress/v2.4.2/examples/custom-resources/app-protect-waf/webapp.yaml
406406
```
407407

408408
### Step 2. Deploy the AP Policy
409409

410410
1. Create the syslog service and pod for the App Protect security logs:
411411
```
412-
$ kubectl apply -f https://raw.githubusercontent.com/nginxinc/kubernetes-ingress/v2.4.2/examples/custom-resources/waf/syslog.yaml
412+
$ kubectl apply -f https://raw.githubusercontent.com/nginxinc/kubernetes-ingress/v2.4.2/examples/custom-resources/app-protect-waf/syslog.yaml
413413
```
414414

415415
2. Create the User Defined Signature, App Protect WAF policy, and log configuration:
416416

417417
```
418-
$ kubectl apply -f https://raw.githubusercontent.com/nginxinc/kubernetes-ingress/v2.4.2/examples/custom-resources/waf/ap-apple-uds.yaml
419-
$ kubectl apply -f https://raw.githubusercontent.com/nginxinc/kubernetes-ingress/v2.4.2/examples/custom-resources/waf/ap-dataguard-alarm-policy.yaml
420-
$ kubectl apply -f https://raw.githubusercontent.com/nginxinc/kubernetes-ingress/v2.4.2/examples/custom-resources/waf/ap-logconf.yaml
418+
$ kubectl apply -f https://raw.githubusercontent.com/nginxinc/kubernetes-ingress/v2.4.2/examples/custom-resources/app-protect-waf/ap-apple-uds.yaml
419+
$ kubectl apply -f https://raw.githubusercontent.com/nginxinc/kubernetes-ingress/v2.4.2/examples/custom-resources/app-protect-waf/ap-dataguard-alarm-policy.yaml
420+
$ kubectl apply -f https://raw.githubusercontent.com/nginxinc/kubernetes-ingress/v2.4.2/examples/custom-resources/app-protect-waf/ap-logconf.yaml
421421
```
422422

423423
### Step 3 - Deploy the WAF Policy
424424

425425
Create the WAF policy
426426
```
427-
$ kubectl apply -f https://raw.githubusercontent.com/nginxinc/kubernetes-ingress/v2.4.2/examples/custom-resources/waf/waf.yaml
427+
$ kubectl apply -f https://raw.githubusercontent.com/nginxinc/kubernetes-ingress/v2.4.2/examples/custom-resources/app-protect-waf/waf.yaml
428428
```
429429
Note the App Protect configuration settings in the Policy resource. They enable WAF protection by configuring App Protect with the policy and log configuration created in the previous step.
430430
431431
### Step 4 - Configure Load Balancing
432432
433433
1. Create the VirtualServer Resource:
434434
```
435-
$ kubectl apply -f https://raw.githubusercontent.com/nginxinc/kubernetes-ingress/v2.4.2/examples/custom-resources/waf/virtual-server.yaml
435+
$ kubectl apply -f https://raw.githubusercontent.com/nginxinc/kubernetes-ingress/v2.4.2/examples/custom-resources/app-protect-waf/virtual-server.yaml
436436
```
437437
Note that the VirtualServer references the policy waf-policy created in Step 3.
438438
@@ -467,7 +467,7 @@ To access the application, curl the coffee and the tea services. We'll use the -
467467
468468
### Configuration Example of Virtual Server
469469
470-
Refer to github repo for [Virtual Server example](https://raw.githubusercontent.com/nginxinc/kubernetes-ingress/v2.4.2/examples/custom-resources/waf/webapp.yaml).
470+
Refer to github repo for [Virtual Server example](https://raw.githubusercontent.com/nginxinc/kubernetes-ingress/v2.4.2/examples/custom-resources/app-protect-waf/webapp.yaml).
471471
472472
```yaml
473473
apiVersion: k8s.nginx.org/v1

0 commit comments

Comments
 (0)