ThreatQ Integration | Fixes Issue Pulling Sources & Attributes - #20042
Conversation
|
💚 CLA has been signed |
ReviewersBuildkite won't run for external contributors automatically; you need to add a comment:
NOTE: https://github.com/elastic/integrations/blob/main/.buildkite/pull-requests.json contains all those details. |
Updated the changelog to reflect the correct pull request link for version 1.39.2.
|
Pinging @elastic/security-service-integrations (Team:Security-Service Integrations) |
|
Is this change backward compatible with earlier versions of ThreatQ? Let's say a user is connected to an earlier version, then will the new query param on the GET request work the same?
Can you point me at the documentation for the API that this integration is using? I was looking at https://helpcenter.threatq.com/assets/HTML/api/ThreatQ_REST_API_Reference_v6.16.0.html and didn't see the API endpoint. |
✅ Elastic Docs Style Checker (Vale)No issues found on modified lines! The Vale linter checks documentation changes against the Elastic Docs style guide. To use Vale locally or report issues, refer to Elastic style guide for Vale. |
The As far as documentation goes, I don't believe there are public docs outlining the endpoints in full detail, just high level. |
Even if it's high level info, can you point me toward where I would find a doc for |
|
@zach-threatq are you ok to proceed with the suggestions made by @andrewkroh and also provide the documentation he requested here. We have a few customers awaiting the integration update to support your latest API, so keen to get this PR merged. Thanks! |
Yes, sorry, just been busy on my end and haven't had a chance to look back at this. I'll check it out and make the changes! |
Co-authored-by: Andrew Kroh <andrew.kroh@elastic.co>
Co-authored-by: Andrew Kroh <andrew.kroh@elastic.co>
|
No issues across the latest commits 1c67a22, d0eb5c8. Review summaryIssues found across earlier commits aa6759b — 1 high
🤖 AI-Generated Review | Vera Review Bot | 📚 Knowledge base: integration-skills
|
|
/test |
|
Tests are failing with:
|
|
This is a known Fleet issue: elastic/kibana#184972 Fleet rejects text vars whose value starts with Workaround: reorder the default so it does not start with default: "sources,attributes,attributes.name,attributes.value,*"instead of: default: "*,sources,attributes,attributes.name,attributes.value" |
Co-authored-by: Andrew Kroh <andrew.kroh@elastic.co>
|
/test |
|
✅ All changelog entries have the correct PR link. |
💚 Build Succeeded
History
|
|
Package ti_threatq - 1.39.2 containing this change is available at https://epr.elastic.co/package/ti_threatq/1.39.2/ |
Bug Fix
Proposed commit message
fix: issue returning sources & attributes from ThreatQ
ThreatQ recently updated the default API response from the Threat Library to exclude
attributesandsourcesby default. The original API response can be maintained by adding thefieldsURL parameter. In addition to the default fields (*), we can ask for theattributesandsourcesfields, which will restore full functionality of the integration & mappings. This commit also specifically asks for attribute names and values to de-clutter the API response.Checklist
changelog.ymlfile.Author's Checklist
N/A
How to test this PR locally
Using a ThreatQ instance on the latest version, ensure that the list of
sourcesandattributesproperly get parsed into an Elastic index record with the default integration configuration.Related issues
N/A
Screenshots
N/A