fix(webui): dashboard control-plane writes record a fabricated actor #1701

Closed
opened 2026-10-27 13:41:27 +00:00 by sam · 0 comments
Owner

internal/webui/api_control_plane.go:20 hardcodes controlPlaneActor = "operator:web" and
sends it as the actor on every Command. Every audit row a dashboard edit writes to
resource_history therefore names a constant, not the person who made the change.

The PRD (docs/prds/runtime-control-plane.md, "API") requires that a dashboard session or
channel sender map to an Archie identity before it can run a command.

Messaging is half done: the identity subcommand resolves the sender via
identity.Repository.ResolveLegacyName (internal/domain/messaging/settings.go:137), but the
generic set and replace paths only check that the actor string is non-empty
(settings.go:238, 104).

Scope: map the authenticated dashboard session to an identity and pass its ID as the
actor; apply the same mapping to the messaging set/replace paths. The server already
refuses an empty actor, so the remaining work is entirely on the two API adapters.

Close reason

Closed


Imported from beads archie-core-znqw · GitHub #962 · type bug · priority P1 · created 2026-09-20 · closed 2026-09-20

internal/webui/api_control_plane.go:20 hardcodes controlPlaneActor = "operator:web" and sends it as the actor on every Command. Every audit row a dashboard edit writes to resource_history therefore names a constant, not the person who made the change. The PRD (docs/prds/runtime-control-plane.md, "API") requires that a dashboard session or channel sender map to an Archie identity before it can run a command. Messaging is half done: the identity subcommand resolves the sender via identity.Repository.ResolveLegacyName (internal/domain/messaging/settings.go:137), but the generic set and replace paths only check that the actor string is non-empty (settings.go:238, 104). Scope: map the authenticated dashboard session to an identity and pass its ID as the actor; apply the same mapping to the messaging set/replace paths. The server already refuses an empty actor, so the remaining work is entirely on the two API adapters. ### Close reason Closed --- _Imported from beads `archie-core-znqw` · GitHub #962 · type bug · priority P1 · created 2026-09-20 · closed 2026-09-20_
sam added the highbug labels 2026-10-27 13:41:27 +00:00
sam self-assigned this 2026-10-27 13:41:27 +00:00
sam closed this issue 2026-10-27 13:41:27 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sam/archie#1701