feat(boot): warn when agent catalog empty and fetcher unconfigured #60
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/VS-39-diagnose-unconfigured-fetcher"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
boot_agent_binary_fetchernow emits a single actionablewarnwhen thesettings.agentbinaryfetchersection is absent AND the agent binary catalog is empty. Previously both config paths (build_seed,boot_agent_binary_fetcher) returnedNonesilently, so a fresh deploy served/meshagents/:id404s (device enrollment "Linux x86_64 agent" download failed: 404) with no signal beyond the generic "agent binary catalog empty" line.Why
Diagnosed on staging 2026-06-16: enrollment download 404s because the Forgejo fetcher is never configured (no
VERVAIN_AGENT_FETCHER_*env, noconfig.json, no UI overlay) so the catalog stays empty. Nothing told the operator the fetcher was unconfigured or how to fix it.Behavior
warnnaming the symptom and both remediation paths (VERVAIN_AGENT_FETCHER_*env seed, admin Settings UI).Nonewhen no fetcher built); boot is not affected.Test
cargo build -p meshcentral,cargo clippy -p meshcentral --all-targets -- -D warnings,cargo test -p meshcentral(58 passed) in the dev compose container. The new line is a guarded log side-effect; existing boot tests cover the malformed-section path and the unchangedNonereturn.Note
This is subtask VS-39 of VS-36. It improves diagnosis only; it does NOT fix the staging outage. That still requires configuring the fetcher (env or UI) and confirming the signed
meshagent-<id>+.minisigare published to the Forgejo generic package (VA-57).#VS-39