[tenable_io] - Preserve severity_level filter across export cycles - #19715
Conversation
The vulnerability data stream collects findings through the Tenable vulns export API using the CEL input. The severity filter was set on the initial CEL state and the first export request, but the state-rebuild blocks for status polling, chunk fetching, cancellation, and error paths did not carry severity_level forward. Once the first export completed, severity_level was dropped from the persisted state, so every subsequent export omitted the filter and Tenable returned all severities, including info. Info-severity findings continued to be ingested even when the policy excluded them. Carry severity_level through every state-rebuild block, matching how the other persistent state fields are propagated. Strengthen the vulnerability system test to exercise at least two export cycles against a mock that rejects exports missing the severity filter, so the regression is caught. Co-authored-by: Cursor <cursoragent@cursor.com>
✅ 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. |
|
Pinging @elastic/security-service-integrations (Team:Security-Service Integrations) |
|
👀 I have started reviewing the PR |
Vera Review BotFor the current commit state, I did not find any issues. 🤖 AI-Generated Review | Vera Review Bot | 📚 Knowledge base: integration-skills
|
🚀 Benchmarks reportTo see the full report comment with |
|
✅ All changelog entries have the correct PR link. |
|
👀 I have started reviewing the PR |
Vera Review BotFor the current commit state, I did not find any issues. 🤖 AI-Generated Review | Vera Review Bot | 📚 Knowledge base: integration-skills
|
💚 Build Succeeded
History
cc @ShourieG |
|
Tick the box to add this pull request to the merge queue (same as
|
|
Package tenable_io - 4.11.2 containing this change is available at https://epr.elastic.co/package/tenable_io/4.11.2/ |
Type of change
Proposed commit message
Note
The updated system test mocks are derived from pre-existing system test mocks and do not contain any customer centric data.
Checklist
changelog.ymlfile.Author's Checklist
How to test this PR locally
Related issues
Screenshots