f5devcentral / f5-waf-policy-editor

Apache License 2.0
26 stars 14 forks source link

[enhancement] Modification/UI-validation in wildcard field of headers section #30

Open shubhammishra9 opened 3 years ago

shubhammishra9 commented 3 years ago

Observed when mandatory option is enabled in wildcard field of headers section nginx service not coming with error message as: " Wildcard headers may not be mandatory.". For wildcard, either mandatory option can be set to false by default or some UI validation can be done.

Error message:

Sep 18 06:51:36 ip-172-31-21-251.ap-south-1.compute.internal nginx[2726]: { Sep 18 06:51:36 ip-172-31-21-251.ap-south-1.compute.internal nginx[2726]: "completed_successfully" : false, Sep 18 06:51:36 ip-172-31-21-251.ap-south-1.compute.internal nginx[2726]: "error_message" : "*Failed to import Policy 'my_policy' from '/etc/app_protect/conf/waf11.json': Could not add the Header ''. Wildcard headers may not be mandatory*.", Sep 18 06:51:36 ip-172-31-21-251.ap-south-1.compute.internal nginx[2726]: "error_line_number" : 23 Sep 18 06:51:36 ip-172-31-21-251.ap-south-1.compute.internal nginx[2726]: } Sep 18 06:51:36 ip-172-31-21-251.ap-south-1.compute.internal nginx[2726]: nginx: [error] APP_PROTECT { "event": "configuration_load_failure", "software_version": "3.639.0", "error_message":"Failed to import Policy 'my_policy' from '/etc/app_protect/conf/waf11.json': Could not add the Header ''. Wildcard headers may not be mandatory.","completed_successfully":false,"error_line_number":23} Sep 18 06:51:36 ip-172-31-21-251.ap-south-1.compute.internal systemd[1]: nginx.service: control process exited, code=exited status=1 Sep 18 06:51:36 ip-172-31-21-251.ap-south-1.compute.internal systemd[1]: Failed to start NGINX Plus - high performance web server. -- Subject: Unit nginx.service has failed

waf1