• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

decentraland / comms-gatekeeper / 28246643186
85%
main: 85%

Build:
Build:
LAST BUILD BRANCH: feat/player-connection-info-device-ip-bans
DEFAULT BRANCH: main
Ran 26 Jun 2026 03:08PM UTC
Jobs 1
Files 150
Run time 3min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

26 Jun 2026 03:05PM UTC coverage: 85.425% (+0.2%) from 85.255%
28246643186

Pull #274

github

LautaroPetaccio
feat: record player IP/device on token requests and support device/IP bans

Capture each player's latest IP (Cloudflare cf-connecting-ip header) and
device id (deviceIdentifier from the signed-fetch auth metadata) into a new
player_connection_info table whenever a LiveKit token is requested on
/get-scene-adapter or /private-messages/token. Capture is best-effort and
never blocks token issuance.

Use that data for moderation: banning a player now always snapshots their
recorded device id, and optionally (banIp flag) their IP, onto the user_bans
record. Token endpoints reject (403) when the request's address, device id, or
IP matches an active ban, so a banned player is caught even under a different
wallet. The existing GET /bans listing now surfaces the banned device id/IP.

Empty IP/device values are normalized to null so they cannot become
unmatchable dead data. cf-connecting-ip is trusted because the service runs
strictly behind Cloudflare.
Pull Request #274: feat: record player IP/device on token requests and support device/IP bans

1115 of 1430 branches covered (77.97%)

Branch coverage included in aggregate %.

70 of 77 new or added lines in 10 files covered. (90.91%)

3058 of 3455 relevant lines covered (88.51%)

75.17 hits per line

Uncovered Changes

Lines Coverage ∆ File
3
70.0
src/migrations/1782483862343_add-device-ip-to-user-bans.ts
2
71.43
src/migrations/1782483861343_player-connection-info.ts
1
89.11
-0.58% src/controllers/handlers/comms-scene-handler.ts
1
88.57
1.61% src/controllers/handlers/private-messages/get-token-handler.ts
Jobs
ID Job ID Ran Files Coverage
1 28246643186.1 26 Jun 2026 03:08PM UTC 300
86.66
GitHub Action Run
Source Files on build 28246643186
  • Tree
  • List 150
  • Changed 97
  • Source Changed 9
  • Coverage Changed 97
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #28246643186
  • Pull Request #274
  • PR Base - main (#28047204770)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc