Draft: Add execution fallback support to VulnerabilitiesResolver

What does this MR do and why?

Wrap VulnerabilitiesResolver execution with the new ExecutionFallback pipeline to enable future ES -> PG fallback filtering.

This change:

  • Routes resolver queries through ExecutionFallback::VulnerabilitiesResolver
  • Introduces a dedicated fallback class with safe pagination over-fetching
  • Adds a placeholder enrichment module for vulnerabilities
  • Provides a bounded result cap (RESULT_MAX_RECORDS = 500)
  • Establishes the standard pagination overfetch window (×3)
  • Adds specs to verify delegation and configuration

No fallback filters are enabled yet (fallback_filter_config is empty).
This commit lays the groundwork for safely introducing filter-level fallbacks during the ES migration without changing current behaviour.

References

This work is split into three MRs to make adoption incremental and easier to review:

Screenshots or screen recordings

Before After

How to set up and validate locally

The primary way to validate this change is through the test suite.

MR acceptance checklist

Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Ugo Nnanna Okeadu

Merge request reports

Loading