AdminEvents pane auth prerequisite: admin.events.read scope #11
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context
Design-brief §5 lists five side panes for ratatoskr's TUI. One of them is the AdminEvents pane, which surfaces Worldtree's
/admin/eventsSSE stream (lifecycle events, persona affect, etc.).Worldtree-dev confirmed in althing thread
01KSBARG2B8M8C82H6AJGJWX1B(2026-05-23) that/admin/eventsis auth-gated:Posture
Our current API key (
c990f0be) is send-only (agents.call:mimir,agents.call:lofnpending — see issue ratatoskr#???/althing thread01KSBBHDWVZZP10ENMFMNQ1EHW). It does NOT carryadmin.events.read.Worldtree-dev's recommendation:
What this issue tracks
The auth prerequisite for shipping the AdminEvents pane. Not the pane implementation itself (that's a separate side-pane issue per design-brief §5).
Resolution paths (operator's call)
c990f0be); ratatoskr accepts it via a new env-var (RATATOSKR_ADMIN_API_KEYor similar) when the pane is enabled.admin.events.readscope to the existing key (c990f0be). Simpler but elevates the privilege of every ratatoskr call.Recommendation: defer the decision until the AdminEvents pane is actually being scheduled. Filing this issue now as a documentation breadcrumb so we don't forget the auth gate when we get there.
Out of scope
Why now
Worldtree-dev surfaced the gate on 2026-05-23. Filing as a doc-debt fix before it's forgotten.
Scope request QUEUED to infra-ops (althing thread
01KVKB16VB9GVHE17ERP0R2B5G, 2026-06-20).Requested path 1 (least privilege): a SEPARATE admin-tier Heimdall key carrying
admin.events.read— distinct key_id from the send-onlyc990f0be, NOT an augmentation of it. ratatoskr will consume it via a newRATATOSKR_ADMIN_API_KEYenv var when the AdminEvents pane is built. infra-ops brokers the Heimdall scope with worldtree-dev.This clears the auth prerequisite this issue tracks; the pane implementation itself remains a separate side-pane issue (out of scope here).
Auth prerequisite CLEARED (2026-06-20). worldtree-dev minted a least-privilege
readonly-adminkey (key_id20bb72ad, userratatoskr-readonly, personal:8081) granting exactly 7 read scopes incl.admin.events.read— writes denied (POST /admin/keys → 403, verified). Collected via a secure mode-600 drop, stored asRATATOSKR_ADMIN_API_KEYinenv.sh(mode 600), independently verifiedGET /admin/keys → 200from nh3-dev.The auth gate this issue tracks is resolved; the AdminEvents pane implementation remains a separate side-pane issue (out of scope here).