Skip to content

v0.2.1

Choose a tag to compare

@github-actions github-actions released this 26 Oct 13:30
· 689 commits to main since this release

v0.2.1: c4 farm up works on a fresh machine

v0.2.0's c4 farm up failed on every fresh machine. The farm's manager couldn't read its own installer token, because the file was readable only by root, and it stopped at start. up then waited five minutes and ended with "the HUD was not ready" and no cause. v0.2.1 fixes it:

  • The manager reads its token. The token is now readable by the manager's own group, not by every user in the container.
  • up waits for the new manager. It waits until the manager is really running, as kubectl rollout status does, not just until an older copy answers.
  • up says what went wrong. If the HUD doesn't come up, up ends on the HUD's last answer and names any pod that isn't running: Pending and why, crash-looping with its last log line, or failing to pull its image.

If c4 farm up failed for you on v0.2.0, upgrade (brew upgrade mrjoshuak/tap/c4), then run c4 farm down and c4 farm up.

Upgrading from v0.1.0

v0.2.0 closed security gaps that v0.1.0 has. Upgrade any farm running v0.1.0.

  • A local farm's HUD now needs this machine's installer token. On v0.1.0, anything that could reach a local farm's HUD, job code included, could act as its owner. c4 farm up makes the token, and c4 farm open signs the browser in.
  • Units have no network unless a tool declares one. Jobs that name no tool lose all network, DNS included: a plain POST /jobs job, MCP's raw image form, a tracker's job, and any unit not naming a tool. Such a job says "this job names no tool, so it has no network: name a tool that declares one". Whatever a unit must reach goes in a tool's needs.network.
  • Re-apply the egress proxy's manifest, config/egress/egress.yaml, which is part of install.yaml. Its ClusterRole now lists nodes and servicecidrs.
  • Apply the CRDs. A WorkJob's spec.tool now carries the version's tree and can't change after the job is made.
  • Tool jobs made before the upgrade that claim a network are held until they're submitted again through the tool (c4 farm submit).

RELEASING.md has the full upgrade notes.

Changelog

  • ea8282c PROGRESS: up-waits
  • 544f8f6 README and quickstart: one line again, brew install mrjoshuak/tap/c4 (suite 1.0.20 carries the farm tools), and remove the separate c4-farm and c4-agent formulas first
  • 396cae7 README and quickstart: the install line that works today (c4-farm and c4-agent named), every command and kind, the c4 pin; c4-hud named, not linked, until it is published
  • b4d6a1c The manager reads its installer token: mode 0440 with fsGroup 65532, the manager's group alone, as config/regional does, not 0400 root's; up waits for a rollout as kubectl does and says what it last saw
  • 325aae0 quickstart: if c4 was installed before the old c4-farm and c4-agent formulas were removed, brew link mrjoshuak/tap/c4

Install: kubectl apply -f https://github.com/Avalanche-io/c4-operator/releases/download/v0.2.1/install.yaml
Image: ghcr.io/avalanche-io/c4-operator:v0.2.1
Tracker sync (experimental): kubectl apply -f https://github.com/Avalanche-io/c4-operator/releases/download/v0.2.1/c4-sync.yaml, image ghcr.io/avalanche-io/c4-sync:v0.2.1