HydraIssues

Move the remaining hydraexperiencelibrary consumers off the admin token (second reader class)
open feature Project: Reporter: 14 Oct 2026 22:10

Description

Follow-up to #775, which is half closed. hydravenues now holds a reader token and cannot see share_token or editors. Every other consumer still holds server.admin_token, which can read all 14 share tokens, follow one to become an editor of that experience, and write anything.

Who else calls the library

Found by sweeping the local checkouts for /api/v1/experiences:

consumer route needs
hydramancer list, get, put everything, including the secrets: it IS the policy point
hydravenues list the guide copy. DONE, reader token
hydrahead list to confirm
hydraheadflatscreen list to confirm
hydraheadwebstream list stream_mode, orientation, input_mode, build numbers
hydraorganization list to confirm
hydrabody, hydracluster /experiences/live only that route has its own type and carries no secrets

The configs are unconfirmed. The sweep that would have answered it wedged a node's exec queue, see #794. Confirm before building anything: a consumer that turns out to use /live needs nothing.

Why they cannot share the existing reader token

readerExperience is deliberately the guide half: name, label, developer, status, public, and the eleven copy fields. A head or a stream consumer needs exe_path, stream_mode, input_mode, orientation, steam_app_id and the build numbers, all of which are on withheldFromReaders with a reason.

So this is a second class, not a second token. Suggested shape, keeping the allowlist property that makes the first one safe:

server:
  admin_token: "..."
  reader_tokens:
    hydravenues: "..."        # guide copy
  runner_tokens:
    hydraheadwebstream: "..." # copy plus what it takes to run the thing

Neither class gets share_token or editors. TestReaderFieldsAreDeclared should grow to cover every class, so a new store field has to be classified once per class and cannot reach any consumer by default.

Order of work

  1. Read each consumer's config and confirm which actually hold the admin token and which route they call.
  2. Drop any consumer that only needs /experiences/live.
  3. Add the second class and move the rest, one at a time, library first then the consumer, because a token the library does not know yet answers 401.

Not before the zone opens

This touches head configs and each move needs that service restarted. The exposure it closes is a service credential reading a secret that hydramancer no longer issues, and that already cannot be read by the one consumer that was named in #775.

Session Context

Venue
fti-experience-zone

Comments (1)

api 14 Oct 2026 22:21

Narrowed by hydramancer v0.17.0 and the token retirement, same day.

Every share_token in the library is now empty, and the portal no longer issues, renders or accepts one, so the field grants nothing to anybody who reads it. The capability half of #775 is therefore closed for EVERY consumer, including the ones listed here, without moving any of them.

What is left for this issue is narrower and less urgent:

  • editors is a list of people's private email addresses and still goes to any admin token holder.
  • those consumers can still WRITE through the library API, which is a separate concern from reading a secret and was never the complaint in #775.

Still worth doing, no longer a capability leak.