Specifying --blocked-nets=""
does not clear the IP denylist for multihttp checks
#735
Labels
bug
Something isn't working
The value of
--blocked-nets
, which defaults to10.0.0.0/8
, eventually makes it verbatim (after validation) to the--blacklist-ip
k6 flag:synthetic-monitoring-agent/internal/k6runner/k6runner.go
Line 455 in e6f4762
However, specifying an empty value will not clear the in-script default value we set for multihttp checks:
synthetic-monitoring-agent/internal/prober/multihttp/script.tmpl
Line 43 in e6f4762
Fixing this proper will require refactoring the script generation code so it can get not only check settings, but also settings local to the probe. This work was started in #732, but still requires more effort.
Workaround
A workaround for this issue is to specify a non-empty, no-op CIDR that would filter no (real) addresses, e.g.
--blocked-nets=0.0.0.0/32
. This will override the default value for all checks, including multihttp.The text was updated successfully, but these errors were encountered: