feat(network): expose ACL v2 policies - #40
Merged
Conversation
tianyuzhou95
force-pushed
the
albert/acl-v2
branch
2 times, most recently
from
August 25, 2026 06:28
5fb7235 to
d5663af
Compare
Add backend-neutral Python types for bidirectional IPv4 traffic and DNS policies, plus a creation-time egress allowlist helper. Normalize domains, CIDRs, protocols, ranges, and priorities in the SDK and translate the model to the openYuanRong sandbox backend. Advance YuanRong and sandboxd to the matching ACL v2 implementations and prepare standalone, Helm, and Terraform nodes with the required iptables, ipset, conntrack, bridge-netfilter, or eBPF capabilities. Document runtime semantics, host requirements, and migration constraints, and cover the new public contract with SDK and deployment tests. Signed-off-by: Tianyu Zhou <albert.zty@antgroup.com>
Expose whole-policy replacement on the public Sandbox API and delegate it to the native YuanRong backend. Normalize empty policies to an explicit clear and reject the actor backend instead of silently weakening the request. Advance the pinned YuanRong aggregate revision and update documentation, examples, and unit coverage for replacement, clearing, restart persistence, and backend compatibility. Signed-off-by: Tianyu Zhou <albert.zty@antgroup.com>
Advance the bundled YuanRong revision to include CAS-backed dynamic network policy persistence and shared-client PUT forwarding. This keeps the all-in-one image aligned with the component revisions used by the dynamic ACL end-to-end tests. Signed-off-by: Tianyu Zhou <albert.zty@antgroup.com>
Verify dynamic policy replacement with an HTTPS endpoint that the example already establishes as reachable instead of assuming public TCP DNS access. Also probe the previously denied domain after clearing the policy so the example validates both replacement and removal behavior. Signed-off-by: Tianyu Zhou <albert.zty@antgroup.com>
tianyuzhou95
force-pushed
the
albert/acl-v2
branch
2 times, most recently
from
September 1, 2026 15:17
3a0e1ad to
d5fc936
Compare
Advance the control-plane, RRT, and default sandbox SDK dependency to the 0.10.1rc4 release, including the checksums for its published runtime and core wheel artifacts, so AKernel consumes the merged network ACL support. Keep the deprecated actor-based openyuanrong-sdk backend on the 0.9.9 version used by main and document that it is retained only for compatibility with existing applications. Signed-off-by: Tianyu Zhou <albert.zty@antgroup.com>
tianyuzhou95
force-pushed
the
albert/acl-v2
branch
from
September 1, 2026 15:23
d5fc936 to
35c3661
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.
Summary
NetworkRule,TrafficPolicy,DNSRule, andDNSPolicyvalue types plus an egress allowlist helperranges, priorities, and stateful or stateless enforcement while retaining
the existing block and DNS-deny helpers
and keep the SDK guide, maintained example, and deployment requirements in
sync
all-in-one image
Dependencies
openyuanrong-sandbox==0.10.0The Python CI jobs cannot install the unreleased
openyuanrong-sandboxversion yet. The standalone CI job likewise cannot fetch the pinned sandboxd
commit from the upstream submodule URL until inclusionAI/sandboxd#31 lands.
The coordinated source revisions were tested together as described below.
Testing
make sdk-checkwith the matching YuanRong sandbox SDK: 249 tests, Ruff,and Mypy
make deploy-script-check