Documentation
ΒΆ
Overview ΒΆ
Command muster-server is muster's HTTP service: the task board, the agent surfaces, the connectors and the machine API, over the Postgres database internal/db migrates.
π΄ IT EXISTS BECAUSE EVERYTHING BELOW IT DID NOT LINK INTO ANYTHING. Before this file, `go list -deps ./cmd/...` resolved four packages of this module β cmd/muster, cmd/muster-migrate, internal/db and internal/taskstatus β and internal/api appeared in ZERO of them. Sixteen of the module's twenty packages, including every HTTP handler and every view, were reachable only from _test.go files: they compiled, they were tested, and no process could ever execute them. The README said so in one place ("there is no server") and contradicted itself in another; a reader who saw a non-empty RegisterRoutes concluded a running service. TestTheHTTPLayerLinksIntoABinary and TestTheServerListensAndServesHealth are what stop that inference being available again β the first pins the link graph, the second drives a real listener.
Configuration is read from the environment, once, in config.go β which is the only place a MUSTER_* name is spelled in this binary.
π΄ EVERY api DEPENDENCY NOW HAS AN IMPLEMENTATION IN THIS MODULE, AND EACH IS STILL OFF BY DEFAULT. This paragraph read "THREE api DEPENDENCIES ARE DELIBERATELY LEFT NIL: Provisioner, PrivilegeApply and the ProfileReapplier a provisioner may also satisfy." internal/agentprovision now satisfies Provisioner AND ProfileReapplier and internal/agentgateway satisfies Gateway; PrivilegeApply was removed with the privilege subsystem. What survives is the SHAPE of the argument β a fake is worse than a nil β and the defaults: MUSTER_AGENT_PROVISIONER and MUSTER_AGENT_GATEWAY both ship off, so an unchanged deployment gets the same nils it always had. The full statement β what, why, the closing condition and who checks it β is in doc_seams.go, beside the code it affects, and the boot banner says which tiers are in force out loud on every start.