-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
use of K6_BLACKLIST_IPS causes nil pointer dereference #1531
Comments
I actually found this issue while I was working on adding the |
Thanks for reporting this, though I think this is a duplicate of #1257? |
Yes it is! Sorry about that, my mistake. |
No worries 😄 Regarding:
Absolutely no objections on my part, just consider that you might be biting off more than you realize. If #1257 (comment) is accurate, and I think it is, then solving this issue might require replacing the envconfig dependency we use. We want to do it for other reasons besides this one, IIRC this is the third major issue we've had with it, other 2 issues are described in #671... So, it seems to just be a dependency constantly causing issues that we can't really work around 😞 |
100% yes. Shortly after sending that, I looked into the issues that have stemmed from this dep and there's ...a lot. I think for the time being these bugs will be contingent on kelseyhightower/envconfig/pull/158, but I also noticed there's comments looking to refactor the whole configuration process. Definitely a big undertaking that I don't think I'll be diving into quite yet. In any case, thanks! |
Yeah, we have a lot of things to refactor in the k6 configuration... 😞 #883 is the epic issue we collect and connect individual issues, if you want an overview of the issues... |
I'll take a peek at it when I get a minute tomorrow, thanks for being so responsive. Take it easy 👍 |
Environment
Expected Behavior
Use of the
K6_BLACKLIST_IPS
envconfig variable should blacklist the provided IPs.Actual Behavior
A nil pointer is dereferenced in
lib.(*IPNet).UnmarshalText
. The program crashes.Steps to Reproduce the Problem
K6_BLACKLIST_IPS
environment variable.K6_BLACKLIST_IPS='some.cidr.str.i.ng/0' k6 run path/to/script.js
export K6_BLACKLIST_IPS='some.cidr.str.i.ng/0'
, then runk6 run path/to/script.js
.Extra Information
Here is a full dump of the test I used to reproduce:
The text was updated successfully, but these errors were encountered: