-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Add IPv6 rule generation support #2945
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
base: master
Are you sure you want to change the base?
Conversation
|
Thank you for this Gavin @Pandapip1. Why is there so much force-pushing going on in this PR? I can't seem to follow this at all. What's going on here? Why is github-advanced-security having conniptions? ¯_(ツ)_/¯ |
|
Hey @Pandapip1 and thank you for taking the time. Please do not take the following comment too personally. It's just my 2¢ on my first rough and quick skim. I may review a bit deeper later when I have more time ... I have the feeling a lot of these changes are overly optimistic. Some of them don’t seem to take into account that humans write and maintain these sources. For example — there’s a reason why this section exists. Another thing: this PR feels like it lacks some real-world background. Take this function: It "forgets" that in the real world, underscores ( Some threats use that "trick" to bypass exactly this kind of validation and get whitelisted or ignored. Domain validation is a weird world — a niche that demands real-world experience. And I know what I’m talking about… I would never recommend going down the domain-validation rabbit hole in a project this large and impactful with such a minimalistic function that misses real-world threats. Let’s leave that responsibility to upstream sources - they know better anyway. Again: Just my 2¢ on my first rough and quick skim. |
I try to commit often, and then I
There was some file-related stuff I messed up, thought I fixed, and had to re-fix (that was at least two of the force-pushes). I ended up switching to the
That wasn't clear from the comments. I'm happy to preserve the existing behavior though (it can definitely still be cleaned up significantly).
Yea. When I'm used to working with something unfamiliar to me, I usually go straight for the docs (in this instance, that would be the RFC). I thought I had a good sense of what the code was trying to do and what made a valid domain--I wish this were documented better! It wasn't so much forgetting as never really knowing that in the first place. I looked to see if python had a built-in DNS parsing library like it did for IPs (it doesn't).
This is outside of the scope of this PR, but @StevenBlack would you accept me adding this as a dependency in a follow-up PR to use this for validation? This looks like pretty much exactly what the project needs, and means that you aren't maintaining a homegrown validator. Anyway, I'll continue working on this. I'll continue to do force pushes to keep a clean git history (I generally try to make every commit implement its change and be fully functional, so that e.g. |
Adds support for passing multiple IPs via
--ip, adds::as a default IP that's used, and adds prompts that ask whether to add v4 or v6 rules.