Skip to content

Bug: Task notifications expose new task titles after project access is revoked #3631

Closed

Description

@yannickmonney

Task notifications expose new task titles after project access is revoked. Confirmed locally against 44e0dcf254975286c0e9dea443b5cd1ca6b23347.

Changing project access stops direct reads but leaves an ongoing notification channel for new task content. The proof demonstrates fresh post-revocation title and status disclosure, not merely old notification history.

Steps to reproduce:

  1. Use a project restricted to one team. As an ordinary member of that team, comment on or subscribe to a task.
  2. Remove that member from the project team, leaving them in the organization with no other audience team and no Admin/Owner role.
  3. Rename the task with new confidential information and change its status as an authorized actor.
  4. Read notifications as the removed team member. Opening the task itself is forbidden, but the new title and status are present in their personal notification response.

Expected: A former project reader must not receive newly generated private task content after losing all project access.

Actual: The current access helper gives the recipient no audience teams and assertTaskReadable rejects with 403 TASK_FORBIDDEN. The status emitter nevertheless selects their retained subscription and writes the new confidential title/status; listMyNotifications returns it.

Source:

Behavior oracle: docs/en/platform/admin/teams.md: team-scoped project visibility belongs to current audience members; ordinary members with no matching team cannot read the project.

Local proof: /Users/yannick/.codex/notes/tale-100-findings/notifications-proof/service-boundaries.ts. Frozen output: /Users/yannick/.codex/notes/tale-100-findings/notifications-proof/frozen/batch-02/service-boundaries.log. Actual notification emitters, read query, project/team access helper, task access guard and both notification URL builders ran against an isolated retained PostgreSQL fixture. All assertions passed.

python3 /Users/yannick/.codex/notes/tale-100-findings/notifications-proof/run-service-boundaries.py

Retained local fixture database: tale_notify_scope_20260928_mukz47v8. Structured output: /Users/yannick/.codex/notes/tale-100-findings/notifications-proof/frozen/batch-02/service-boundaries-results.json. The rerun creates and retains a new uniquely named database.

A new retained fixture database on the owned local QA PostgreSQL only. No application database rows were modified. Production functions and SQL ran unchanged; minimal fixture schemas contain only fields required by these queries. The only stub in the service fixture captures pg-boss.send, so no email or external service ran. The revoked-membership state was seeded directly; this is not a browser membership-removal journey.

Deduplication: Reviewed existing-issues.json (931 all-state issues) and the current findings.json; no equivalent root cause found. All-state GitHub searches: notification team access, notification subscriber. No matching notification recipient authorization issue found. This concerns new events after access loss, not cross-organization IDs or stale history.

Frozen source copy: /Users/yannick/.codex/notes/tale-100-findings/notifications-proof/frozen/batch-02/service-boundaries.ts. SHA-256 index: /Users/yannick/.codex/notes/tale-100-findings/notifications-proof/frozen/batch-02/sha256.json. The command executes the identical top-level scratch source; reruns may replace top-level result files but never these frozen copies.

Parent verification: independently executed the frozen proof and controls successfully; retained output: notifications-proof/parent-service-boundaries.log. Live all-state issue searches and related historical reports were checked before filing.

Acceptance: add regression coverage across the reported boundary and preserve the passing controls. Verify the corrected result with local API readback or the rendered UI as applicable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugservice: platform

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions