Repository navigation
fix(network): refresh expired policy DNS mappings on connect - #5650
Conversation
Signed-off-by: Drew Newberry <[email protected]>
|
Label |
johntmyers
left a comment
There was a problem hiding this comment.
gator-agent
PR Review Status
The code review found no blocking issues. Expired mappings refresh through the trusted resolver and destination-validation path, while process, port, endpoint, and policy-generation checks remain in place. The docs explain refresh behavior and failed-refresh denials.
Blocking findings: None.
Carried findings: None.
Gator metadata
- Validation: Focused network reliability fix implementing accepted issue #4674.
- Docs: Published network-policy and logging pages updated.
- Checks: Branch checks remain pending; Helm lint passed and deployment scanning was not applicable.
- E2E:
test:e2eapplied; current-head Branch E2E Checks attempt 2 running for the standard suite, including the cached-address expiry regression. - Head SHA:
e66f4e3ef69851e0ab0ae4e6860632574e020555 - Base SHA:
624aceea32934f73c350ede3f2185880816a030c - Merge base SHA:
2e5589b2180dd432320adda124c4f7bcede119b5 - Patch ID:
5893900c887c164a917e8afbb8d4fbcd9a9ef6b2 - Gator payload:
13 - Review mode:
initial - Previous reviewed SHA: none
- Review budget exhausted: no
- Maintainer decision required: no
- Next state:
gator:watch-pipeline
TaylorMutch
left a comment
There was a problem hiding this comment.
Reviewed e66f4e3 locally. I found two reproducible correctness issues, detailed inline.
Validation: 71 existing policy-DNS tests passed. Two additional focused regressions reproduced the findings below, including the dispatch case with real TTL expiry. The tests ran in a temporary copy of this exact commit.
Signed-off-by: Drew Newberry <[email protected]>
johntmyers
left a comment
There was a problem hiding this comment.
gator-agent
PR Review Status
The follow-up review found no new blocking issues. Thanks @TaylorMutch: I checked both reported correctness problems against the new code and regressions. Dispatch now reauthorizes and rebuilds connectors from current pins, and refresh eligibility retains authored ports when the latest DNS answer satisfies only some ports.
@shiju-nv, I also checked your requests for service-owned refresh orchestration, simpler resolver fixtures, and a compact rejection test. Those remain open advisory review topics; this commit retains the existing structure. I have left your threads untouched.
Blocking findings: None.
Carried Gator findings: None.
Required branch checks and the standard E2E suite are running on this head. Gator will monitor their results; maintainer review is still required.
Gator metadata
- Validation: Focused network reliability fix implementing accepted issue #4674.
- Docs: Previously reviewed published network-policy and logging updates remain accurate; delta adds implementation details to the crate README.
- Checks: DCO, Helm Lint, and Trivy Changes passed; Branch Checks pending.
- E2E:
test:e2eretained; current-head Branch E2E Checks run 44156946578 is queued with standard-suite jobs running. No rerun needed for this head. - Head SHA:
97e8a42fc96be51179c31eb19ed2691bc2cd2100 - Base SHA:
624aceea32934f73c350ede3f2185880816a030c - Merge base SHA:
2e5589b2180dd432320adda124c4f7bcede119b5 - Patch ID:
b10279719bf29e9a09ebfad4b49dfd2b9da29bff - Gator payload:
13 - Review mode:
follow_up - Previous reviewed SHA:
e66f4e3ef69851e0ab0ae4e6860632574e020555 - Review budget exhausted: no
- Maintainer decision required: no convergence decision required; open advisory human threads remain for normal review.
- Next state:
gator:watch-pipeline
TaylorMutch
left a comment
There was a problem hiding this comment.
Rechecked 97e8a42. Both previously reported correctness issues are fixed: dispatch reauthorizes and rebuilds connectors from current DNS pins, and refresh eligibility preserves authored ports independently of the latest usable contracts. No new correctness findings. Validation: 72 policy-DNS tests and the real-TCP dispatch regression passed locally; Branch Checks and E2E are green. The open architecture and test-simplification suggestions are advisory.
Signed-off-by: Drew Newberry <[email protected]>
johntmyers
left a comment
There was a problem hiding this comment.
gator-agent
PR Review Status
The follow-up review found no new blocking issues. Thanks @shiju-nv: I checked the service-owned lookup_for_connect, synchronous store, simpler resolver fixtures, and compact rejection test against your requests. The refactor addresses them while preserving fresh-pin dispatch and authored-port refresh eligibility from the fixes @TaylorMutch verified.
Blocking findings: None.
Carried Gator findings: None.
Branch Checks and the standard E2E suite are running on this head. Maintainer approval is required again after the new commit; Gator will check the pipeline results next cycle.
Gator metadata
- Validation: Focused network reliability fix implementing accepted issue #4674.
- Docs: Previously reviewed published network-policy and logging updates remain accurate; crate README reflects service-owned refresh.
- Checks: DCO, Helm Lint, Trivy Changes, and issue acceptance passed. Branch Checks pending. Previous approval dismissed; current review decision is REVIEW_REQUIRED.
- E2E:
test:e2eretained; current-head Branch E2E Checks run 44207058317 is queued with build jobs running. No rerun or mirror refresh required for this head. - Head SHA:
3b684da721e3388f4158becd639af31cb46bf0b6 - Base SHA:
624aceea32934f73c350ede3f2185880816a030c - Merge base SHA:
2e5589b2180dd432320adda124c4f7bcede119b5 - Patch ID:
4467d0d025f72556a9610303e080a1e2cf6863e7 - Gator payload:
13 - Review mode:
follow_up - Previous reviewed SHA:
97e8a42fc96be51179c31eb19ed2691bc2cd2100 - Review budget exhausted: no
- Maintainer decision required: no convergence decision required; no open Gator obligations or qualifying scope growth.
- Next state:
gator:watch-pipeline
Signed-off-by: Drew Newberry <[email protected]>
johntmyers
left a comment
There was a problem hiding this comment.
gator-agent
PR Review Status
The Critical-only follow-up review found no new blocking issues in the test consolidation. Production code is unchanged. @shiju-nv, I checked the compact refresh-rejection coverage against your earlier request: the combined test still checks failed refresh, backoff, recovery, and reuse. Prior review dispositions remain intact.
Blocking findings: None.
Carried Gator findings: None.
Branch Checks and the standard E2E suite are running on this head. Maintainer review remains required; Gator will inspect the check results next cycle.
Gator metadata
- Validation: Focused networking reliability fix implementing accepted issue #4674.
- Docs: Previously reviewed published network-policy and logging updates remain applicable; latest delta only consolidates tests.
- Checks: DCO, issue acceptance, Helm Lint, and Trivy Changes passed. Branch Checks pending.
- E2E:
test:e2eretained; current-head Branch E2E Checks run 44208805557 has queued and running build jobs. The old label-help rerun request applied to an earlier head; no rerun or mirror refresh is needed for this head. - Head SHA:
94f67ac99e5a03c3ffda2fef18076f4843125651 - Base SHA:
624aceea32934f73c350ede3f2185880816a030c - Merge base SHA:
2e5589b2180dd432320adda124c4f7bcede119b5 - Patch ID:
f54d2a98c9b17d5e682d9ae6946309b8a263fec4 - Gator payload:
13 - Review mode:
critical_only - Previous reviewed SHA:
3b684da721e3388f4158becd639af31cb46bf0b6 - Review budget exhausted: yes
- Maintainer decision required: no; no unresolved Gator obligations, qualifying scope growth, or proposed Warning requiring authorization.
- Next state:
gator:watch-pipeline
Monitoring CompleteMonitoring is complete because this PR has merged. Final status: Gator had reached merge-ready, with no blocking findings remaining in its latest review. Existing review history is preserved. I removed the active Gator metadata
|
) Adds a **Last verified** column to every table in [Current Limits](https://github.com/NVIDIA/NemoClaw/blob/v1/docs/resources/limits.md), so readers can see which `v1` commit each limit was last checked against and what was checked, and rechecks every row against [`cb8ef25`](https://github.com/NVIDIA/NemoClaw/tree/cb8ef25252ffffbca051787adb4711c96ebfcf28) and its pins: OpenShell 0.1.9 (`ce58cf8e`), NeMo Fabric `135147a0`, Hermes Agent `b200f5bc`, and OpenClaw 2026.9.34. ## Problem The limits page didn't say when a row was last true, or against which source tree. Pins move often (OpenShell 0.1.9 and Fabric `135147a0` landed on 2026-11-17), so a reader couldn't tell a current limit from a stale one. Two rows also linked issues that don't track them: the policy DNS row linked an OpenShell issue closed today, and the StorageClass row linked an issue about a different change. ## Change - Every table gets a **Last verified** column. Each cell links the `v1` commit the row was checked against, then keys for what was checked, such as ``[`cb8ef25`](…): code, issue``. All rows checked here use `cb8ef25`, the branch's merge base with `v1`. A short legend under the intro explains the column and defines the keys: **code** (NemoClaw's source, tests and E2E cases), **OpenShell**, **Fabric**, **Hermes** and **OpenClaw** (the source or image that commit pins in its `versions.json` and `image/fabric/Dockerfile`), **issue** (the linked issues are open and no fix has landed in those pins), and **docs** (the linked page). A row marked **not verified** names no commit. - The source uses one reference-style link definition at the end of the page; the docs build turns it into an inline link in each cell. - Each row was checked against NemoClaw's code and tests, the pinned upstream source (OpenShell's chart and server, Fabric's adapters and runtime handle, Hermes's endpoint and context checks), and the linked issues' state. ### Rows removed None. Every row still holds on `v1` with today's pins. ### Rows narrowed or reworded - **Podman beyond a local rootless Linux gateway**: "managed inference" now reads "model services on the Podman host", and the row says a Podman gateway can use one on a Docker host through [SSH placement](https://github.com/NVIDIA/NemoClaw/blob/v1/docs/agents-inference/remote-service.md). The vLLM and Ollama services take SSH Docker placement with a Podman gateway, as [`usage.md`](https://github.com/NVIDIA/NemoClaw/blob/v1/docs/build-deploy/usage.md#use-a-managed-podman-gateway) already says. - **LoadBalancer Service**: the row now says `expose.service` takes only `NodePort`, which is why a LoadBalancer can't be selected; the chart's reasons are unchanged. - **`gateway.kubernetes.expose` on a cluster other than kind**: now says this includes any OpenShift Route. #14522 added `expose.route`, and no Route has run live. - **AMD64 Nemotron image and GPU inference**: now names and links [the Nemotron example for an AMD64 GPU host](https://github.com/NVIDIA/NemoClaw/blob/v1/docs/agents-inference/models.md#configure-nemotron-on-an-amd64-gpu-host). - **Managed MCP servers**: now says NemoClaw passes the agent's `mcp` section to Fabric but doesn't run the servers or grant them network access or credentials. - **OpenClaw with an `anthropic` provider**: drops "OpenShell 0.1.8 and later", since the pin is 0.1.9, which still refuses the bearer header. ### Links fixed - **Policy DNS expiry**: ai-openshell/openshell#4674 closed on 2026-11-18 when ai-openshell/openshell#5650 merged, after 0.1.9; the fix isn't in the pinned `ce58cf8e`. The row stays, and its issue cell now says it's fixed after OpenShell 0.1.9 and links the fix. - **Gateway StorageClass**: #13829 tracks the tagged `target` change; its review defers chart-only settings such as `server.dataStorageClass` to an issue that hasn't been filed. The cell now reads "No open issue". - Kept: "Not planned" links to #14307 and #12651, which record those decisions, and the reference to #13546 as the record of the in-cluster vLLM run. ### Rows marked not verified - **The headless OpenClaw request hasn't been rehearsed as written**: checking it needs the [procedure](https://github.com/NVIDIA/NemoClaw/blob/v1/docs/agents-inference/agents.md#run-one-headless-openclaw-request) run as written against the applied first-deployment example, with an OpenClaw image and a model. ## Beyond CI No live run: each cell names the source or issue state it was checked against. --------- Signed-off-by: Carlos Villela <[email protected]>
) Moves NemoClaw's OpenShell pins from v0.1.9 to v0.1.10, whose project moved to `ai-openshell/openshell` and publishes its images and chart on Quay, upgrades the bundle's OpenTofu to 1.13.10, and updates Rust crates within the workspace's constraints. A managed `kubernetes` or `openshift` gateway now reports no sandbox service URLs, because the v0.1.10 chart turns off gateway service routing. ## Problem NemoClaw pins OpenShell v0.1.9 (`ce58cf8`). v0.1.10 (`152c59d`) is the latest release, and it changes what NemoClaw pins and how a Kubernetes gateway behaves: - The repository moved from `NVIDIA/OpenShell` to `ai-openshell/openshell`. The gateway, supervisor and sandbox images and the chart publish to `quay.io/ai-openshell`, the chart is renamed `oci://quay.io/ai-openshell/charts/openshell`, and GHCR has no 0.1.10 tags. - The chart sets `enable_gateway_service_routing: false` (ai-openshell/openshell#5672), so a Helm gateway publishes no gateway-routed service URLs. - `openshell-policy`'s `PolicyViolation` gained five Cedar and endpoint-settings variants, so NemoClaw's exhaustive description of OpenShell's violations no longer compiles. - OpenShell now refreshes an expired policy DNS mapping before connecting (ai-openshell/openshell#5650), which removes the limit that an OpenClaw agent's model request failed after a DNS answer's TTL. OpenTofu 1.13.10 is a patch release built with Go 1.27.4 for GO-2026-6859. ## Change - **Pins:** the Cargo source and revision of `openshell-core`, `openshell-sdk` and `openshell-policy`, and of the vendored SDK's `openshell-core` and `openshell-crypto`; in `versions.json`, the version, revision, Linux CLI archives, the Quay gateway, supervisor and sandbox images, and the renamed chart; the managed-gateway reference, a contract test and the gateway contract module, which carry the image digests. The CLI checksums come from the release's `openshell-checksums-sha256.txt`, and the image and chart digests from Quay's `0.1.10` tags; GHCR's `0.1.9` tags match the previous pins. The OpenTofu checksums come from its GPG-signed `SHA256SUMS`. - **Vendored SDK:** upstream changed `src/client.rs`, `src/types.rs` (the new `application_service_urls` and `gateway_service_urls`) and `tests/client_mock.rs`, copied unchanged. The SDK manifest still enables `openshell-core`'s default features, including telemetry, so the manifest patch stays; `NOTICE.md` records the new source and revision. The SDK integration limits in `internal-docs/design/architecture.md` still hold at v0.1.10 and cite that revision. - **Policy violations:** NemoClaw describes the five new violations. NemoClaw writes no Cedar policy or `endpoint_settings`, so none of them arises from a NemoClaw document. - **Service URLs on Kubernetes:** NemoClaw leaves the chart's default. The Kubernetes guide says a managed gateway reports no service URLs and how to turn routing on with `enable_gateway_service_routing: true` in `spec.gateway.config`, which passes through to the chart; the external-ingress guidance and the limit for #14316 say the same. The fake gateway in the test fixtures reports each URL as gateway-routed, as a Docker gateway does. - **Limits:** the DNS TTL limit is removed. - **Docs:** OpenShell links move to `ai-openshell/openshell` at v0.1.10; each path and anchor exists there, and the three configuration line ranges in the sandbox network guide move to the same text. - **Rust crates:** `cargo update`. `url` 2.5.9 now percent-encodes `^` in a path, as WHATWG's URL standard does, so an MCP endpoint whose path holds `^` passed NemoClaw's check; the existing `mcp_endpoints_reject_paths_openshell_rewrites_before_matching` test failed, and NemoClaw now checks the URL as written. - **Release notes:** the v0.1.10 changes users see, and the service URL change as a breaking change. ## OpenShell 0.1.10 Changes Checked | Change | Decision | |---|---| | Registry and chart move, repository transfer (ai-openshell/openshell#5822, ai-openshell/openshell#5823, ai-openshell/openshell#5833) | Followed in every pin and link. | | Helm service routing off by default (ai-openshell/openshell#5672) | Kept OpenShell's default and documented the setting; NemoClaw doesn't override chart defaults it doesn't own. | | Application origins, `domain` → `base_url` (ai-openshell/openshell#4956) | No change: NemoClaw sets no app listener, and apply reports OpenShell's preferred `url`, which stays the gateway URL when no origin is configured. | | TypeScript SDK move (ai-openshell/openshell#5685) | No change: NemoClaw uses the Rust SDK. | | Kubernetes 1.33 minimum tested (ai-openshell/openshell#5646) | No change: CI's kind node runs 1.37, and OpenShell still tests Agent Sandbox 1.0.3. | | Policy DNS TTL refresh (ai-openshell/openshell#5650) | Removed the limit; NemoClaw had no workaround. | | Sandbox restart `ContainerExited`, same-name recreate on Kubernetes, multi-replica fixes, IPv6, process limits and signals, idle-connection and 502 fixes | No NemoClaw code works around them; listed in the release notes. | | Docker persistent `/sandbox` and image updates of a stopped sandbox (ai-openshell/openshell#5617) | Not adopted here: it needs `enable_sandbox_updates` and `persist_workspace`, applies only to new workspaces, and requires a numeric `USER` in the image, so it is a feature change of its own. | | Workspace secrets, GitHub App tokens, SPIFFE broker, OAuth `client_secret_basic` and `resource`, `/**` path templates, OTLP metrics, audit records, IPv6 listeners, supervisor pool sizing | Gateway or provider settings that `spec.gateway.config` or operator-managed providers can set; NemoClaw adds no wrapper. | | `openshell policy lint` (ai-openshell/openshell#5358) | No change: NemoClaw validates policies in-process with `openshell-policy`. | | Cedar policies | Development builds only; no change. | | OpenShift UID and `fsGroup` (ai-openshell/openshell#5483) | Still open, so the `openshift` target keeps nulling the chart's IDs. | | Gateway restart leaves sandboxes in `Error` (ai-openshell/openshell#4910) | Still open; the limit stays. | ## Other Pins - NeMo Fabric is already at its latest release, v0.7.0, and its OpenClaw adapter supports only OpenClaw 2026.9.34 and its Hermes adapter Hermes v0.22.7, so the harness images stay; Fabric owns the harness versions its adapters support. - The Docker and Helm providers, kind, nextest, Protocol Buffers, Rust and vLLM are at their latest releases. - Container base images, Bun, uv and Ollama move in a stacked pull request, which needs image builds of its own. - llama.cpp's server image and the NIM image stay: each update needs its own notices and a GPU run.
Summary
Refresh expired policy DNS mappings when a new transparent connection uses a cached synthetic address. Clients can reconnect after the resolver TTL without performing another DNS lookup, while resolver failures and rejected destinations still fail closed.
Related Issue
Closes #4674
Changes
PolicyDnsService::lookup_for_connect, which returns the resulting mapping and owns refresh coordination; the store stays synchronous.Release Notes
Clients that cache DNS answers can open new connections after a synthetic mapping expires. OpenShell refreshes and validates the destination before connecting.
Testing
mise run docspassed.local_container_native_tcp_uses_policy_dns_and_fails_closedpassed with freshly built supervisor and sandbox images, including a connection to a cached numeric address after 31 seconds.Checklist