Skip to content

Commit bc68166

Browse files
committed
fix: missing values.yaml sections
1 parent 65e7935 commit bc68166

File tree

1 file changed

+140
-0
lines changed

1 file changed

+140
-0
lines changed

content/nap-waf/v5/admin-guide/policy-lifecycle-management.md

Lines changed: 140 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,18 @@ appprotect:
6666
## The number of replicas of the Nginx App Protect deployment
6767
replicas: 1
6868

69+
## Configure root filesystem as read-only and add volumes for temporary data
70+
readOnlyRootFilesystem: false
71+
6972
## The annotations for deployment
7073
annotations: {}
7174

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+
7281
nginx:
7382
image:
7483
## The image repository of the Nginx App Protect WAF image you built
@@ -82,6 +91,9 @@ appprotect:
8291
requests:
8392
cpu: 10m
8493
memory: 16Mi
94+
# limits:
95+
# cpu: 1
96+
# memory: 1Gi
8597

8698
wafConfigMgr:
8799
image:
@@ -94,6 +106,9 @@ appprotect:
94106
requests:
95107
cpu: 10m
96108
memory: 16Mi
109+
# limits:
110+
# cpu: 500m
111+
# memory: 500Mi
97112

98113
wafEnforcer:
99114
image:
@@ -108,6 +123,25 @@ appprotect:
108123
requests:
109124
cpu: 20m
110125
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
111145

112146
policyController:
113147
enable: true # Set to false to disable Policy Controller
@@ -125,6 +159,14 @@ appprotect:
125159
requests:
126160
cpu: 100m
127161
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!']
128170

129171
storage:
130172
bundlesPath:
@@ -157,6 +199,104 @@ appprotect:
157199
## The JWT token license.txt of the ConfigMap for customizing NGINX configuration
158200
nginxJWT: ""
159201

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+
160300
service:
161301
nginx:
162302
ports:

0 commit comments

Comments
 (0)