HydraIssues

Set a game account on a body: store the Battle.net session, not the password
open feature Priority: medium Project: hydracluster Reporter: 4 Nov 2026 21:34

Description

Child of #1116. Needed to provision a game account on a body without a person
standing at it. Not needed for the first WoW test, where the operator signs in
once by hand.

The thing that decides the design

Battle.net takes no credentials on the command line. The launcher documents
one argument, --autostarted, which controls whether it starts minimised. The
setup program takes --lang and --installpath. Neither touches sign-in, and
there is no official unattended sign-in at all.

So storing the password buys nothing by itself: something still has to type it.
The two honest options are UI automation, which breaks on every launcher update
and is the wrong thing to run on a body, or storing and restoring Battle.net's
own "remember me" session state
, so the secret the platform holds is a session
artifact rather than an account password.

The second is the recommendation. It also fails safe: a session can be revoked
from the account page, a password cannot be un-leaked.

Where it belongs

Not iamnim. iamnim is authentication and org resolution, and it deliberately
never issues downstream credentials: "a person never receives a NATS
credential". Credential issuance stays in the domain service, keyed off verified
membership, which is the hydraperforceprovision pattern.

Not hydraguard either. That is the WireGuard mesh.

hydracluster is the domain service for bodies, and the vend path already
exists.
GET /api/v1/body/config already carries sunshine_username,
sunshine_password and experience_library_token to a body over its node
token (pkg/api/handlers_body.go:216). A game account is one more field on that
response, and nothing new has to be invented to deliver it.

Two differences from what that path carries today, and both matter:

  • Those credentials are fleet-wide and weak. sunshine/sunshine is the same
    on every body (#549). A game account is per body and is a real secret.
  • They sit in the cluster's own config as plain YAML. A Battle.net session that
    reaches a real account with a payment method on it should be encrypted at
    rest, never logged, and redacted in every config read.

Owner ruling needed

  1. Confirm hydracluster owns this rather than a new sibling service. The
    precedent says a domain service per domain, and bodies are hydracluster's
    domain, but a game-accounts service is the other reading.
  2. One account per body, or one per head, or one per person? Per body is the
    only one that needs no logout between sessions, and it is what a single
    player on his own body wants.

Hard gate before any of this runs

/resume has no ownership check (#816, measured fleet-wide). A body holding
a live signed-in session, plus a session any paired client can resume, means any
client paired with that body can reach the account. Storing the session makes
that worse, because the body re-establishes it unattended. #816 closes first, or
this ships only to a body paired with exactly one client.

Scope when the rulings land

  • Per-body account record on hydracluster, encrypted at rest.
  • Carried on the existing BodyConfig response, redacted in logs.
  • hydrabody restores the session state before it registers the app, and never
    writes it to the body's state file.
  • A test that proves the field is absent from the response for every body that
    has no account set.

Session Context

Venue
cloud-seven
Body
chunky-turnip-23

Comments (2)

api 4 Nov 2026 22:38

Owner reports the Battle.net account signs in with Google, not a Battle.net password. That removes an option and settles the design.

  • There is no password to store. The account may not have one at all. Blizzard's Forgot Password flow does create one for an Apple or Google account, but a password buys nothing here, because the desktop app reads no credentials from the command line. Storing session state is now the only mechanism, not just the preferred one.
  • The first sign-in opens a browser. Google SSO hands off to the system browser for a consent screen before the desktop app completes the login. So the bootstrap is interactive and cannot be scripted on any body. It is one manual sign-in per body, then capture.
  • Expect a Google challenge on first use. A new Windows machine on a datacenter IP is exactly the shape Google prompts on, so whoever bootstraps a body needs the account's second factor to hand.
  • Do the bootstrap through a Sunshine stream, not through node exec. hydrabody reaps processes launched outside Sunshine, so a Battle.net started from an exec command gets killed under the operator.

This strengthens the ruling question rather than changing it: because the bootstrap is manual and per body, 'one account per body' costs a human sign-in for every body it is enabled on. A per person model with session capture at first use scales better, and makes the #816 ownership gap worse, not better.

One residual to check before any design is agreed: whether a restored Google-derived session survives a move to another machine at all, or whether Blizzard binds it to the device. If it is device bound, the whole capture-and-restore idea fails and the only option left is a manual sign-in per body, with this issue reduced to documenting it.

api 7 Nov 2026 18:19

Owner rulings 2026-11-07 overturn this issue's premise. Needs a re-scope or a
close, owner's call.

  1. The account ruling is per-visitor sign-in, wipe after. This issue asks to
    STORE the Battle.net session so it can be restored. The ruling is the
    opposite: no stored session, each visitor signs in and the session is wiped at
    stream end. If that holds, the capture-and-restore work here is not wanted and
    what remains is a cleanup script plus documentation of a manual sign-in.

  2. chunky-turnip-23 becomes BRAIN ONLY. It leaves the body fleet, so the
    session.body on this issue is wrong and the "only chunky" delivery scope is
    void. The new target is zappy-cactus-6: RTX 5080, bxl1-test-4 (a test
    district), provider_status: running, 1.8 TB free, AV1 capable.

Two facts that bear on the re-scope:

  • On Windows, per-visitor wipe is a scripted cleanup of Battle.net session state
    at stream end. It is NOT the structural guarantee a Linux session namespace
    would give, because there is no overlay and no namespace on a Windows body.
  • The wipe puts a Google consent screen plus a second factor in front of every
    visitor, since the owner's Battle.net account is a Google SSO login and that
    hand-off to the system browser cannot be scripted. Owner chose it knowing this.

#816 (/resume has no ownership check) stops being a hard gate under the wipe
ruling, because no account outlives the stream to hand over. It becomes a gate
again the moment anyone reverts to a persistent account.