bug(podman): workload gets no /etc/resolv.conf under network:none, unlike Docker's nameserver 127.0.0.53
@politerealism đang làm issue này rồi.
Từ ngày 23/9/2026.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
User Story
As an operator running sandboxes via the Podman driver, I want DNS resolution to work the same way it does with Docker, so sandboxed processes can resolve policy-permitted hostnames without a manual workaround.
Problem Statement
Podman workload containers run with NetworkMode: none (per RFC 0012's isolation model), and Podman does not manage DNS for network-less containers at all — /etc/resolv.conf is left exactly as whatever the base image happens to ship. The Docker driver, by contrast, explicitly configures nameserver 127.0.0.53 in the workload's /etc/resolv.conf, which the sandbox's DNS mediation (network_broker.rs's classify_send) specifically relays only when the destination matches that exact relay address. Podman workloads get no equivalent configuration.
Impact / Why This Matters
Confirmed independently twice:
- During investigation of #3396, DNS resolution silently failed for a Podman-driven sandbox using
ghcr.io/astral-sh/uv:python3.12-bookworm-slim(nosystemd-resolvedconvention baked in) — required building a custom local image with/etc/resolv.confhand-baked viaCOPYto get DNS interception working at all. - PR #3642 hit the identical gap independently: "The Podman workload runs with
NetworkMode: noneand gets no/etc/resolv.conf, while the Docker driver setsnameserver 127.0.0.53. I wrote that line into the workload's/etc/resolv.confby hand."
Any real-world Podman deployment using a base image that doesn't already happen to ship the 127.0.0.53 convention will silently fail DNS resolution for every sandboxed process — including for hostnames the policy explicitly allows — with a generic DNS lookup error rather than any actionable diagnostic pointing at the real cause.
Acceptance Criteria
- The Podman driver explicitly writes or mounts
/etc/resolv.conf(pointing at the sandbox's internal DNS relay address) into the workload container at creation time, matching Docker's behavior, regardless of what the base image ships - This does not depend on Podman's own network-mode-specific DNS management, since
network: noneskips that entirely - Behavior is consistent across rootful and rootless Podman
- A regression test covers DNS resolution working correctly from a Podman-driven sandbox using a base image with no pre-existing DNS relay convention
Reproduction Steps
- Create a Podman-driven sandbox from an image with no
nameserver 127.0.0.53baked into/etc/resolv.conf(e.g.ghcr.io/astral-sh/uv:python3.12-bookworm-slim). - Apply a policy allowing a specific hostname (
openshell policy update --wait --binary <bin> --add-endpoint <host>:443:read-only <sandbox>). - Attempt to resolve that hostname inside the sandbox (
getent hosts <host>). - Resolution fails with a DNS error, even though the host is explicitly policy-permitted.
Environment
- OpenShell current
main(post RFC 0012, post PR #3642) - Compute driver: Podman (rootful and rootless)
- OS: Linux
Related: #3396, PR #3642 (follow-ups section)
- Ngôn ngữ chính
- Rust
- Star
- 8.7k
- Fork
- 1.3k
- Merge trung bình
- 2 ngày 6 giờ
- Pull request đã merge (30 ngày)
- 297
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của NVIDIA/OpenShell
-
area:docs
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
-
state:triage-needed
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
-
area:cli state:validated
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
-
state:triage-needed
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
-
area:build spike state:review-ready state:stale
Độ khó 2/5 Nửa ngày Mức phù hợp với người mới 68/100
Tất cả issue của NVIDIA/OpenShell
Issue tương tự
-
bug github_actions
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
registrystack/registry-stack#1393 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
longbridge/gpui-kit#3223 ·
-
bug engine
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
rocky-data/rocky#2181 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
oasisprotocol/oasis-sdk#2523 ·
-
[indexer] [QA] Add a focused test for the new NonRetryableError / assertSocketAlive() behavior. Đang mởbot:ai-assisted component:indexer QA-roadmap status:untriaged
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
midnightntwrk/midnight-indexer#1557 ·