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.
Index ¶
Constants ¶
const PasswordReplacedText = "Not used: everyone signs in with their own account."
PasswordReplacedText is what the Features page says of the shared password on a server where everyone has their own account (MUSTER_AUTH_MODE=gotrue): it is off because accounts replace it, not waiting for an admin.
Variables ¶
This section is empty.
Functions ¶
func Main ¶
Main is the server role: what the muster-server binary's main() did, with argv[1:] passed in rather than read from os.Args. `muster server …`, the cmd/muster-server shim and a binary invoked as muster-server all call it with the same arguments, so every subcommand and flag means the same thing under each name. It returns the process's exit code.
Types ¶
This section is empty.
Source Files
¶
- accounts_cmd.go
- app_cmd.go
- asklog_config.go
- bootsecrets.go
- ccusage_config.go
- chiefllm.go
- chiefsessions.go
- composechief.go
- config.go
- credentials.go
- db_cmd.go
- dbconnect.go
- doc_seams.go
- e2econnect_hook.go
- features.go
- kinds.go
- main.go
- mirror_cli.go
- provisioner.go
- secretfiles.go
- selfcmds.go
- stt.go
- testllm.go
- uploads.go
- usageping.go
- vapid_cli.go