feat(boot): config-driven agent binary path (VS-19) #28
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/agent-binaries-config-path-vs-19"
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?
Summary
Implements VS-19.
load_agent_binaries()now consultssettings.agentbinariespathfromconfig.jsonbefore falling back to the existing<datapath>/agentsand./agentsdirectories. A configured-but-missing path emits a warning and stops the search rather than silently falling through, so a config typo is visible in the boot log instead of presenting as a mysteriously empty catalog.Behavior
settings.agentbinariespath(string, optional) - absolute or relative path to a directory ofmeshagent-<AgentId>files.<datapath>/agents/->./agents/.warn!+ empty catalog. No fallback to legacy directories.info!+ empty catalog. No fallback.Test plan
cargo build --workspacecleancargo clippy --package meshcentral --all-targets -- -D warningscleancargo test --package meshcentral --bin meshcentral boot::- 14 tests pass, 5 newsettings.agentbinariespathpointing at a populated dir; confirmloaded agent binary catalog path=... count=Nlog lineagentbinariespath; confirmsettings.agentbinariespath does not exist; agent binary catalog emptywarningFollow-up
VS-20 will add a fetcher that writes signed binaries into this configured path.