noCV
ACCESS-104 · Enforce at every boundary

Stop a document lookup from revealing foreign filenames

Practice briefBugFoundational

A foreign document request returns Forbidden: invoice-acme-september.pdf. Download is blocked, but the error itself leaks the other partner's filename.

Focused work estimate
1h 30m + prerequisites
Priority in the scenario
High
Engineering practice
Error hygiene · Information disclosure · Read authorization

Estimated field mix

  • Security70%
  • API design30%

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 manufacturing company shares purchase-order documents with partner organizations. Buyers, partner administrators, and read-only agents use the same API. Recent support reports suggest list filters and background downloads disagree about who may see an order.

Setup prerequisites

  • HTTP APIs
  • Session authentication
  • Tenant-scoped data access

Preceding work

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

Acceptance criteria

  • Use the same public not-found response for missing and out-of-scope documents.
  • Do not include filename, owner, storage key, or existence hints in denied responses.
  • Keep an internal denial reason behind authorized audit access.

Implementation constraints

  • Apply the projection to metadata and download-link routes, not just the file response.

Verification to include

  • Retrieve an authorized filename normally.
  • Compare missing and foreign-document response bodies and inspect sanitized logs.

Deliverables

  • Document denial projection and metadata-leak regression

Rollout and recovery

Replace external error text immediately in the fixture routes; keep internal reason codes for diagnosis.

Value of the work

For the engineer: Practice authorization as a service-level invariant, including revocation timing, concurrent membership changes, and asynchronous data delivery.

For the team: Inspect a concrete record of cross-organization denial, least-privilege decisions, and access-recovery behavior using fictional partner records.

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.