Repository navigation
Conversation
Keep DNS-learned TCP grants and reconnect deadlines scoped to the destination address and port. Retain established-only exceptions where withdrawing one owner must not disconnect a still-admitted sibling. Exercise the manager and packet boundary before exposing the new rule shape through the public API or SDKs. Document the proposed Classic-only scope in OSEP-0038. Refs opensandbox-group#3123 Signed-off-by: cwj2001 <2965241316@qq.com>
3 tasks
This branch has not been deployed
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.
Summary
Refs #3123 (M1 of 3). A portless domain allow does not restrict the destination port on the resolved address. This PR prepares the direct Classic
dns+nftbackend to enforce domainallowrules with TCP ports underdefaultAction: deny, including when addresses change or names share an IP. It adds the policy interpretation, nftables enforcement and OSEP-0038.No public rule shape is enabled in this PR. Sidecar startup, public policy writes, the SDKs and sandbox creation retain their existing behavior. M2 will enable the sidecar API and SDKs together; M3 will enable lifecycle creation.
Testing
efea0427a2in rootless Docker (M1 only, not hosted CI). The unmodified Python SDK created a sandbox with existing rules (HTTP 202). On IPv4 and IPv6, only TCP 443 was reachable before DNS resolution; the portless domain grant allowed 80, 443 and 8443, and deleting it left only 443 reachable on the cached addresses. Of 36 fresh TCP connections, 18 echoed and 18 were blocked, confirmed by SYN counters before and after filtering. Domain-plus-port create returned 422 without provisioning; sidecar PATCH and POST returned 400 without changing the policy or traffic verdicts.Breaking Changes
Checklist