-
Notifications
You must be signed in to change notification settings - Fork 322
feat(integrations): add Google SecOps SOAR integration #1814
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
feat(integrations): add Google SecOps SOAR integration #1814
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1 issue found across 2 files
Prompt for AI agents (all 1 issues)
Check if these issues are valid — if so, understand the root cause of each and fix them.
<file name="packages/tracecat-registry/tracecat_registry/integrations/google_secops_soar.py">
<violation number="1" location="packages/tracecat-registry/tracecat_registry/integrations/google_secops_soar.py:47">
P2: Returning an empty string when `GOOGLE_SECOPS_BASE_URL` is not configured will cause confusing HTTP errors (requests to relative URLs like `/search/CaseSearchEverything`). Consider raising a descriptive error instead, similar to other integrations like splunk.py.</violation>
</file>
Reply to cubic to teach it or ask questions. Re-run a review with @cubic-dev-ai review this PR
packages/tracecat-registry/tracecat_registry/integrations/google_secops_soar.py
Outdated
Show resolved
Hide resolved
packages/tracecat-registry/tracecat_registry/integrations/google_secops_soar.py
Outdated
Show resolved
Hide resolved
- Remove GOOGLE_SECOPS_BASE_URL from secrets - base_url is now a required function argument - Update secret docstring to only include API key - Return original API payload instead of custom success messages - Handle 204 No Content responses properly
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1 issue found across 1 file (changes from recent commits).
Prompt for AI agents (all issues)
Check if these issues are valid — if so, understand the root cause of each and fix them.
<file name="packages/tracecat-registry/tracecat_registry/integrations/google_secops_soar.py">
<violation number="1" location="packages/tracecat-registry/tracecat_registry/integrations/google_secops_soar.py:238">
P2: Missing 204/no-content check that was added to other similar functions in this PR. If the API returns 204 No Content or empty body, `response.json()` will raise a `JSONDecodeError`. Add the same defensive check used in the other modified functions.</violation>
</file>
Reply to cubic to teach it or ask questions. Re-run a review with @cubic-dev-ai review this PR
packages/tracecat-registry/tracecat_registry/integrations/google_secops_soar.py
Show resolved
Hide resolved
Add defensive check for 204 No Content and empty body responses to all remaining functions to prevent JSONDecodeError
topher-lo
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See: #1815 (review)
Summary
Adds Google SecOps (Chronicle) SOAR integration for security case management automation.
Changes
Functions Included
search_casesadd_case_tagassign_user_to_casechange_case_stageupdate_case_priorityupdate_alert_prioritycreate_case_commentupdate_case_commentclose_alertreopen_alertbulk_close_casesAuthentication
Uses API key authentication via
AppKeyheader.Required secrets:
GOOGLE_SECOPS_API_KEY,GOOGLE_SECOPS_BASE_URLUse Cases
Breaking Changes
None - This is a new integration.
Checklist
Summary by cubic
Adds Google SecOps (Chronicle) SOAR integration to automate case and alert workflows in Tracecat. Provides 11 UDFs and a new icon, covering search, lifecycle updates, comments, and bulk actions.
New Features
Migration
Written for commit 2495932. Summary will update automatically on new commits.