Skip to content

Commit a8e5dc0

Browse files
committed
Merge branch 'IND-33283-validate-NAP-directives' into 'master'
feat: Resolve IND-33283 "Validate nap directives" Closes IND-33283 See merge request f5/nginx/crossplane-go!29
2 parents 6e36171 + 46dcd76 commit a8e5dc0

File tree

2 files changed

+765
-0
lines changed

2 files changed

+765
-0
lines changed

analyze.go

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2291,4 +2291,43 @@ var directives = map[string][]uint{
22912291
"zone_sync_timeout": {
22922292
ngxStreamMainConf | ngxStreamSrvConf | ngxConfTake1,
22932293
},
2294+
2295+
// nginx app protect specific and global directives
2296+
// [https://docs.nginx.com/nginx-app-protect/configuration-guide/configuration/#directives]
2297+
"app_protect_compressed_requests_action": {
2298+
ngxHTTPMainConf | ngxConfTake1,
2299+
},
2300+
"app_protect_cookie_seed": {
2301+
ngxHTTPMainConf | ngxConfTake1,
2302+
},
2303+
"app_protect_cpu_thresholds": {
2304+
ngxHTTPMainConf | ngxConfTake2,
2305+
},
2306+
"app_protect_enable": {
2307+
ngxHTTPMainConf | ngxHTTPSrvConf | ngxHTTPLocConf | ngxConfFlag,
2308+
},
2309+
"app_protect_failure_mode_action": {
2310+
ngxHTTPMainConf | ngxConfTake1,
2311+
},
2312+
"app_protect_physical_memory_util_thresholds": {
2313+
ngxHTTPMainConf | ngxConfTake2,
2314+
},
2315+
"app_protect_policy_file": {
2316+
ngxHTTPMainConf | ngxHTTPSrvConf | ngxHTTPLocConf | ngxConfTake1,
2317+
},
2318+
"app_protect_reconnect_period_seconds": {
2319+
ngxHTTPMainConf | ngxConfTake1,
2320+
},
2321+
"app_protect_request_buffer_overflow_action": {
2322+
ngxHTTPMainConf | ngxConfTake1,
2323+
},
2324+
"app_protect_security_log_enable": {
2325+
ngxHTTPMainConf | ngxHTTPSrvConf | ngxHTTPLocConf | ngxConfFlag,
2326+
},
2327+
"app_protect_security_log": {
2328+
ngxHTTPMainConf | ngxHTTPSrvConf | ngxHTTPLocConf | ngxConfTake2,
2329+
},
2330+
"app_protect_user_defined_signatures": {
2331+
ngxHTTPMainConf | ngxConfTake1,
2332+
},
22942333
}

0 commit comments

Comments
 (0)