Skip to content

Unify how document re-ingestion behaves for all document types #1851

@dejanb

Description

@dejanb

Currently there's a mismatch in how different document types will handle re-ingestion (SBOMs and CSAFs will not be ingested again, while OSVs and CVEs will).

With #1237 the feature to prevent duplicate SBOMs nodes ingestion was introduced. Although support for advisories was added the feature was never fully implemented in this way.

CSAF ingestor does the check in its own way by querying the database for the existing record.

At the moment we are interested in re-ingesting CVE files, which works and does not create any unwanted side-effects.

It would be good to unify how this works for all document types. In the normal usage re-ingestion should be disabled to prevent errors, but there has to be a parameter that would allow it to happen (we would need to reingest documents to add new data that we are not handling at the moment, or fix errors in the ingestion process). This has to be propagated to importers as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions