bac51e3fba
POST /hub/report opens a GitHub issue at once (labels bug and from-website, the every template field required, people's text made inert (no mentions, issue references, HTML or closing keywords) and the same report twice answered with the first issue. If GitHub fails it answers 202 and the upkeep tries again for a week. Off (503) without HORIZON_TELEMETRY_GITHUB_TOKEN. POST /hub/suggest queues a suggestion; GET /hub/suggestions?after=<id> hands the queue to Kira with the HORIZON_TELEMETRY_HUB_TOKEN bearer (404 when unset, 401 for a wrong token). Nothing is published. Per-address limits (20 an hour, bursts of 2) on keyed hashes of the address, daily caps from everyone (30 reports, 200 suggestions), a honeypot field, entries kept 90 days. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
34 lines
1.2 KiB
TOML
34 lines
1.2 KiB
TOML
[package]
|
|
name = "horizon-telemetry-server"
|
|
version = "0.1.0"
|
|
edition = "2024"
|
|
license = "MIT"
|
|
rust-version = "1.90"
|
|
publish = false
|
|
description = "Receives opt-in data collection batches, keeps them compactly in SQLite and serves anonymous totals"
|
|
|
|
# Its own workspace, as the launcher's: the game's workspace never builds a web server.
|
|
[workspace]
|
|
|
|
[dependencies]
|
|
horizon-telemetry = { path = "../horizon-telemetry", default-features = false }
|
|
axum = { version = "0.8", default-features = false, features = ["http1", "tokio", "json", "query"] }
|
|
tokio = { version = "1", features = ["rt-multi-thread", "macros", "net", "signal", "time"] }
|
|
# SQLite built in: one file on a small volume is the whole database.
|
|
rusqlite = { version = "0.37", features = ["bundled"] }
|
|
serde = { version = "1", features = ["derive"] }
|
|
serde_json = "1"
|
|
ruzstd = "0.9"
|
|
# Opens the hub's bug reports as GitHub issues (blocking, run off the async workers; rustls).
|
|
ureq = { version = "2.12", features = ["json"] }
|
|
|
|
[dev-dependencies]
|
|
# The uploader the launcher uses, against this server, end to end.
|
|
horizon-telemetry = { path = "../horizon-telemetry" }
|
|
tower = { version = "0.5", features = ["util"] }
|
|
http-body-util = "0.1"
|
|
|
|
[profile.release]
|
|
strip = true
|
|
lto = "thin"
|