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.
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.
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.
/experiences/live.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.
Narrowed by hydramancer v0.17.0 and the token retirement, same day.
Every
share_tokenin 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:
editorsis a list of people's private email addresses and still goes to any admin token holder.Still worth doing, no longer a capability leak.