feat(web): show real server version, accurate relay counts, env-config notice on admin panel #103
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/VS-85-server-panel-version-config"
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?
The admin Server panel (vervain-apps
AdminPage) rendered VERSION "unknown", ACTIVE SESSIONS / RELAY SERVERS "0", and "The server has no config file" for env-only deployments. All four stem from server-side wiring in vervain-server, not the frontend:VERSION: the
serverversionreply shipped an emptytagslist, so the panel (which joins the tag list into its Version label) had nothing to show. Shipvervain_build_info::VERSIONas the sole tag. That constant is stamped at compile time and can never be the literal "unknown".OCI build: the Dockerfile declares
VERVAIN_BUILD_VERSION/_GIT_HASH/_DATEARGs but the build workflow never passed them, so inside the builder (no.gitin the context) the version silently fell back toCARGO_PKG_VERSION(a bare crate version) and the hash to "unknown". Pass all three as--build-arg, sourcing the version from the resolve step'sgit describe --tags --alwaysso the shipped image reports the release identity.Relay counts:
serverstatsRelaySessions / RelayCount (read by the panel's ACTIVE SESSIONS / RELAY SERVERS) counted onlyweb_relays, under-reporting whenever device-file or MCP relays were live. Count all three registries, matching the per-relayrelayslisting.Config section: an env-only deployment (VS-55) has no config.json, and the panel showed a bare "no config file" that read as a misconfiguration. When no file is present, return an explicit env-configuration notice instead of
null. The in-memory seed config is deliberately not dumped: it can hold the agent fetcher token that is never persisted.#VS-85