Anonymous usage ping from self-hosted gateways

On startup and once a day the gateway sends a random instance id and its
version to gateway.webspeak3.de (TELEMETRY=0 turns it off, the startup log
says so). The standalone store server receives it with PING_DATA_FILE set,
keeps id/version/first/last seen without IPs, and serves admin-only counts.
The release tag is baked into the image as WEBSPEAK3_VERSION.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Hu2cuPLqpuKVfd9wWFFakU
This commit is contained in:
MoepchiandClaude Opus 5.5 committed 2026-10-19 09:01:59 +00:00
1 parent 603cedd907
commit cc70bc4736
8 files changed
+172 -1

No files matched your search

+1 -1
View File
@@ -136,7 +136,7 @@ async function saveStoreThemes(themes: StoreTheme[]): Promise<void> {
await rename(tmp, STORE_DATA_FILE);
}
function isAdminRequest(req: IncomingMessage): boolean {
export function isAdminRequest(req: IncomingMessage): boolean {
const authHeader = req.headers.authorization ?? "";
return authHeader.startsWith("Bearer ") && isValidStoreAdminToken(authHeader.slice("Bearer ".length));
}