Repository navigation
Conversation
Signed-off-by: Tanvir Farhad <tamimtarafder12@gmail.com>
Signed-off-by: Tanvir Farhad <tamimtarafder12@gmail.com>
…ests Signed-off-by: Tanvir Farhad <tamimtarafder12@gmail.com>
…equest body The route was reading g.tenant_id and g.subscription_id which are never set by verify_jwt. Fixed to read tenant_id from g.user['tenant'] (matches the principal dict set by auth.py) and subscription_id from the validated request body, consistent with how scans.py handles it. Signed-off-by: Tanvir Farhad <tamimtarafder12@gmail.com>
…nt isolation test Signed-off-by: Tanvir Farhad <tamimtarafder12@gmail.com>
Signed-off-by: Tanvir Farhad <tamimtarafder12@gmail.com>
…opilot Signed-off-by: Tanvir Farhad <tamimtarafder12@gmail.com>
Signed-off-by: Tanvir Farhad <tamimtarafder12@gmail.com>
…ty, and role access Signed-off-by: Tanvir Farhad <tamimtarafder12@gmail.com>
TFT444
requested review from
Vishnu2707,
parthrohit22 and
ritiksah141
as code owners
October 19, 2026 09:33
Contributor
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.Scanned FilesNone |
…ial scan false positive Signed-off-by: Tanvir Farhad <tamimtarafder12@gmail.com>
…quirements-dev Signed-off-by: Tanvir Farhad <tamimtarafder12@gmail.com>
Signed-off-by: Tanvir Farhad <tamimtarafder12@gmail.com>
This branch has not been 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.
Summary
POST /api/agent/query- a natural-language CSPM Q&A endpoint powered by a ReAct loop over 6 tool functions (get_findings, get_compliance_posture, get_attack_paths, explain_finding, suggest_remediation, scan_subscription)openshield askCLI command for terminal-based queryingChanges by area
api/agent/agent.py- ReAct loop with guardrails (max iterations, prompt injection filter, confidence scoring)tools.py- 6 CSPM tool functions with tenant isolation; added db_conn.rollback() in all except blocksapi/routes/agent.pyapi/app.pycli/- openshield ask command with --subscription-id, --framework, --tenant-id flagsmcp_server.py- MCP server wiring all 6 tools for Claude Desktop / Copilot integrationtests/Test plan
python -m pytest tests/test_agent_tools.py tests/test_agent_loop.py tests/test_agent_route.py tests/test_cli_ask.py tests/test_mcp_server.py -q- 38 passed