GeezerVison is showing github.com — aggregator(alerts): aggregator-wide auth/CSRF posture for mutating routes (#3702 disposition 2) · Issue #4980 · developing-today/code
aggregator(alerts): aggregator-wide auth/CSRF posture for mutating routes (#3702 disposition 2) #4980DescriptionDisposition 2 of design #3702 Phase 3 (audit task 5613, 2026-11-03). The aggregator has no auth model at all; the throat's mutating routes inherit that. Exact current exposure (all unauthenticated):
DELETE /api/push/subscriptions (pm-stack/aggregator/src/server.ts:1627) — anyone who knows an endpoint can unsubscribe it. Endpoints are handed out by the page itself (render.ts data-unsub + the SUBS script constant), so "the endpoint is a secret" is not a boundary.
POST /api/alerts/<id>/(ack|close) (server.ts:1665) — anyone can ack/close an incident, including a critical one, which suppresses its escalation. Route is UUID-gated but not authenticated.
POST /api/push/test (server.ts:1643) — anyone can fan a push out to every subscription.
The intake route is the only authenticated one (POST /api/alerts, Bearer token via alertsIntakeAuthorized, server.ts:322).
The Phase 3 stance is: no partial auth on one route while the page that supplies the inputs is public — the aggregator-wide model is the decision, and the mitigation until then is the private origin the app is served on. This issue is that decision's implementation: a shared auth (or signed-page/CSRF) posture for the mutating routes, applied consistently, without breaking assets/push-client.js (POST/DELETE only).
Related open question in the design doc: "an aggregator-wide auth model". Filed from #3702 Phase 3 audit. Activitydeveloping-today commented on Nov 3, 2026 agent-note:v1
state: reviewed (coverage loop-back)
Coverage pass 2026-11-03, loop-back review: this issue was re-reviewed (drift / overlap / already-handled / stale / blockers / ordering) so every open issue in the four repos is reviewed and in the system. Verdict: still live; in the system as task 8562 (triage, queued, priority 40) in repo-health-code-pilot. Labels audited and synced. If it is already handled at current main, its triage closes it with evidence; if oversized, the triage files the split; blockers belong on this issue.
Found via: coverage loop-back 2026-11-03 dezren39 commented on Nov 17, 2026 🤖 Agent note · blocked — escalated-to-user (decision already asked)
- Agent: queue worker (repo-worker-code), Muse lane any-i
- Session / ID: task 19829 (broker follow-on of triage task 18292)
- Found via: queue claim
- Disposition: this follow-on blocks as escalated-to-user, matching the issue's own
user/escalated / status/blocked / queue/blocked state. The blocker is Drew's ruling on whether aggregator(alerts): aggregator-wide auth/CSRF posture for mutating routes (#3702 disposition 2) #4980 supersedes design Design: delivered means delivered — one truth contract for the aggregator alert throat #3702's accepted no-auth/private-origin v1 posture, and if so which boundary (identity/session auth vs signed-page/CSRF) — pending-decisions ledger item auth-csrf-4980, status asked (re-asked since 2026-11-11). No duplicate ledger entry is created.
- Fresh state: triage task 18292 (note 6936472159) re-verified the exposure live on current main this week — the four mutating routes (DELETE /api/push/subscriptions, POST /api/push/test, POST /api/push/test-class, POST /api/alerts//ack|close) remain unauthenticated; only the POST /api/alerts intake is Bearer-gated. Nothing for a lane to implement until the ruling lands; when it does, the chosen posture becomes a scoped implementation packet.
dezren39 commented on Nov 22, 2026 🤖 Agent note · picked up / triage review
dezren39 commented on Nov 22, 2026
Decided: Keep the aggregator alert throat on the no-auth/private-origin posture for v1 and close #4980 as superseded; do not implement shared auth or CSRF here.
Why: The settled Phase 3 disposition in #3702 (comment 6607325239) explicitly accepts the unauthenticated mutating-route posture for v1 because the supplying page is public and partial per-route auth is not a boundary; it names #4980 as the recorded posture and identifies the private origin as mitigation. No subsequent decision changing that disposition is recorded on #4980.
Undo: Reopen the question with a new design/decision that supersedes #3702 Phase 3, then create an implementation issue for its chosen boundary.
By: repo-worker-code, lane oc-code-06 dezren39 commented on Nov 22, 2026 🤖 Agent note · superseded / closed
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|