Skip to content

Prepare isolated DHCP producer runtime and proof tools - #267

Merged
scotwells merged 5 commits into
feat/manual-inventory-recordsfrom
feat/staging-dhcp-proof
Dec 1, 2026
Merged

scotwells merged 5 commits into
feat/manual-inventory-recordsfrom
feat/staging-dhcp-proof

Conversation

@scotwells

@scotwells scotwells commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Package a minimal Go-only site runtime and opt-in producer configuration sharing the actual worker journal and boot evidence. Add input preflight, partial IPAM/admission/feed evidence verification, and bounded client capture in a prepared isolated network namespace. Stacked on #265; this is preparation, not a completed integration runner. Operation orchestration, a disposable emulator, isolated relay routing, authenticated collection, and packet/renewal assertions remain unfinished.

Validation

  • Focused Go tests and 17 Python fixture tests
  • Producer rendering, inactive-root and documentation checks
  • Runtime image build and restricted startup smoke test on initial implementation
  • Workflow lint, ShellCheck and whitespace checks

Scope

Environment-specific identities, topology, exclusions, credentials, and image pins are operator-supplied inputs. No cluster deployment or end-to-end lease validation was performed; this does not establish readiness for a real site.

@scotwells
scotwells requested a review from ecv December 1, 2026 01:52
@scotwells

scotwells commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor Author

The capture fix opens the PCAP in Python before starting tcpdump, while keeping diagnostics separate. Evidence validation now compares complete scope references and requires an exact boot-summary field allowlist. These are partial tooling checks; orchestration, emulator/relay runtime, authenticated collection, and packet/renewal assertions remain unfinished.

@scotwells
scotwells marked this pull request as ready for review December 1, 2026 02:13
@scotwells
scotwells requested a review from a team as a code owner December 1, 2026 02:13

@ecv ecv 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.

Request changes.

This PR names one of our real sites, and a router model, in this public repo:

  • config/site/dhcp/producer/README.md:85
  • hack/dhcp/staging-proof.md, lines 438 and 455
  • hack/dhcp/staging-proof.py:590,597
  • hack/dhcp/staging-proof-test.py

Use generic wording, and read the excluded site from the manifest or an environment variable rather than a literal.

The runtime is safe:

  • Both bases are pinned by sha256, and the final image is distroless nonroot with no secrets.
  • boot.yaml runs non-root with all capabilities dropped and a read-only root, no hostNetwork, and a ClusterIP Service only.
  • The proof fixtures use documentation addresses.

@scotwells
scotwells requested a review from ecv December 1, 2026 02:39
Base automatically changed from feat/reusable-dhcp-config to feat/manual-inventory-records December 1, 2026 03:00

@ecv ecv 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.

Approve.

No site or router names remain. The proof verifier now reads its excluded sites from excludedSites in the config, which must be a non-empty list of plain identifiers, instead of a hardcoded literal. The runtime is unchanged:

  • pinned bases and a distroless nonroot image
  • no privileges, no hostNetwork, a read-only root
  • a ClusterIP Service only

@scotwells
scotwells merged commit 1ad8301 into feat/manual-inventory-records Dec 1, 2026
19 checks passed
@scotwells
scotwells deleted the feat/staging-dhcp-proof branch December 1, 2026 03:08
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.

2 participants