Skip to content

feat: identify app sessions by X-App-Platform and X-App-Version headers - #12

Merged
bwees merged 3 commits into
mainfrom
feat/app-version-header
Nov 14, 2026
Merged

bwees merged 3 commits into
mainfrom
feat/app-version-header

Conversation

@bwees

@bwees bwees commented Nov 14, 2026 •

Copy link
Copy Markdown
Member

Web build can't set its User-Agent, so web sessions went uncounted.

  • Gateway reads X-App-Platform (ios | android | web) and X-App-Version (X.Y.Z) on /api/version/supported
  • Headers win when both are valid; otherwise falls back to the existing User-Agent regex for older builds
  • Adds web platform label; version cardinality cap unchanged
  • CORS: cors.AllowAll() already reflects requested headers on preflight; test now asserts it
  • WebSocket: nothing depends on the app version, no change

Pairs with Maroon-Rides/MaroonRides#227. Dashboard update in Maroon-Rides/infra#4.

@bwees
bwees merged commit 2e7520e into main Nov 14, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant