Repository navigation
OSS-383: read-only exact-identity lookup and per-server allowlist add - #538
Merged
Merged
Conversation
…owlist add OSS-383. Top-level Players can resolve a previously unseen account by exact UUID or current username via the existing bounded identity-provider seam (Mojang session profile / Minecraft Services name lookup). LookupPlayer is read-only: the ephemeral result never creates an identity, session, access row, roster entry, presence claim or audit row. FOUND / NOT_FOUND / AMBIGUOUS / UNAVAILABLE are explicit; outages are never reported as absence and no name-history service is consulted. The UI discards out-of-order provider replies with a generation guard. The server Players tab can add an exact name/UUID to that server's allowlist before first join. It reuses the typed moderation RPC with players:access:write on server_id, request id, journal, audit and undo. Only this separate mutation persists an identity. Java name/UUID entries use the negotiated Java adapter; Bedrock Gamertag/XUID entries require an adapter proving support and are otherwise refused with a capability error. Provider outage or ambiguity never reaches a command adapter. Adds RBAC mapping/tests, provider and RPC seam tests, scoped real-browser QA fixtures (desktop/mobile/keyboard, stale replies, outage vs not-found, cross-server denial, Bedrock refusal), ADR0017 and knowledge updates.
athNdev
force-pushed
the
codex/prod-player-lookup
branch
from
November 18, 2026 10:25
4a1517e to
6d9d0a4
Compare
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.
OSS-383 — exact-identity player lookup and per-server allowlist add
What changed
internal/playerskinprovider transport (Mojang session profile by UUID; verified first-partyapi.minecraftservices.com/minecraft/profile/lookup/nameby name). ExplicitFOUND / NOT_FOUND / AMBIGUOUS / UNAVAILABLEstates; authoritative negatives only for 404 / empty-200, while timeouts, 5xx and transport failures areUNAVAILABLE. No name-history endpoint is queried and no identity is invented.SetWhitelistEntryRPC withplayers:access:writeonserver_id, request id, player journal, audit row and undo. No duplicate command path. Java name/UUID entries use the negotiated Java adapter; Bedrock Gamertag/XUID requires an adapter proving support and is otherwise refused with a capability error. Provider outage/ambiguity never reaches an adapter and never persists an identity.LookupPlayermapped fail-closed to globalplayers:read; frontend permission strings corrected to real RBAC actions.internal/mcp/catalog_data.go) and RPC count updated to 221 for the new procedure.knowledge/architecture/player-management.mdupdated in the same commit.Verification (final rebased head
6d9d0a4544bfcb58027428b1ec41d5571d2218b8)8d8c7b75c3428818c9ac18053c8c27370306564c(includes PR535/PR537).go build ./...,go vet ./...,go test ./... -count=1— all pass on local Go 1.27.4; CI runs pinned Go 1.26.11.golangci-lintv2.13.2 findings addressed: De Morgan simplification atplayer.goclassifyPlayerQuery; the four PR537 upload cleanup/cancel call sites infile.go/mod.go/modpack.goare explicitly discarded with_ =on rebased main; MCP drift gate fixed by regenerating catalog data + count.bun install --frozen-lockfile,bun run check(0 errors/0 warnings),bun run test(363 pass),bun run lintclean.buf lintclean;bun scripts/proto-generate.mjs --check→ "Generated Go and TypeScript outputs match" (zero drift).go run ./cmd/knowledge-lint -root . -fixthen without-fix: 40/40 queries pass, indexes current.node ./node_modules/vite/bin/vite.js build(equivalent toscripts/web-build.shon this host; WSL/Git-Bash wrappers unavailable):✓ built, adapter-static wrotebuild/,.gitkeeprestored.scripts/manual-review/e2e/out/player-lookup/(desktop-found.png,desktop-ambiguous.png,desktop-outage.png,mobile-found.png,results.json,browser.json).Evidence limits
Do not merge until CI is green on the final head.