Skip to content

aggregator(alerts): aggregator-wide auth/CSRF posture for mutating routes (#3702 disposition 2) #4980

Closed as not planned

Description

@dezren39

Disposition 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.

Activity

  1. added
    kind/securitySecurity issue or security hardening
    priority/normalOrdinary priority (the default)
    effort/mMedium: expected under 1 day of work
    app/aggregatorPackage/app: aggregator (pm-stack in this repo)
    app/pm-stackpm-stack (Pad/Grist) in developing-today/code
    on Nov 3, 2026
  2. added
    source/creatorFiled by the new-issue-creator job
    task/triageQueue packet kind: verify, reproduce, and route this item
    on Nov 3, 2026
  3. developing-today commented on Nov 3, 2026

    @developing-today
    Contributor

    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

  4. added
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    and removed on Nov 3, 2026
  5. 34 remaining items

  6. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    🤖 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.
  7. removed their assignment
    on Nov 20, 2026
  8. dezren39 commented on Nov 22, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · picked up / triage review

  9. added
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    and removed
    status/blockedQueue or user escalation state
    queue/blockedQueue or user escalation state
    on Nov 22, 2026
  10. dezren39 commented on Nov 22, 2026

    @dezren39
    MemberAuthor

    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

  11. dezren39 commented on Nov 22, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · superseded / closed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    app/aggregatorPackage/app: aggregator (pm-stack in this repo)app/pm-stackpm-stack (Pad/Grist) in developing-today/codeeffort/mMedium: expected under 1 day of workepic/pm-stackReprioritization program epic (2026-11-12)kind/securitySecurity issue or security hardeningpriority/normalOrdinary priority (the default)source/creatorFiled by the new-issue-creator job

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions