Repository navigation
Conversation
…covers a role An Access Request rule of type command runs before the analyzer, so the form lists each selected role that such a rule also covers. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KYT56i5cyocHaNYzijzevr
PR Summary by QodoWarn when Access Request rules cover analyzer roles
AI Description
Diagram
High-Level Assessment
Files changed (5)
|
Code Review by Qodo
1.
|
The warning names the shared attribute, links open in a new tab, and it reads the lists only after both loaded for this page. Logout drops them. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KYT56i5cyocHaNYzijzevr
|
Code review by qodo was updated up to the latest commit 1028929 |
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KYT56i5cyocHaNYzijzevr
|
Code review by qodo was updated up to the latest commit ce6f903 |
|
✅ Build Completed with Success, Version=2122.0.0-gce6f903 |
Opened by the support agent (AI) from ENG-1038.
📝 Description
An Access Request rule of type
commandorjit_commandruns before the AI Session Analyzer, so a role in both waits for approval whatever the risk level (PicPay). The gateway analyzer rule form now lists each selected role that such a rule covers, says how (the role is listed, or a shared attribute), and links to the rule. Save is not blocked.📣 User-facing impact
The AI Session Analyzer rule form warns when an Access Request rule also covers a selected resource role, and names that rule.
🔗 Related Issue
ENG-1038
🚀 Type of Change
📋 Changes Made
AiSessionAnalyzer/helpers.js:accessRequestOverlap, the same match asservices.GetRuleForConnection(names or attributes;command,jit_command), with the reason for each match.AiSessionAnalyzer/store.js: loads attributes. Each list is cleared when its fetch starts and guarded by a request id, and is reset on logout.Create/sections/AccessRequestOverlap.jsx+GatewayAiAnalyzerForm.jsx: the warning under "Roles configuration" waits until both lists have loaded. A load failure says the check could not run. Rule links open in a new tab.🧪 Testing
Result: when an admin selects a resource role that a command Access Request rule also covers, the form says so, names the rule and says how it reaches the role. Independent QA: PASS (round 2, 1028929). ce6f903 adds only the logout request-id bump (unit tests, lint and build pass).
Same seed on both sides:
ar-cmd(command) listspg-cmd;ar-attr(command) covers attributeproductionofpg-attr;ar-jit(jit only) listspg-jit;pg-freehas no rule. Main shows nothing. The branch listspg-cmd(ar-cmd, lists the role) andpg-attr(ar-attr, attribute production).What it solves: admins setting up the AI Session Analyzer see why a medium-risk command still waits for approval, and which Access Request rule to change.
command/jit_commandrule.jit-only rule: no warning. Uncovered role: no warning.webapp_v2/test/aiAnalyzerAccessRequestOverlap.test.js.Re-run:
📄 Additional Notes
🤖 Generated with Claude Code
https://claude.ai/code/session_01KYT56i5cyocHaNYzijzevr