Skip to content

Populate missing advisory references in ALBS DB and Pulp - #1249

Open
anfimovdm wants to merge 1 commit into
masterfrom
feature/544-update-advisory-references
Open

Populate missing advisory references in ALBS DB and Pulp#1249
anfimovdm wants to merge 1 commit into
masterfrom
feature/544-update-advisory-references

Conversation

@anfimovdm

Copy link
Copy Markdown
Contributor

Add a POST /errata/update_references/ endpoint that inserts references (CVE and others) present in the payload but missing from the errata record. The DB is updated for every record regardless of release state; for already-released advisories a dramatiq task on the "errata" queue appends the missing references to the Pulp UpdateRecord in each repo's latest version and re-publishes so updateinfo.xml reflects them.

Reconciliation is add-only: references are matched by (ref_type, ref_id) and never edited or removed. CVE-type references create/link ErrataCVE rows, mirroring process_new_errata_references.

Also allow riscv64 in the update-record collection arch regex so errata containing riscv64 collections can be re-released.

Closes #544

Add a POST /errata/update_references/ endpoint that inserts references
(CVE and others) present in the payload but missing from the errata
record. The DB is updated for every record regardless of release state;
for already-released advisories a dramatiq task on the "errata" queue
appends the missing references to the Pulp UpdateRecord in each repo's
latest version and re-publishes so updateinfo.xml reflects them.

Reconciliation is add-only: references are matched by (ref_type, ref_id)
and never edited or removed. CVE-type references create/link ErrataCVE
rows, mirroring process_new_errata_references.

Also allow riscv64 in the update-record collection arch regex so errata
containing riscv64 collections can be re-released.

Closes #544
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