Skip to content

Never send players in another world, and fix the review's smaller findings (0.2.2) - #3

Merged
mgilardi merged 1 commit into
mainfrom
review-followups
Nov 24, 2026
Merged

mgilardi merged 1 commit into
mainfrom
review-followups

Conversation

@mgilardi

Copy link
Copy Markdown
Contributor

Follow-ups from Infrastructure's second K70 review of v0.2.1. Release notes: docs/releases/v0.2.2.md.

  • M1 (kids' safety): live/players.json drops players BlueMap marks foreign (any value but a plain false). Blocks any map on the second server until shipped.
  • L1: any case of live is live; only exact live/players.json and live/markers.json are served.
  • L3: assets/playerheads/<uuid>.png is 404 unless that player is visible to the viewer.
  • L2: only failed hand-offs count toward the site-wide limit; every try still counts per visitor.
  • I1: bad trusted-proxy rules throw at construction, not per request.

Tested: 38 unit tests; bots 27/27 direct, 28/28 through Caddy, 8/8 fail closed. Not tested behind the real public address.

🤖 Generated with Claude Code

…dings (0.2.2)

The second security review found that with BlueMap's hide-different-world off, as on the second server, a reachable player standing in a world the viewer can't enter, such as a kids' world, had their position sent under the allowed map. Players BlueMap marks foreign are now left out. Also: head pictures only for players the viewer may see, any case of "live" is treated as live, only failed sign-ins count toward the site-wide limit, and a bad trusted-proxy entry fails at load instead of per request.

Tested: 38 unit tests; bots on throwaway Paper 26.1.2 with the real BlueMap, 27/27 direct, 28/28 through a local Caddy, 8/8 fail closed. Not tested with a real foreign player in a bot run (the unit test feeds BlueMap's exact flag), or behind the real public address.

Task: K70
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@mgilardi
mgilardi merged commit 09d6896 into main Nov 24, 2026
2 checks passed
@mgilardi
mgilardi deleted the review-followups branch November 24, 2026 16:14
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