Skip to content

Integrate the real cluster console into make demo-cluster - #102

Merged
CodeBuildder merged 1 commit into
mainfrom
agent/demo-cluster-ui
Jul 18, 2026
Merged

CodeBuildder merged 1 commit into
mainfrom
agent/demo-cluster-ui

Conversation

@CodeBuildder

@CodeBuildder CodeBuildder commented Jul 18, 2026 •

Copy link
Copy Markdown
Owner

Closes #101

Outcome

make demo-cluster now owns the complete real-cluster demo lifecycle: preflight, in-cluster agent connection, React console, real workload injection, evidence collection, observation, and cleanup. No second terminal is required.

What changed

  • installs locked UI dependencies only when missing
  • rejects occupied local HTTP ports 8000 and 5173
  • supervises an IPv4 port-forward from the in-cluster Argus service
  • verifies direct agent health and UI-proxied /api/health
  • starts and supervises the React/Vite console
  • prints the console URL before cluster mutation
  • injects real workloads only after both UI paths are healthy
  • keeps the console active until Ctrl-C
  • prints child-process logs on startup or runtime failure
  • refuses to reuse or delete a pre-existing namespace
  • tracks namespace ownership for scoped cleanup
  • stops the UI and port-forward and deletes only the run-owned namespace
  • updates tests and documentation

Live verification

Executed against the real argus context after Cilium recovered to 3/3 Ready:

  • three k3s nodes Ready
  • Cilium 3/3, Falco 3/3, Kyverno, and Argus readiness passed
  • direct http://127.0.0.1:8000/health returned 200
  • proxied http://127.0.0.1:5173/api/health returned 200
  • all five bounded threat pods became Ready across all three nodes
  • Argus received and accepted real Falco webhook events
  • the React console remained available through evidence collection
  • Ctrl-C stopped ports 8000 and 5173
  • argus-demo entered Terminating through scoped cleanup

Additional environment finding

The deployed Argus secret currently produces Anthropic 401 authentication errors. The agent degraded safely to HUMAN_REQUIRED and completed its audit pipeline. Rotating that cluster secret is separate from this lifecycle PR and should be tracked before the final judged AI demo. Falco log collection also observed one transient worker2 kubelet EOF immediately after OrbStack resume; Argus webhook evidence still proved real event delivery.

Automated verification

  • cluster-demo guard tests passed
  • shell syntax validation passed
  • UI production build passed
  • focused agent suite: 8 passed
  • git diff --check passed

Supervise the in-cluster agent port-forward and React console alongside bounded threat workloads, readiness checks, evidence collection, child-process diagnostics, namespace ownership, and Ctrl-C cleanup.\n\nCloses #101
@CodeBuildder
CodeBuildder marked this pull request as ready for review July 18, 2026 06:45
@CodeBuildder
CodeBuildder merged commit e8088b5 into main Jul 18, 2026
3 checks passed
@CodeBuildder
CodeBuildder deleted the agent/demo-cluster-ui branch July 18, 2026 06:46
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.

Build Week: integrate the Argus UI into make demo-cluster

1 participant