Skip to content

Comments

Add advisory-based VCIO API support with backward-compatible normalization layer#2067

Open
dikshaa2909 wants to merge 1 commit intoaboutcode-org:mainfrom
dikshaa2909:migrate-vcio-advisory-api
Open

Add advisory-based VCIO API support with backward-compatible normalization layer#2067
dikshaa2909 wants to merge 1 commit intoaboutcode-org:mainfrom
dikshaa2909:migrate-vcio-advisory-api

Conversation

@dikshaa2909
Copy link

Summary

Addresses #2002

Add support for advisory-based VCIO API responses while preserving compatibility with the existing vulnerability-based model.

Changes

  • Introduced extract_security_entries() to centralize security entry handling.
  • Added normalize_advisories() to map affected_by_advisories into the existing vulnerability-compatible structure.
  • Preserved current affected_by_vulnerabilities behavior (no schema changes).
  • Added tests covering:
    • Advisory-based responses
    • Backward compatibility
    • Unexpected/empty API responses

Migration Strategy

The VCIO API is migrating from vulnerabilities to advisories.
This PR adds a minimal normalization layer to support both formats without requiring model, template, or database changes.

This enables phased migration while keeping the integration stable and backward compatible.

…rmalization

Signed-off-by: dikshaa2909 <dikshadeware@gmail.com>
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.

1 participant