GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||
GeezerVison is showing github.com — net: fail closed when BlockList peer address is unavailable by mcollina · Pull Request #66640 · nodejs/node Conversation
Member
When a net.Server is configured with a Fail closed: when a BlockList is configured but the peer address cannot be determined, close the connection instead of bypassing the check. A connection whose peer address cannot be obtained cannot be proven to be allowed, so it must be refused. Ref: #66422 Assisted-by: pi
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Collaborator
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
mcollina
force-pushed
the
net-blocklist-fail-closed
branch
from
fce951a to
06c4567
Compare
|
There was an error while loading. Please reload this page.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@ ## main #66640 +/- ## ========================================== + Coverage 90.35% 90.47% +0.11% ========================================== Files 790 791 +1 Lines 273814 277248 +3434 Branches 52382 53311 +929 ========================================== + Hits 247409 250835 +3426 + Misses 16906 16813 -93 - Partials 9499 9600 +101
🚀 New features to boost your workflow:
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
When a net.Server is configured with a `blockList`, the peer address is looked up with getpeername() and checked before the connection is accepted. If the peer address cannot be obtained (for example, the connection was reset before getpeername(), causing uv_tcp_getpeername() to return ENOTCONN), the access-control check was silently skipped and the connection proceeded, allowing a blocked peer to reach the application's 'connection' handler (fail open). Fail closed: when a BlockList is configured but the peer address cannot be determined, close the connection instead of bypassing the check. A connection whose peer address cannot be obtained cannot be proven to be allowed, so it must be refused. Ref: nodejs#66422 Ref: libuv/libuv#5337 Signed-off-by: Matteo Collina <[email protected]> Assisted-by: pi
06c4567 to
2841c91
Compare
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Failed to resume CI
Full Auto Start CI output |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Landed in 269cab6 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
When a net.Server is configured with a `blockList`, the peer address is looked up with getpeername() and checked before the connection is accepted. If the peer address cannot be obtained (for example, the connection was reset before getpeername(), causing uv_tcp_getpeername() to return ENOTCONN), the access-control check was silently skipped and the connection proceeded, allowing a blocked peer to reach the application's 'connection' handler (fail open). Fail closed: when a BlockList is configured but the peer address cannot be determined, close the connection instead of bypassing the check. A connection whose peer address cannot be obtained cannot be proven to be allowed, so it must be refused. Ref: #66422 Ref: libuv/libuv#5337 Signed-off-by: Matteo Collina <[email protected]> Assisted-by: pi PR-URL: #66640 Refs: #66422 Refs: libuv/libuv#5337 Reviewed-By: Tim Perry <[email protected]>
When a net.Server is configured with a `blockList`, the peer address is looked up with getpeername() and checked before the connection is accepted. If the peer address cannot be obtained (for example, the connection was reset before getpeername(), causing uv_tcp_getpeername() to return ENOTCONN), the access-control check was silently skipped and the connection proceeded, allowing a blocked peer to reach the application's 'connection' handler (fail open). Fail closed: when a BlockList is configured but the peer address cannot be determined, close the connection instead of bypassing the check. A connection whose peer address cannot be obtained cannot be proven to be allowed, so it must be refused. Ref: #66422 Ref: libuv/libuv#5337 Signed-off-by: Matteo Collina <[email protected]> Assisted-by: pi PR-URL: #66640 Refs: #66422 Refs: libuv/libuv#5337 Reviewed-By: Tim Perry <[email protected]>
When a net.Server is configured with a `blockList`, the peer address is looked up with getpeername() and checked before the connection is accepted. If the peer address cannot be obtained (for example, the connection was reset before getpeername(), causing uv_tcp_getpeername() to return ENOTCONN), the access-control check was silently skipped and the connection proceeded, allowing a blocked peer to reach the application's 'connection' handler (fail open). Fail closed: when a BlockList is configured but the peer address cannot be determined, close the connection instead of bypassing the check. A connection whose peer address cannot be obtained cannot be proven to be allowed, so it must be refused. Ref: nodejs#66422 Ref: libuv/libuv#5337 Signed-off-by: Matteo Collina <[email protected]> Assisted-by: pi PR-URL: nodejs#66640 Refs: nodejs#66422 Refs: libuv/libuv#5337 Reviewed-By: Tim Perry <[email protected]>
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.