Skip to content

feat(linux-sandbox): add policy-checked DNS relay - #31643

Closed
viyatb-oai wants to merge 1 commit into
codex/viyatb/linux-managed-dns-policyfrom
codex/viyatb/linux-managed-dns-relay
Closed

feat(linux-sandbox): add policy-checked DNS relay#31643
viyatb-oai wants to merge 1 commit into
codex/viyatb/linux-managed-dns-policyfrom
codex/viyatb/linux-managed-dns-relay

Conversation

@viyatb-oai

Copy link
Copy Markdown
Contributor

Summary

  • compile the managed allow and deny lists into the same normalized domain matcher used by the proxy
  • resolve only permitted A, AAAA, and CNAME queries through the host resolver without forwarding sandbox DNS packets
  • refuse malformed, multi-question, unsupported, and PTR queries, and emit canonical names only when they are also permitted
  • relay UDP and TCP DNS framing over inherited Unix streams and exit when those channels close

Testing

  • cargo test --offline in an isolated DNS module harness (3 passed)
  • just fix -p codex-network-proxy -p codex-linux-sandbox

Stack: 2 of 5, on #31642.

Co-authored-by: Codex noreply@openai.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant