Skip to content

fix(openvasd): exclude include files from VT details - #2454

Merged
tehforsch merged 1 commit into
mainfrom
fix/2451-filter-inc-vts
Nov 26, 2026
Merged

tehforsch merged 1 commit into
mainfrom
fix/2451-filter-inc-vts

Conversation

@clawosiris

Copy link
Copy Markdown
Contributor

What Problem This Solves

OpenVASD stores NASL .inc dependencies as synthetic plugin rows so feed integrity and scan execution can use them. The OID-only VT API already filters those rows, but GET /vts?information=1 exposed them as empty vulnerability tests. gvmd rejects the first empty include record and rolls back the complete direct-OpenVASD VT import.

Why This Change Was Made

Apply the existing public-VT boundary consistently to the detailed SQLite stream. The include rows remain stored and available internally; only the public detailed response excludes them.

The regression coverage verifies that:

  • both OID-only and detailed responses exclude .inc records;
  • normal NASL VTs remain present;
  • Notus advisory VTs remain present;
  • the detailed response snapshot removes only the synthetic include entry.

User Impact

gvmd can consume the detailed OpenVASD VT stream without failing on internal include dependencies. This unblocks direct-OpenVASD feed synchronization and downstream scan configuration discovery.

Evidence

  • cargo fmt --all --check — passed
  • cargo test --bin openvasd api_tests::get_vts -- --nocapture — 2 passed
  • git diff --check — passed
  • Strict workspace/all-targets/all-features Clippy was run with -D warnings; it reaches two pre-existing dead-code warnings in unchanged tests (TestScan::stop and ScanEndpoint::Default).

Fixes #2451

Agent: Thoth
Model: gpt-5.6-terra
Thinking: high
Bot-Owner: @llunved

@clawosiris
clawosiris requested a review from a team as a code owner November 13, 2026 18:15
@github-actions

github-actions Bot commented Nov 13, 2026 •

Copy link
Copy Markdown

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Snapshot Warnings

⚠️: No snapshots were found for the head SHA 8cbec12.
Ensure that dependencies are being submitted on PR branches and consider enabling retry-on-snapshot-warnings. See the documentation for more information and troubleshooting advice.

Scanned Files

None

@github-actions github-actions Bot added the needs_review Needs a review. This means the PR was either newly opened or the last review has been addressed label Nov 13, 2026
@clawosiris
clawosiris force-pushed the fix/2451-filter-inc-vts branch from aa945fa to d6e3cbe Compare November 13, 2026 18:29
@github-actions github-actions Bot added needs_review Needs a review. This means the PR was either newly opened or the last review has been addressed and removed needs_review Needs a review. This means the PR was either newly opened or the last review has been addressed labels Nov 13, 2026
Filter internal NASL include records from the detailed VT stream while preserving them in storage for integrity checks and execution. Add endpoint regressions covering both response shapes and preserving NASL and advisory VTs.

Agent: Thoth
Model: gpt-5.6-terra
Thinking: high
Bot-Owner: @llunved
@tehforsch
tehforsch force-pushed the fix/2451-filter-inc-vts branch from d6e3cbe to 8cbec12 Compare November 19, 2026 10:41
@github-actions github-actions Bot added needs_review Needs a review. This means the PR was either newly opened or the last review has been addressed and removed needs_review Needs a review. This means the PR was either newly opened or the last review has been addressed labels Nov 19, 2026

@tehforsch tehforsch left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Allowed myself to rebase this by removing some unnecessary verbosity, otherwise looks fine

@tehforsch
tehforsch enabled auto-merge November 19, 2026 10:42
@github-actions github-actions Bot removed the needs_review Needs a review. This means the PR was either newly opened or the last review has been addressed label Nov 19, 2026
@tehforsch
tehforsch added this pull request to the merge queue Nov 26, 2026
Merged via the queue into main with commit e3ef504 Nov 26, 2026
41 of 45 checks passed
@tehforsch
tehforsch deleted the fix/2451-filter-inc-vts branch November 26, 2026 12:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

openvasd: exclude NASL include libraries from VT API responses

2 participants