feat: recover match salts via Steam Game Coordinator#85
Open
raimannma wants to merge 1 commit into
Open
Conversation
Add a `gc` module that logs into remembered Steam accounts through the
user's own session and recovers match salts via the GC GetMatchMetaData
message, independently of the httpcache scraper. Salts are POSTed to the
same /v1/matches/salts endpoint, tagged `ingest-tool:{steam_id3}`.
- Picks up to 40 matches per account per 24h from the global to-fetch
list (persisted rolling-window quota survives restarts).
- Multi-account: iterates every decryptable account, each with its own
quota bucket; undecryptable accounts and accounts that can't reach the
GC (e.g. don't own the game) are skipped/backed off for a day.
- Never runs while Deadlock is running (Steam routes GC to the game),
re-checked mid-pass. Refresh tokens stay in-memory only, never logged.
- Runs one pass in --once mode and a 30-min background worker in watch
mode; skipped in game-wrapper mode. New --no-gc flag to opt out.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds a
src/gc/module that logs into remembered Steam accounts through the user's own session and recovers match salts via the GCGetMatchMetaDatamessage — independently of the existing httpcache scraper — POSTing them to the same/v1/matches/saltsendpoint (taggedingest-tool:{steam_id3}). Ported from the mod-managerfeat/match-data-sharingbranch.How it works
/v1/matches/to-fetchlist and picks up to the remaining quota (newest-first, deduped across accounts within a pass). Not the player's own matches.~/.local/share/deadlock-api-ingest/gc-quota.json) so the cap survives restarts. Requests are throttled 2 min apart (Steam rate-limits the GC per account).local.vdf(AES on Linux/macOS, DPAPI on Windows), each with its own quota bucket.Debugimpl — never logged, persisted, or sent.Wiring
--oncemode, a 30-min background worker in watch mode, and is skipped in game-wrapper mode (game is running).--no-gcflag mirrors--no-statlocker.Module layout
auth(session recovery) ·client(async steam-vent GC session) ·api(to-fetch + post, blocking ureq) ·quota(pure rolling window, unit-tested) ·store(persisted quota + backoff) ·mod(orchestration).Notes
steam-ventandvalveprotos(same revs as the mod-manager branch).Cargo.lockregenerated from master's baseline; the Nix build isnaersk/Cargo.lock-driven, so nocargoHashbump needed.Builds clean, passes
clippyunder the crate'spedantic/correctnessdenies, and the test suite is green.🤖 Generated with Claude Code