Skip to content

feat(network): expose ACL v2 policies - #40

Open
tianyuzhou95 wants to merge 2 commits into
inclusionAI:mainfrom
tianyuzhou95:albert/acl-v2
Open

feat(network): expose ACL v2 policies#40
tianyuzhou95 wants to merge 2 commits into
inclusionAI:mainfrom
tianyuzhou95:albert/acl-v2

Conversation

@tianyuzhou95

@tianyuzhou95 tianyuzhou95 commented Aug 25, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • expose creation-time ACL v2 through public NetworkRule, TrafficPolicy,
    DNSRule, and DNSPolicy value types plus an egress allowlist helper
  • support independent ingress and egress defaults, CIDR/domain peers, port
    ranges, priorities, and stateful or stateless enforcement while retaining
    the existing block and DNS-deny helpers
  • translate the backend-neutral policy into both supported YuanRong backends
    and keep the SDK guide, maintained example, and deployment requirements in
    sync
  • pin the coordinated YuanRong and sandboxd revisions used by the bundled
    all-in-one image

Dependencies

The Python CI jobs cannot install the unreleased openyuanrong-sandbox
version 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-check with the matching YuanRong sandbox SDK: 249 tests, Ruff,
    and Mypy
  • make deploy-script-check
  • all-in-one image build
  • standalone integration on runsc, Kata, and Firecracker: 5/5 each
  • real network-policy E2E with both iptables and bpfnat backends

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>
Point the bundled sandboxd submodule at the ACL v2 commit rebased onto
the current sandboxd main branch. This keeps the AKernel integration
branch consumable after the sandboxd history rewrite while retaining
the upstream checkpoint and restore changes and its runtime CI fix.

Signed-off-by: Tianyu Zhou <albert.zty@antgroup.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant