Skip to content

refactor: drop the service account label - #119

Merged
enimaloc merged 2 commits into
devfrom
refactor/service-account-label
Nov 13, 2026
Merged

enimaloc merged 2 commits into
devfrom
refactor/service-account-label

Conversation

@enimaloc

Copy link
Copy Markdown
Owner

Summary

Drops the free-text "label" of the Minecraft and Battle.net service accounts; the admin shows the account's real identity instead.

  • Minecraft: the player name (minecraftUsername). The default label and the label input are gone.
  • Battle.net: the BattleTag once the bot has logged in, otherwise a masked e-mail (b***@example.com). Create takes {email, password}; the details form only edits the fill order.
  • Logs and the Battle.net session metrics (catapult.battlenet.session.replaced, catapult.battlenet.session.admin_action_required) are tagged by account id instead of the label; never by e-mail.
  • A label still sent by an older client is ignored.
  • Migrations V111 / V112 drop the label columns (existing labels are lost on deploy, as intended).

Modules to restart

catapult-api and catapult-web, together (shared admin DTOs replaced label with displayName).

Before deploy

Any Grafana panel or alert outside this repo that filters these two Battle.net metrics by their account tag must switch from the label to the account id.

Tests

Touched classes: catapult-api 250, catapult-web 416, vitest 26 — green. Route/access/budget checks are CI-only (no route changed).

A Minecraft service account is now shown by its Minecraft username: the
label column is dropped (V111), the admin DTO carries a displayName, the
device-code create no longer takes a label and the logs name the account
by its username.
A Battle.net bot is now shown by its BattleTag, or before its first login
by its masked e-mail (b***@example.com), computed in the admin DTO's
displayName. The label column is dropped (V112), the create takes only
the e-mail and the password, a PATCH ignores a legacy label, and logs and
the session metrics name the bot by its account id.
@enimaloc
enimaloc merged commit 7507c4e into dev Nov 13, 2026
5 checks passed
@enimaloc
enimaloc deleted the refactor/service-account-label branch November 13, 2026 22:19
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