Skip to content

Python: Improve "bind all interfaces" query#21590

Draft
tausbn wants to merge 5 commits intomainfrom
tausbn/python-improve-bind-all-interfaces-query
Draft

Python: Improve "bind all interfaces" query#21590
tausbn wants to merge 5 commits intomainfrom
tausbn/python-improve-bind-all-interfaces-query

Conversation

@tausbn
Copy link
Contributor

@tausbn tausbn commented Mar 26, 2026

Addresses the false negatives reported in #21582.

Also converts the tests for that query to use inline expectations.

tausbn added 2 commits March 26, 2026 14:56
Adds test cases from #21582 demonstrating false negatives:
- Address stored in class attribute (`self.bind_addr`)
- `os.environ.get` with insecure default value
- `gevent.socket` (alternative socket module)
tausbn added 2 commits March 26, 2026 15:35
This takes care of most of the false negatives from the preceding
commit.

Additionally, we add models for some known wrappers of `socket.socket`
from the `gevent` and `eventlet` packages.
@tausbn tausbn force-pushed the tausbn/python-improve-bind-all-interfaces-query branch from 51859b9 to c0ce669 Compare March 26, 2026 15:36
Now that we're using global data-flow, we might as well make use of the
fact that we know where the source is.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant