@@ -34,21 +34,14 @@ This is accomplished with the following steps:
34
34
35
35
---
36
36
37
+ ## Compile WAF Policy from JSON to Bundle
37
38
38
- Password:
39
- Login Succeeded
40
- ```
41
-
42
- Once that's done, pull the `waf-compiler` image with:
39
+ Pull the ` waf-compiler ` image with:
43
40
44
41
``` shell
45
42
$ docker pull private-registry.nginx.com/nap/waf-compiler:5.6.0
46
43
```
47
44
48
- ---
49
-
50
- ## Step 3: Compile WAF Policy from JSON to Bundle
51
-
52
45
Download the [ provided WAF Policy JSON] ( https://raw.githubusercontent.com/nginx/kubernetes-ingress/main/tests/data/ap-waf-v5/wafv5.json ) :
53
46
54
47
``` shell
@@ -78,7 +71,7 @@ After this command, your workspace should contain:
78
71
79
72
---
80
73
81
- ## Step 4: Create the persistent volume and claim to store the policy bundle
74
+ ## Create the persistent volume and claim to store the policy bundle
82
75
83
76
Save the following configuration data as ` pvc.yml ` in the same directory.
84
77
@@ -129,7 +122,7 @@ kubectl get pv
129
122
kubectl get pvc
130
123
```
131
124
132
- ## Step 5: Deploy NGINX Plus NIC Controller with NAP Enabled using Helm
125
+ ## Deploy NGINX Plus NIC Controller with NAP Enabled using Helm
133
126
134
127
Add the official NGINX Helm repository:
135
128
``` shell
@@ -180,7 +173,7 @@ kubectl get pods
180
173
181
174
---
182
175
183
- ## Step 6: Copy the policy bundle into the running instance
176
+ ## Copy the policy bundle into the running instance
184
177
185
178
Get the name of the pod from the ` kubectl get pods ` command above.
186
179
@@ -209,7 +202,7 @@ kubectl exec --stdin --tty \
209
202
-- ls -la /etc/app_protect/bundles
210
203
```
211
204
212
- ## Step 7: Confirm that the WAF policies work
205
+ ## Confirm that the WAF policies work
213
206
214
207
Save the following kubernetes config file as ` webapp.yaml ` :
215
208
0 commit comments