GeezerVison is showing github.com — aggregator(dashboard): comment API accepts self-asserted author identities — anyone can post as Drew into the orchestrator/GitHub flow (PR #920) · Issue #941 · developing-today/code
aggregator(dashboard): comment API accepts self-asserted author identities — anyone can post as Drew into the orchestrator/GitHub flow (PR #920) #941DescriptionFinding
The aggregator dashboard's new comment API accepts a self-asserted author identity: validateAuthor checks only the shape (kind is drew/muse/agent, non-empty id/label), never that the identity exists in the session registry — even though PR #920's body advertises "Unambiguous authorship: drew / muse / agent identities from the registry". Any client that can reach the server can post a comment as Drew, and downstream consumers act on that attribution.
Found by the pr-diff-review job reviewing PR #920 (dashboard slice 3, #906), 2026-10-25; verified on current main (92d0c6ee).
Evidence
pm-stack/aggregator/src/comments.ts:41-55 — validateAuthor(a): returns an author for any object with kind ∈ {drew, muse, agent} and non-empty string id/label (truncated to 120 chars). No registry lookup, no credential, no session binding.
pm-stack/aggregator/src/server.ts:131-136 — POST /api/comments stores whatever validateNewComment returns; the registry (identitiesFromRecords, used to build the comment form options in commentFormOpts) is never consulted on the write path.
- The package's own tests prove the point:
pm-stack/aggregator/test/slice3.test.ts posts with a bare literal const author = { kind: "drew", id: "drew", label: "Drew" } and it is accepted.
- Why the attribution is load-bearing (comments.ts header, lines 12-25): kind
message comments are "the orchestrator's queue input" — triaged and acted on as instructions; kind github comments are posted to GitHub by a fleet poster with the attribution line "— posted by Drew via the PM dashboard". A forged drew author therefore flows into agent instructions and into GitHub comments carrying Drew's name.
- The trust-model comment (comments.ts:9-11) notes the server binds loopback + tailnet and writes are unauthenticated "like every other fleet-internal surface" — but other surfaces do not mint Drew-attributed instructions and GitHub posts. Agent sessions themselves run on the tailnet, so a confused or compromised agent (not just a person) can impersonate Drew to the orchestrator.
Why it matters
This fleet treats Drew's word as the highest authority. A comment box that lets any tailnet client speak as Drew — into the orchestrator's input queue and onto GitHub under his name — is an authority-confusion surface that contradicts the PR's stated design ("identities from the registry", "unambiguous authorship").
Acceptance criteria
- Triage verdict on the intended trust boundary: either (a) the write path validates the author against the registry / a per-identity credential, so
kind: "drew" cannot be self-asserted by an arbitrary client, or (b) the design is consciously accepted and the code/PR claims are corrected (comments.ts header and docs stop claiming registry-backed unambiguous authorship, and github-kind posts are not attributed to Drew unless the author was verified).
- If (a): a test posts an unregistered/forged
drew author and is rejected, while registry identities still post.
- If (b): the orchestrator's consumption contract in comments.ts documents that message-kind comments are unauthenticated input, not Drew instructions.
— filed by the pr-diff-review job (PR #920); triage via the repo-health queue pilot. Activitydezren39 commented on Oct 26, 2026 🤖 Agent note · filed
- Agent: pr-diff-review job
- Session / ID: pr-diff-review (cron job_id pr-diff-review) run 2026-10-25 20:37 CDT
- Found via: filed this run
- Task: Triage the aggregator dashboard comment author-impersonation surface (PR impl(dashboard): slice 3 — pluggable pages, DNS register, comments, session registry (#906) #920)
- Expectation: effort/s — triage verdict on the finding against current main, then a fix or a documented acceptance
- Links: source PR evidence is in the issue body; a repo-task/v1 triage packet for this issue is enqueued in repo-health-code-pilot
dezren39 commented on Nov 11, 2026
Agent note — task 12314 picked up (lane code-a, worker repo-worker-code)
- State: claimed (resumed from broker park, ready-condition
codex_review on PR fix(aggregator): verify privileged comment authors (#941) #4832 released).
- Lane assignment: direct (row 6805) — this lane works the task itself.
- Verified fresh: issue aggregator(dashboard): comment API accepts self-asserted author identities — anyone can post as Drew into the orchestrator/GitHub flow (PR #920) #941 OPEN, labels kind/security, task/triage, priority/low — no
held / user/owned / do-not-merge / do-not-auto-edit, no status/needs-triage. PR fix(aggregator): verify privileged comment authors (#941) #4832 OPEN, head 425f9a2be9, MERGEABLE, no labels.
- Prior progress (checkpoint 2026-11-11T14:36Z): PR rebased
35ce32010f → af926099a5 + 425f9a2be9 test IPC fix; slice3 42/43 (only pre-existing dns failure, also failing on main); adjacent suites 53/53; tsc error count equal to main.
- Codex state: the only Codex round is on the old head
35ce32010f (2026-11-03) and it FAILED on Codex usage limits — no findings were ever produced. A fresh @codex review is being requested on the current head.
- Next: verify branch/tests fresh, disposition any fresh Codex findings, squash-merge PR fix(aggregator): verify privileged comment authors (#941) #4832, close aggregator(dashboard): comment API accepts self-asserted author identities — anyone can post as Drew into the orchestrator/GitHub flow (PR #920) #941 with evidence.
chatgpt-codex-connector commented on Nov 11, 2026 dezren39 commented on Nov 11, 2026
Agent note — task 12314 done (lane code-a, worker repo-worker-code): fixed_merged
Closing this issue: the fix is merged and verified on main.
- PR fix(aggregator): verify privileged comment authors (#941) #4832 merged (squash) into main at
1d91353132a941445aff5075e33052f5c614705a (2026-11-11T15:29:26Z). The PR composes main's design(pm-stack): one identity across the stack — SSO propagation from the public entry into every layer, roles replace asserted authorship #1253 Access-JWT author enforcement (identity) with this fix's operator-token authorization (privilege): authorizeCommentAuthor in pm-stack/aggregator/src/comments.ts binds privileged Drew/Muse authors to the pm-aggregator.comments-operator-token secret — timing-safe Bearer comparison, fail-closed (503) when the secret store is unavailable, and the deliberate no-lockout rollout (secret not yet configured → legacy writes accepted but stored authorVerified: false, so consumers must not treat a self-asserted Drew/Muse author as that person).
- Tests on merged main (HEAD = the merge commit itself, laptop run):
bun test test/slice3.test.ts → 42 pass / 1 fail. The one failure ("dns page renders each domain once…") is pre-existing — it fails identically on pristine main before this change (control run by lane code-b) — and is unrelated to this fix. The acceptance test "comment API rejects forged Drew and accepts the operator token when configured" passes, as do all three comment operator-token authorization unit tests. Adjacent suites (access-identity, api-health-comments, comments-queue-1210, comments-surrogate-7731, slice2): 53/53 (lane code-b, same head). bunx tsc --noEmit: error count identical to main, none in this PR's files.
- Codex: zero findings exist in any round — the only Codex round (2026-11-03, pre-rebase head) failed on Codex usage limits before reviewing. A fresh
@codex review was requested on the final head (PR comment 6799860465) and produced no response; the diff was reviewed by this lane and matches the issue's intent.
- Shepherding history: rebase + conflict resolution + test IPC fix by lane code-b (PR comment 6798710145); merge + close by lane code-a, task 12314.
chatgpt-codex-connector commented on Nov 11, 2026
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|