Skip to content

feat(infra): infra-request dispatch handler + contabo-k3s-node module + consumer test-harness (resolves #33) - #34

Merged
izzywdev merged 1 commit into
mainfrom
claude/issue-33-20260622-0542
Jun 22, 2026
Merged

feat(infra): infra-request dispatch handler + contabo-k3s-node module + consumer test-harness (resolves #33)#34
izzywdev merged 1 commit into
mainfrom
claude/issue-33-20260622-0542

Conversation

@izzywdev

Copy link
Copy Markdown
Owner

Opening the @claude branch for review (auto-PR gap). NOTE: the handler workflow is parked under docs/workflows/ and must be moved to .github/workflows/ by an admin/PAT with workflow scope to activate. Needs prod-safety review before merge. Resolves #33.

…sumer test-harness

Adds the FuzeInfra handler side for the infra-request dispatch model where
consumer repos declare infra needs in git and dispatch to FuzeInfra (the sole
credential holder) to reconcile.

- modules/contabo-k3s-node: TF module that provisions Contabo VPS(es) and joins
  each to the existing k3s cluster as an agent via cloud-init, labeling
  node-role=<role>; optional contabo_private_network attach. Creds + k3s join
  token are variables (never hardcoded).
- docs/workflows/infra-request-handler.yml: repository_dispatch handler —
  validates each request against an auto-apply whitelist, auto-applies (TF apply
  + node label + argocd sync) when whitelisted, else opens a gated PR with
  terraform plan. (Lives under docs/ because the bot cannot write .github/workflows.)
- config/infra-request-whitelist.json + scripts-tools/validate_infra_request.py
  (+ tests): editable whitelist (product_id tier, region==EU, role==workload,
  bounded node count, allowed repos) and its validator.
- docs/INFRA_REQUEST_DISPATCH.md: architecture + scoped FUZEINFRA_DISPATCH_TOKEN
  setup (fine-grained PAT / GitHub App) for consumers.
- docker-compose.consumer-test.yml + versions.env: version-accurate ephemeral
  base services (Postgres/Redis/Kafka/ChromaDB/MailHog) for consumer CI, pinned
  from a single source of truth. docs/CONSUMER_TEST_HARNESS.md documents usage.

Refs #33

Co-authored-by: Israel Weinberg <izzywdev@users.noreply.github.com>
@izzywdev
izzywdev marked this pull request as ready for review June 22, 2026 09:14
@izzywdev
izzywdev merged commit 4970112 into main Jun 22, 2026
4 checks passed
@izzywdev
izzywdev deleted the claude/issue-33-20260622-0542 branch June 22, 2026 09:14
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.

[infra] infra-request dispatch handler + contabo-k3s-node module + consumer test-harness

1 participant