Harden minecraft-server-play analytics (#5484)
* Harden minecraft-server-play analytics * Verify based on mc token * Fail for non-server projects * Nitpicks and factor out HTTP client * Allow passing old minecraft_uuid field for clients * Remove server play analytics test since it relies on auth against Minecraft API which I don't want to mock :( * Switch to using hasJoined for uuid validation * Fix formatting * Fix sessionserver status code * Ensure profile name and queried username matches * replace some wrap_request_errs with internal errs * add HTTP client into web::Data * short timeout on client-side session join query * further fixes * sqlx prepare * fix clippy --------- Co-authored-by: Creeperkatze <178587183+Creeperkatze@users.noreply.github.com> Co-authored-by: aecsocket <aecsocket@tutanota.com>
This commit is contained in:
@@ -86,4 +86,5 @@ pub struct MinecraftServerPlay {
|
||||
pub project_id: u64,
|
||||
#[serde(with = "clickhouse::serde::uuid")]
|
||||
pub minecraft_uuid: Uuid,
|
||||
pub ip: Ipv6Addr,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user