-
-
Notifications
You must be signed in to change notification settings - Fork 402
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
url: improve private IP protection #2285
Conversation
|
9ca5108
to
a85541e
Compare
With #2282 merged, presumably this can proceed toward Ready status after a rebase. Any idea why this affects VCR tests? Somehow it is causing the example request for google.com to appear as a direct IP instead. |
If the test checks for the address used in the requests.get call, it'll be getting something different from what it used to in some cases. I figured I'd look into that after seeing if I'm even continuing with this redirect handling strategy because of the above questions. |
Assuming this PR graduates from draft status, please remove |
f103f82
to
2743253
Compare
Rebased, but still looking for feedback on the above questions. |
Yes. With your work in particular, Sopel tries a lot of thing to mitigate the attack surface, which is good enough in my opinion. If someone has a server where you can mess it up with a GET request, or that leaks sensible data if you access a URL without authentication, then it's bound to happen, Sopel or not. And you are doing a pretty good job at trying to prevent that, so kuddo! |
@half-duplex Did you still want to get this in? Haven't seen any activity for a while. |
Revisited this a bit today on IRC, especially as regards the unresolved TOCTOU problem:
|
For when I look at this next: requests/toolbelt#293 was merged |
5e56e07
to
a5c9234
Compare
a5c9234
to
acff99a
Compare
Since @half-duplex reminded us this exists during another (unrelated) IRC discussion today, I came by to give it a look. Nothing jumps out at me, but I will defer final approval to @Exirel as the original reviewer who requested changes. I'm excited at getting rid of |
Even more so now that @Exirel when you've some time to look at this again, it'd be much appreciated 😸 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good riddance @ dnspython!
Description
Atop #2282
Fixes #2284
Draft implementation should resolve #2348.
Checklist
make qa
(runsmake quality
andmake test
)