noCV
ATENANT-107 · Protect every write path

Carry tenant identity through background case-processing commands

Practice briefBugExpert

The queue payload stores only a case ID, and the worker resolves its organization from mutable caller-supplied metadata.

Focused work estimate
5h + prerequisites
Priority in the scenario
High
Engineering practice
Background authorization · Idempotency

Estimated field mix

  • Security40%
  • Backend30%
  • Distributed systems30%

Field percentages are editorial estimates of the ticket's engineering focus. They total 100%; they are not measured time, proficiency scores, or ownership evidence.

Your next step

Review it, then add it to your workspace.

The board opens an editable draft; nothing is saved until you confirm it. Sign-in and workspace permissions apply, and Demo boards remain ephemeral.

Project context

A fictional case-management application filters most requests correctly, but imports and background commands can connect a case to another organization's project or assignee.

Setup prerequisites

  • Create two synthetic organizations with overlapping display names.
  • Use repository-level authorization and migration-backed constraints.

Preceding work

Complete these dependencies, or supply their agreed outputs before taking this ticket.

Acceptance criteria

  • Bind durable command identity to case and authoritative tenant.
  • Reload scoped state before each guarded mutation.
  • Reject conflicting tenant metadata without executing the provider.

Implementation constraints

  • Queue messages contain opaque IDs, not case contents or secrets.

Verification to include

  • Process a valid tenant-bound synthetic command.
  • Replay its case ID with another organization and verify no provider call or mutation.

Deliverables

  • Scoped job command and replay-denial probe

Rollout and recovery

Deploy worker guards before new dispatch; quarantine old commands lacking required authority.

Value of the work

For the engineer: Practice tenant-aware keys, foreign keys and direct-write denial tests.

For the team: Review defense in depth for data isolation across ordinary and privileged writers.

Evidence boundaries

Outcome Evidence: Tests, patches, and runbooks are requested deliverables. They become Outcome Evidence only through a qualified Mission and immutable Evidence IDs.

Ownership Evidence: Independent adaptation must be observed under a declared verification policy and cite immutable Evidence IDs. Completing a planning ticket establishes no Ownership Evidence.