Skip to content

feat: Own reusable isolated DHCP configuration in Fleet - #265

Merged
scotwells merged 3 commits into
feat/manual-inventory-recordsfrom
feat/reusable-dhcp-config
Dec 1, 2026
Merged

scotwells merged 3 commits into
feat/manual-inventory-recordsfrom
feat/reusable-dhcp-config

Conversation

@scotwells

@scotwells scotwells commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Provide reusable isolated Kea and DHCP synchronizer configuration so operators can supply networking, credentials, and immutable images without copying the workload definition. Include a synthetic render example and a local control-socket transport test. The configuration is opt-in and does not activate any existing deployment.

Validation

  • Configuration rendering and inactive-root validation
  • Shell checks and documentation links
  • Local Kea status/apply/readback
  • End-to-end allocation, authenticated feed, client lease, and withdrawal proof

Scope

Environment-specific topology and credentials are external inputs. This preparation neither supplies a complete producer/client runtime nor establishes readiness for a real cluster or site.

@scotwells

scotwells commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor Author

The initial harness failure came from two new DHCP roots missing from the opt-in list. The correction registers only those roots; local validation confirms default roots remain inactive and the existing DHCP component still renders. These checks do not establish an end-to-end lease proof.

@scotwells

scotwells commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor Author

Scope clarification: this change supplies reusable workload configuration only. Operators must provide networking, credentials, image pins, and a real producer/client runtime. Rendering and socket transport validation do not prove allocation, client leasing, renewal, or withdrawal.

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

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

hack/dhcp/test-transport.sh, in its last line, names one of our real sites in this public repo. Use generic wording such as "any real cluster or site".

Everything else is safe:

  • dhcp.yaml sets no hostNetwork, and Kea binds only the pod's eth0, so it can't answer on a node, tenant or public network.
  • The Service is headless.
  • Both containers drop all capabilities, run as non-root with read-only roots, and mount no ServiceAccount token.
  • The example addresses and feed name are synthetic.

Follow-ups: ship a default-deny NetworkPolicy alongside, since an unpoliced pod accepts any in-cluster sender on 67/udp. Drop the workflow's push trigger on the feature branch before this lands on main.

@scotwells
scotwells requested a review from ecv December 1, 2026 02:39

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

The site name is gone from test-transport.sh. The rest stands from the first review:

  • no hostNetwork, and Kea binds only the pod's eth0
  • a headless Service
  • containers that drop all capabilities and run non-root with read-only roots
  • synthetic example addresses

@scotwells
scotwells merged commit c73a6da into feat/manual-inventory-records Dec 1, 2026
18 checks passed
@scotwells
scotwells deleted the feat/reusable-dhcp-config branch December 1, 2026 03:00
@ecv

ecv commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

Follow-up: #269

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