Why it matters
A product manager identifies who legitimately needs access. A developer must enforce those rules on trusted server paths, including exports, background jobs and integrations.
Core concepts
Specify access per action
A role table is a starting point. Record-level ownership, assignment and team membership may narrow it. Define actions such as view, edit, export and approve. A reviewer may need one action without the others.
Protect all entry points
A route, export and worker can use the same data through different paths. Use shared access checks when they apply. Keep credentials in approved secret storage. Do not put real records, tokens or private logs into debugging prompts or test fixtures.
Make rejection visible and safe
A denied write should leave the durable state intact and give the appropriate user a safe message. Restrict detail in logs to what operators need. Correlation IDs, error categories and counts can support diagnosis without copying sensitive input.
Scope agent tools
Give a review session the smallest useful permission set. Code inspection and approved synthetic fixtures are often enough. Preserve the link between a user, their action and the evidence required for an audit.
Try it step by step
- Write an actor-by-action matrix for one feature. Include an unrelated user and a service job.
- Locate the server decision for each action and check the denied case using authorized synthetic fixtures.
- Document data paths, redaction behavior and the owner who can answer unresolved access questions.
Use a record-level access matrix: actor, action, record relationship, result, audit event and state after denial.
Worked example
Fictional example: A coordinator can read an assigned request. A shared report exports all requests by default. The product decision must state what the report is allowed to contain and the code must enforce that scope for each export.
Review [feature] using the approved actor-by-action matrix and synthetic fixtures.
Inspect server-side access decisions for UI routes, exports and jobs.
Check secret handling, logging, data minimization and denied-write behavior.
Report each finding with location, affected scope, prevention and a safe regression.
Use only the authorized review environment. List checks that need an owner.Common mistake
Testing only with an administrator, or checking the menu but skipping the server decision.
Practice exercise
For a draft approval feature, design access tests for the draft author, another author and a reviewer. Write which user can perform each action and what evidence should remain.
Check your understanding
The user cannot see Edit in a menu. Which check establishes the server permission?
- The menu screenshot
- A controlled denied update using a synthetic record and an unchanged-state check
- A successful administrator edit
Show answer
A controlled denied update using a synthetic record and an unchanged-state check. Menu visibility does not establish what the server permits. The denied fixture and unchanged record test the actual boundary.
Takeaway
Security requirements become reviewable when you name the actor, action and record.