Repository navigation
fix(ci): run the security review on every admin component - #1163
Merged
Merged
Conversation
`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]>
|
🚅 Deployed to the SahajCloud-pr-1163 environment in sahajcloud
1 service not affected by this PR
|
railway-app
Bot
temporarily deployed
to
sahajcloud / SahajCloud-pr-1163
November 15, 2026 18:41
Destroyed
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
securityReview.triggerPatternin.claude/workflow.jsoncovered onlysrc/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 pastmayReadManagerContacts.What changes
triggerPattern:src/components/admin/SignIn/becomessrc/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-staterequest 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 withoverrideAccess: truetoday. 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. Onmainit prints the ticket's seven files.jq -e '.securityReview.triggerPattern' .claude/workflow.jsonexits 0..claude/workflow.json, which no lint, typecheck or test reads.Closes #1153
🤖 Generated with Claude Code