Open shaun-nx opened 6 months ago
Hi @shaun-nx thanks for reporting!
Be sure to check out the docs and the Contributing Guidelines while you wait for a human to take a look at this :slightly_smiling_face:
Cheers!
This appears to be a workflow or order of operations problem. If a bundle is referenced in a config, it must be present. The question comes if or how the system responds to that.
Simply placing the bundle in the correct place, after the fact, does not trigger a reload and thus re-processing of the objects. Some configuration change actions needs to happen to cause the K8s API watcher to trigger and tell NIC to re-process the objects and therefore identify and load the tgz.
NIC should not implement a file watcher. The implemented workflow depends on a YAML resource being modified to trigger the reload. This is all auditable.
Describe the bug When deploying a VirtualServer with a WAF policy which uses the
apBundle
setting, the VirtualServer will remain go into aWarning
state if the expected.tgz
bundle file is not present. The VirtualServer will subsequently stay in thisWarning
state even after the.tgz
bundle file is put into the expected directory afterwords.Example warning message:
To Reproduce Steps to reproduce the behavior:
Policy
of kindwaf
, with theapBundle
option as shown in the Policy Resource docsExpected behavior The VirtualServer will go from a
Warning
state to aValid
state when awaf
type policy isValid
Your environment