@@ -66,9 +66,18 @@ appprotect:
66
66
# # The number of replicas of the Nginx App Protect deployment
67
67
replicas : 1
68
68
69
+ # # Configure root filesystem as read-only and add volumes for temporary data
70
+ readOnlyRootFilesystem : false
71
+
69
72
# # The annotations for deployment
70
73
annotations : {}
71
74
75
+ # # InitContainers for the Nginx App Protect pod
76
+ initContainers : []
77
+ # - name: init-container
78
+ # image: busybox:latest
79
+ # command: ['sh', '-c', 'echo this is initial setup!']
80
+
72
81
nginx :
73
82
image :
74
83
# # The image repository of the Nginx App Protect WAF image you built
@@ -82,6 +91,9 @@ appprotect:
82
91
requests :
83
92
cpu : 10m
84
93
memory : 16Mi
94
+ # limits:
95
+ # cpu: 1
96
+ # memory: 1Gi
85
97
86
98
wafConfigMgr :
87
99
image :
@@ -94,6 +106,9 @@ appprotect:
94
106
requests :
95
107
cpu : 10m
96
108
memory : 16Mi
109
+ # limits:
110
+ # cpu: 500m
111
+ # memory: 500Mi
97
112
98
113
wafEnforcer :
99
114
image :
@@ -108,6 +123,25 @@ appprotect:
108
123
requests :
109
124
cpu : 20m
110
125
memory : 256Mi
126
+ # limits:
127
+ # cpu: 1
128
+ # memory: 1Gi
129
+
130
+ wafIpIntelligence :
131
+ enable : false
132
+ image :
133
+ # # The image repository of the WAF IP Intelligence
134
+ repository : private-registry.nginx.com/nap/waf-ip-intelligence
135
+ # # The tag of the WAF IP Intelligence
136
+ tag : 5.8.0
137
+ imagePullPolicy : IfNotPresent
138
+ resources :
139
+ requests :
140
+ cpu : 10m
141
+ memory : 256Mi
142
+ # limits:
143
+ # cpu: 200m
144
+ # memory: 1Gi
111
145
112
146
policyController :
113
147
enable : true # Set to false to disable Policy Controller
@@ -125,6 +159,14 @@ appprotect:
125
159
requests :
126
160
cpu : 100m
127
161
memory : 128Mi
162
+ # limits:
163
+ # memory: 256Mi
164
+ # cpu: 250m
165
+ # # InitContainers for the Policy Controller pod
166
+ initContainers : []
167
+ # - name: init-container
168
+ # image: busybox:latest
169
+ # command: ['sh', '-c', 'echo this is initial setup!']
128
170
129
171
storage :
130
172
bundlesPath :
@@ -157,6 +199,104 @@ appprotect:
157
199
# # The JWT token license.txt of the ConfigMap for customizing NGINX configuration
158
200
nginxJWT : " "
159
201
202
+ # # The nginx.conf of the ConfigMap for customizing NGINX configuration
203
+ nginxConf : |-
204
+ user nginx;
205
+ worker_processes auto;
206
+
207
+ load_module modules/ngx_http_app_protect_module.so;
208
+
209
+ error_log /var/log/nginx/error.log notice;
210
+ pid /var/run/nginx.pid;
211
+
212
+ events {
213
+ worker_connections 1024;
214
+ }
215
+
216
+ http {
217
+ include /etc/nginx/mime.types;
218
+ default_type application/octet-stream;
219
+
220
+ log_format main '$remote_addr - $remote_user [$time_local] "$request" '
221
+ '$status $body_bytes_sent "$http_referer" '
222
+ '"$http_user_agent" "$http_x_forwarded_for"';
223
+
224
+ access_log stdout main;
225
+ sendfile on;
226
+ keepalive_timeout 65;
227
+
228
+ # Enable Policy Lifecycle Management
229
+ app_protect_default_config_source "custom-resource";
230
+
231
+ # WAF enforcer address
232
+ app_protect_enforcer_address 127.0.0.1:50000;
233
+
234
+ server {
235
+ listen 80;
236
+ server_name localhost;
237
+ proxy_http_version 1.1;
238
+
239
+ location / {
240
+ app_protect_enable on;
241
+ app_protect_security_log_enable on;
242
+ app_protect_security_log log_all stderr;
243
+
244
+ # WAF policy - use Custom Resource name when PLM is enabled
245
+ app_protect_policy_file app_protect_default_policy;
246
+
247
+ client_max_body_size 0;
248
+ default_type text/html;
249
+ proxy_pass http://127.0.0.1/proxy$request_uri;
250
+ }
251
+
252
+ location /proxy {
253
+ app_protect_enable off;
254
+ client_max_body_size 0;
255
+ default_type text/html;
256
+ return 200 "Hello! I got your URI request - $request_uri\n";
257
+ }
258
+ }
259
+ }
260
+
261
+ # # The default.conf of the ConfigMap for customizing NGINX configuration
262
+ nginxDefault : {}
263
+
264
+ # # The extra entries of the ConfigMap for customizing NGINX configuration
265
+ entries : {}
266
+
267
+ # # It is recommended to use your own TLS certificates and keys
268
+ mTLS :
269
+ # # The base64-encoded TLS certificate for the App Protect Enforcer (server)
270
+ # # Note: It is recommended that you specify your own certificate
271
+ serverCert : " "
272
+ # # The base64-encoded TLS key for the App Protect Enforcer (server)
273
+ # # Note: It is recommended that you specify your own key
274
+ serverKey : " "
275
+ # # The base64-encoded TLS CA certificate for the App Protect Enforcer (server)
276
+ # # Note: It is recommended that you specify your own certificate
277
+ serverCACert : " "
278
+ # # The base64-encoded TLS certificate for the NGINX (client)
279
+ # # Note: It is recommended that you specify your own certificate
280
+ clientCert : " "
281
+ # # The base64-encoded TLS key for the NGINX (client)
282
+ # # Note: It is recommended that you specify your own key
283
+ clientKey : " "
284
+ # # The base64-encoded TLS CA certificate for the NGINX (client)
285
+ # # Note: It is recommended that you specify your own certificate
286
+ clientCACert : " "
287
+
288
+ # # The extra volumes of the Nginx container
289
+ volumes : []
290
+ # - name: extra-conf
291
+ # configMap:
292
+ # name: extra-conf
293
+
294
+ # # The extra volumeMounts of the Nginx container
295
+ volumeMounts : []
296
+ # - name: extra-conf
297
+ # mountPath: /etc/nginx/conf.d/extra.conf
298
+ # subPath: extra.conf
299
+
160
300
service :
161
301
nginx :
162
302
ports :
0 commit comments