Add CC-BY-4.0 attribution for Red Hat-sourced advisory content#85
Open
rockythorn wants to merge 1 commit into
Open
Add CC-BY-4.0 attribution for Red Hat-sourced advisory content#85rockythorn wants to merge 1 commit into
rockythorn wants to merge 1 commit into
Conversation
Collaborator
Author
|
Companion frontend change that renders this attribution: rocky-linux/errata-frontend#4 |
jdieter
reviewed
Jun 16, 2026
d3efdf6 to
5facf52
Compare
Rocky advisories re-publish Red Hat advisory text (synopsis, description, topic), which Red Hat licenses under CC BY 4.0. That license requires crediting the source, linking to the original advisory and the license, and indicating that changes were made. The published outputs provided none of these. Add attribution across updateinfo.xml (the <rights> line plus source and license references), the v2 and v3 JSON APIs (a structured source object: name, url, vendor, license, licenseUrl), OSV (a source reference, a Red Hat credit, and license fields in database_specific), the RSS feed, and the web template. The wording and links are centralized in apollo/server/attribution.py so every format stays consistent. No schema change is required; the source advisory and its URL are derived from the existing red_hat_advisory relation.
5facf52 to
de32b1c
Compare
Collaborator
Author
|
Revised in response to the review comments here, plus a separate pass on the attribution wording. Everything is folded into the existing single commit (force-pushed). Addressing the review
Wording pass (separate review of the attribution text)
All 14 Bazel test suites pass, and the change was validated end-to-end against a development database — the v2 and v3 advisory APIs, OSV, the live |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Rocky Linux errata advisories (e.g. RLSA-2026:23102) re-publish content from the
corresponding Red Hat advisories — synopsis, description, and topic. Red Hat
licenses that advisory content under CC BY 4.0,
which permits reuse but requires crediting the source, linking to the original
advisory and to the license, and indicating that changes were made. None of
Apollo's published outputs currently do this. This was raised by a member of the
Rocky community.
Approach
Attribution text and links are centralized in a new
apollo/server/attribution.pyand applied to every surface that carries Red Hat-derived text:
<rights>element credits the source advisory underCC BY 4.0, plus
<reference>entries for the source advisory (type="vendor")and the license (
type="other").sourceobject:name,url,vendor,license,licenseUrl.ADVISORYreference, a Red Hat credit, andlicense/license_url/source_advisoryindatabase_specific.advisory and the license.
No database migration is required; the source advisory and its URL are derived
from the existing
red_hat_advisoryrelation. A plain copyright line is kept asa fallback for any advisory without a Red Hat source.
Testing
suites pass.
detail + list, OSV, the live
updateinfo.xml(889 updates in one repo file),RSS, and the web advisory page all carry the attribution.
dnftolerates the newupdateinforeference types, both at thesource level (libsolv/libdnf/libdnf5) and end-to-end via
dnf makecacheonRocky 9.
Notes
rocky-linux/errata-frontend(branchfeature/rhel-advisory-attribution) renders the per-advisory attribution anda site-wide footer notice.