Skip to content

Expose RPMTAG_PACKAGER and RPMTAG_URL header tags#18

Open
MackJM wants to merge 3 commits into
anchore:masterfrom
MackJM:anchore-pr/expose-packager-url-tags
Open

Expose RPMTAG_PACKAGER and RPMTAG_URL header tags#18
MackJM wants to merge 3 commits into
anchore:masterfrom
MackJM:anchore-pr/expose-packager-url-tags

Conversation

@MackJM

@MackJM MackJM commented Jun 18, 2026

Copy link
Copy Markdown

PackageInfo already exposes Vendor (tag 1011) but not the Packager or URL
header tags. This adds them, decoded the same way Vendor is:

  • RPMTAG_PACKAGER (1015) → Packager
  • RPMTAG_URL (1020) → URL

Both normalize (none) to an empty string, matching the existing Vendor handling.

I need these downstream for SBOM generation in syft: Packager/Vendor feed the NTIA
supplier field, and URL feeds the package homepage in CycloneDX and SPDX output.

Tests added in pkg/rpmdb_test.go against the existing fixtures; go test ./... passes.

This will be used to try and address the NTIA minimum requires in Syft


Needed by anchore/syft#4991, which implements package supplier determination (anchore/syft#1961, NTIA anchore/syft#632)

Surface the RPM Packager (tag 1015) and URL (tag 1020) header values on
PackageInfo, mirroring how Vendor (tag 1011) is already decoded, so downstream
consumers can populate NTIA supplier and project-homepage fields.

Signed-off-by: MackJM <33904877+MackJM@users.noreply.github.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