Skip to content

🐛 contribute: the server should state the hive's display name on auth_ok instead of the relay parsing the hostname #19059

Closed

Description

@clubanderson

Problem

A contributor who connects a ClankeR relay to a hosted hive can only identify it by its hostname. The relay (and the queue lines in #19053) derive a short name from the first hostname label, so the hive that serves hivecommons/hive shows up as kubestellar-hive, because its host hosted-kubestellar-hive-<suffix>.hive.hivecommons.dev was generated from the org and repo names at claim time, before the project moved to the hivecommons org. The hive's real display name already reads "hivecommons hive".

Host names are minted once and deliberately never recomputed (see the handleRenameHive doc comment), so a rename of the hive never reaches the hostname. The hostname is therefore the wrong source for a name shown to people.

Proposal

The server states the hive's display name on auth_ok and the relay prefers it over parsing the hostname.

  • Server: auth_ok carries an optional hive_name (the normalized project.name, the same value the fleet self-report already uses). Additive and omitted when empty, so older relays ignore it.
  • Relay: store it on the hub record at auth_ok, expose one hiveDisplayName(hub) helper (lowercased, whitespace to dashes, so "hivecommons hive" reads hivecommons-hive) that returns null when the hub sent nothing. The hostname-derived short name stays as the fallback. No behaviour is gated on it, and an older hub that sends nothing keeps today's output.

Follow-up once #19053 lands: hiveShortName calls hiveDisplayName first.

Out of scope

Renaming the hostname itself is an infra change with its own risks (ingress, relay URLs, webhooks, docs) and is tracked separately.

Activity

  1. self-assigned this
    on Nov 18, 2026
  2. added a commit that references this issue on Nov 18, 2026
    f4f3849
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions