Publish authenticated session identity through scoped manager challenges #103
No reviewers
Labels
No labels
bug
dependencies
documentation
duplicate
enhancement
github_actions
go
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
pokebedrock/gobds!103
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feature/managed-session-identity"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The addon currently depends on an encrypted XUID chat message. This adds an instance-scoped replacement: consume backend-origin engine:identity_challenge messages, bind each to the backend entity and authenticated incoming client name, then publish that incoming connection's XUID to the manager broker. Client-origin challenges are discarded. HTTP delivery is bounded, requires TLS or numeric loopback, rejects redirects, and omits identity payloads and credentials from logs.
Each server has its own publisher configuration. Existing packs retain legacy emission by default; DisableLegacyIdentity can turn it off after an instance upgrades. The new addon never consumes the old message. Production authentication, packet protections and proxy topology remain in place.
Validation: go test ./..., go test -race ./..., CI-pinned golangci-lint and Forgejo checks passed. Tests cover endpoint policy, challenge binding and authenticated-client provenance. An isolated real-account test on BDS 1.26.63.1 passed both initial join and reconnect using this proxy with DisableLegacyIdentity=true. The addon resolved the authenticated XUID despite a bogus persisted XUID property. Direct native identity was tested separately; enforced-allowlist controls did not complete.
Coordinated changes: manager #43, gobds #103, BEH #840. Deploy manager and gobds before restarting real-player servers on the new addon. Keep gobds legacy emission enabled for older packs during rollout; the new addon ignores it. Production retains gobds. Existing XUID database and website keys stay unchanged; no data migration is needed. These PRs do not deploy production or implement Preview downloads, direct connection comments, ports, or hub-list filtering.
Scoped static review at
9b237bb5(2026-11-12 ET): inspected the complete original 10-file PR diff plus the exact 7e6bb993→9b237bb5 commit diff after the head moved. The latter is protocol documentation, an equivalent endpoint-validation condition and explicit ignored Close error; no old-head review was published.No blocking defect identified in this scope. Backend-origin ScriptMessage gating, authenticated incoming-client XUID/name source, backend entity binding, one in-flight publication per session, timeout/cancellation, endpoint TLS/numeric-loopback policy, redirect refusal and log redaction are consistent with the manager challenge model. Client-origin identity packets are consumed without assertion publication. Legacy emission remains enabled unless explicitly disabled.
Not runtime approval: Go is unavailable in this review environment, so I did not rerun go test ./..., lint, CI or the packet/HTTP tests. I read the supplied binding, client-spoof, redirect and endpoint tests; author-reported passing results are separate evidence. Before production, complete the isolated real-account three-service test with legacy emission disabled, stale/reconnected sessions, manager restart and temporarily unavailable broker. Coordinate manager #43 and BEH #840; no merge/deploy/restart authorization is implied.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.