Web chat /settings writes with the signed-in actor #74

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

Goal

A signed-in web chat user can /settings set a field and the audit row names them.

Evidence

internal/gateway/gateway.go:355 calls Execute(ctx, "", rest); Router.Settings is never set in archiegateway.

Rules

Read CLAUDE.md. Do only what the Goal and Stop when need. File anything else you notice as a bead; do not fix it. Run task check once at the end; if it fails twice on the same problem, comment on this bead and stop.

Stop when

  • Actor passed and Router.Settings wired.
    Then commit (Conventional Commits, scoped by package), bd close this bead and stop.

Close reason

Wired the shared settings adapter in Gateway and forwarded/resolved authenticated principals across unary and streaming RPCs. Shared caller attribution remains behind credential checks; sender fields cannot impersonate an actor. PostgreSQL-backed regression reproduced the old refusal and now verifies persisted settings audit actor, spoof refusal and invalid credentials for both chat paths under race detection. task check passed.


Imported from beads archie-core-4q28.21 · GitHub #1287 · type bug · priority P2 · created 2026-10-05 · closed 2026-10-08

## Goal A signed-in web chat user can /settings set a field and the audit row names them. ## Evidence internal/gateway/gateway.go:355 calls Execute(ctx, "", rest); Router.Settings is never set in archiegateway. ## Rules Read CLAUDE.md. Do only what the Goal and Stop when need. File anything else you notice as a bead; do not fix it. Run `task check` once at the end; if it fails twice on the same problem, comment on this bead and stop. ## Stop when - [ ] Actor passed and Router.Settings wired. Then commit (Conventional Commits, scoped by package), `bd close` this bead and stop. ### Close reason Wired the shared settings adapter in Gateway and forwarded/resolved authenticated principals across unary and streaming RPCs. Shared caller attribution remains behind credential checks; sender fields cannot impersonate an actor. PostgreSQL-backed regression reproduced the old refusal and now verifies persisted settings audit actor, spoof refusal and invalid credentials for both chat paths under race detection. task check passed. --- _Imported from beads `archie-core-4q28.21` · GitHub #1287 · type bug · priority P2 · created 2026-10-05 · closed 2026-10-08_
sam added the mediumbug labels 2026-10-27 13:34:50 +00:00
sam self-assigned this 2026-10-27 13:34:50 +00:00
sam closed this issue 2026-10-27 13:34:50 +00:00
sam added a new dependency 2026-11-14 14:45:05 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Reference: sam/archie#74