Skip to content

fix(ci): run the security review on every admin component - #1163

Merged
Ardnived merged 1 commit into
mainfrom
fix/security-review-admin-components
Nov 15, 2026
Merged

Ardnived merged 1 commit into
mainfrom
fix/security-review-admin-components

Conversation

@Ardnived

Copy link
Copy Markdown
Contributor

Why

securityReview.triggerPattern in .claude/workflow.json covered only src/components/admin/SignIn/ under the admin components. A change reading personal data past the caller's access anywhere else there merged with no security review. PR #1147 did exactly that: it read managers' names and emails on the Atlas start page, deliberately past mayReadManagerContacts.

What changes

  • triggerPattern: src/components/admin/SignIn/ becomes src/components/admin/. The sign-in page stays covered. Nothing else changes.
  • rationale: now says why the admin components are in scope.

The folder, not the seven files. A server field component answers a form-state request for whatever row the caller names, so every one of them owes its own read gate (docs/rules/admin-ui.md § "A server field component owes its own read gate", #1126). The risk comes from the folder, not from the seven files that read with overrideAccess: true today. A file list would miss the eighth.

The cost: every PR that touches src/components/admin/ (about 250 files) now gets a security review, including the many components that read nothing.

Test plan

  • PATTERN=$(jq -r '.securityReview.triggerPattern' .claude/workflow.json); grep -rl "overrideAccess: true" src/components/admin/ | grep -vE "$PATTERN" prints nothing. On main it prints the ticket's seven files.
  • jq -e '.securityReview.triggerPattern' .claude/workflow.json exits 0.
  • Prettier passes on the file.
  • Lean gate not run. The diff touches only .claude/workflow.json, which no lint, typecheck or test reads.

Closes #1153

🤖 Generated with Claude Code

`securityReview.triggerPattern` covered only `src/components/admin/SignIn/`,
so a change that reads past the caller's access anywhere else under the admin
components merged with no security review. PR #1147 did exactly that: it read
managers' names and emails on the Atlas start page past
`mayReadManagerContacts`.

The pattern now names the whole folder rather than the seven files that read
with `overrideAccess: true` today. A server field component answers a
`form-state` request for a row the caller chooses, so any of them owes its own
read gate (docs/rules/admin-ui.md, #1126). The hazard belongs to the folder.

Closes #1153

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@railway-app

railway-app Bot commented Nov 15, 2026 •

Copy link
Copy Markdown

🚅 Deployed to the SahajCloud-pr-1163 environment in sahajcloud

Service Status Web Updated
SahajCloud ✅ Success (View Logs) Web Nov 15, 2026 at 6:44 pm UTC
1 service not affected by this PR
  • mailpit

@railway-app
railway-app Bot temporarily deployed to sahajcloud / SahajCloud-pr-1163 November 15, 2026 18:41 Destroyed
@sydevs-bot sydevs-bot moved this from Pending to Awaiting in SYDevelopers Technical Roadmap Nov 15, 2026
@Ardnived
Ardnived merged commit 674d66c into main Nov 15, 2026
8 of 9 checks passed
@Ardnived
Ardnived deleted the fix/security-review-admin-components branch November 15, 2026 18:46
@sydevs-bot sydevs-bot moved this from Awaiting to Done in SYDevelopers Technical Roadmap Nov 15, 2026

This branch was successfully deployed

No deployments
sahajcloud / SahajCloud-pr-1163 — 0f4d3157 Deployed Nov 15, 2026 by railway-app[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

fix(ci): security review misses admin reads past access control

1 participant