Repository navigation
Conversation
Collaborator
|
Review requested:
|
araujogui
force-pushed
the
net-permission-resource
branch
from
December 3, 2026 19:43
c5bf9d2 to
24df1db
Compare
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #68000 +/- ##
==========================================
- Coverage 92.97% 90.58% -2.40%
==========================================
Files 432 802 +370
Lines 201316 287036 +85720
Branches 30713 55429 +24716
==========================================
+ Hits 187172 260009 +72837
- Misses 13817 17127 +3310
- Partials 327 9900 +9573
🚀 New features to boost your workflow:
|
Network permission checks reported the denied resource inconsistently: some passed only the IP address, some the address and port, and several passed nothing at all. Report `ip:port` (`[ip]:port` for IPv6) from every check that operates on an IP address, so that the `resource` of `ERR_ACCESS_DENIED` errors and of `node:permission-model:net` diagnostics channel messages identifies the endpoint. The address is formatted from the parsed socket address, so it is reported in its canonical form. An address that cannot be parsed now fails with `EINVAL` before the permission check, instead of with `ERR_ACCESS_DENIED`. Assisted-by: Claude Signed-off-by: Guilherme Araújo <arauujogui@gmail.com>
araujogui
force-pushed
the
net-permission-resource
branch
from
December 3, 2026 23:07
24df1db to
87dd381
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Network permission checks reported the denied resource inconsistently: some passed the IP address, some the address and port, and several passed nothing.
Behaviour changes:
ip:port, or[ip]:portfor IPv6, as theresourceofERR_ACCESS_DENIEDand ofnode:permission-model:netdiagnostics channel messages.0when the OS picks it.EINVALbefore the permission check, instead ofERR_ACCESS_DENIED.This is groundwork for
--allow-nettaking a list of hosts, which needs the endpoint at every check.Refs: #67115