Skip to content

[docs] network-doctor: add NET-005 published host-service DNAT finding - #11397

Merged
lpcox merged 2 commits into
mainfrom
docs/network-doctor-net-005-c48886ed18726b69
Nov 10, 2026
Merged

lpcox merged 2 commits into
mainfrom
docs/network-doctor-net-005-c48886ed18726b69

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Caution

Protected files were modified in this change.
This pull request is in request-review mode and requires explicit human scrutiny before merge.

Protected files: README.md

Allow intentional protected-file changes

If this workflow is intended to modify these files, add specific filenames or folder prefixes to safe-outputs.create-pull-request.protected-files.exclude in the workflow Markdown frontmatter. For example, to allow .changeset/*, exclude the folder using .changeset/:

safe-outputs:
  create-pull-request:
    protected-files:
      policy: request-review
      exclude:
        - .changeset/

Keep your existing policy and exclusions. Folder exclusions use path prefixes, not glob patterns, and allow all files beneath that folder, including subfolders. Other protected files still require review. If allowed-files is configured, these paths must also match it. Run gh aw compile after updating the workflow.

Network doctor update

Coverage: the intake window scanned merged PRs from 2026-11-03 to 2026-11-10, with the historical cursor at 2026-11-03 and the floor at 2025-10-16. The first-time queue has 108 candidates and the deferred queue is empty. I triaged all 108 titles. Only #11083 was network-relevant, and I reviewed it in depth. The other 107 were not opened individually. Their titles indicate CI, pricing, model catalogue, NVX, enclave, Cloud Hypervisor, workflow and docs work outside this boundary, so I treated them as unreviewed and none carries a receipt. The backlog is therefore still 107 items. The freshness check reports no overdue network records.

NET-005 (new, boundary: network)

  • Status: fixed. Version scope: introduced and fixed are both unknown. The behavior was observed on Ubuntu 26.04 / Docker 29 runners, and other Docker versions are unverified.
  • Symptom: a port listed in --allow-host-service-ports is still rejected or times out when the service is reached through the host gateway.
  • Expected policy vs defect: rejection of ports that are not configured, or of direct container addresses, is expected policy and not this defect.
  • Root cause: Docker applies DNAT before DOCKER-USER. The gateway-destination ACCEPT rules therefore saw the translated container address and fell through to the default reject.
  • Probe: grep -n -- '--ctorigdst' src/host-iptables-rules.ts. It is read-only, sends no traffic and dumps no environment.
  • Action: use source that includes the conntrack rule scoped to the original gateway IP and allowed port. Keep access limited to the listed ports.
  • Current-main evidence:
    • Code: src/host-iptables-rules.ts (addHostAccessRules, conntrack DNAT / ORIGINAL / --ctorigdst / --ctorigdstport rule).
    • Tests: src/host-iptables-host-access.test.ts covers rule scoping, remapped port ranges, relocated gateway, ordering before REJECT, and no rule when host access is disabled.
  • Source: Fix published host-service access after Docker DNAT and fail connectivity smoke checks #11083, authored by Copilot and merged by @lpcox. The linked issue --allow-host-service-ports connections refused on ubuntu-26.04 runners; smoke tests pass despite failing #11082 was not readable under the integrity filter, so the record cites the PR instead.

Validation

  • npm run diagnostics:validate passes with 23 findings.
  • npm run diagnostics:render regenerated docs/diagnostics/README.md. I left the generated prompt and agent consumers to trusted CI or a reviewer.

Generated by Network Doctor Updater · copilot · auto (Claude Sonnet 5.5) · ~36 AIC · ⌖ ~2 AIC · ⊞ 13.8K · ◷

@github-actions github-actions Bot added ai-generated documentation Improvements or additions to documentation labels Nov 10, 2026
@lpcox
lpcox marked this pull request as ready for review November 10, 2026 05:58
Copilot AI adaptive review requested due to automatic review settings November 10, 2026 05:58

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The change adds NET-005 to the canonical registry without updating the required generated diagnosis consumers, leaving CI freshness checks failing and the finding unavailable to runtime and portable consumers.

1 open issue
What changed in this PR

Adds the NET-005 network diagnosis for host-published service connections rejected after Docker DNAT, documenting the affected conditions, probe, remediation, and provenance.

Changes:

  • Adds the canonical NET-005 finding and updates the diagnostics index and symptom lookup table.
  • Generated workflow and portable-agent diagnosis consumers still require regeneration to synchronize the published finding.
File Description
docs/​diagnostics/​README.md Updates the generated diagnostics index and symptom lookup table to include NET-005.
docs/​diagnostics/​findings/​network/​NET-005.json Defines the NET-005 host-service DNAT diagnosis, including its scope, probe, remediation, references, and review metadata.

Review effort: Lite (auto)

@@ -0,0 +1,33 @@
{
"$schema": "../../schema.json",
"id": "NET-005",
@lpcox

lpcox commented Nov 10, 2026

Copy link
Copy Markdown
Collaborator

@copilot address review feedback

Copilot AI requested a review from lpcox November 10, 2026 06:18
@github-actions

Copy link
Copy Markdown
Contributor Author

✅ Copilot review passed with no inline comments.

@github-actions[bot] Add the ready-for-aw label to this PR to trigger agentic CI smoke tests.

@github-actions

Copy link
Copy Markdown
Contributor Author

Documentation Preview

Documentation has been built for this PR.

Download preview artifact

To view locally:

  1. Download the docs-preview-pr-11397 artifact from the workflow run
  2. Unzip and open index.html in your browser

Built from commit 136ec11

@github-actions

Copy link
Copy Markdown
Contributor Author

✅ Coverage Check Passed

Overall Coverage

Metric Base PR Delta
Lines 93.83% 93.83% ➡️ +0.00%
Statements 92.38% 92.37% ➡️ -0.01%
Functions 93.06% 93.06% ➡️ +0.00%
Branches 86.75% 86.75% ➡️ +0.00%
📁 Per-file Coverage Changes (1 files)
File Lines (Before → After) Statements (Before → After)
src/enclave/host-executor-server.ts 91.2% → 91.2% (+0.00%) 90.1% → 89.8% (-0.29%)

Coverage comparison generated by scripts/ci/compare-coverage.ts

@lpcox
lpcox merged commit 7adece6 into main Nov 10, 2026
35 of 37 checks passed
@lpcox
lpcox deleted the docs/network-doctor-net-005-c48886ed18726b69 branch November 10, 2026 16:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ai-generated documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants