Replies: 2 comments 3 replies
-
The rpmdb recording where an rpm is from (after some fashion) would be amazing. The higher-level tools would need API to be able to pass that information, and we'd need to set an expectation that the information should refer to the "point of distribution" as best as possible. Expounding on that:Consider the following two sets of (end-user) equivalent commands:
It'd have to be specified that these should both record the URI that's constructed via the repository information; ideally the one actually used. Even though in the former Higher level tools should also refrain from providing URIs that are correct in some sense but don't serve the ultimate goal, e.g. Another option would be to record a |
Beta Was this translation helpful? Give feedback.
-
Thinking about this more, it'd be ideal to be able to associate a pair of CPEs with every package, one for the package itself and the other for a repository1. Footnotes
|
Beta Was this translation helpful? Give feedback.
-
rpm doesn't know about rpm-md repositories, that's always lived in higher level things like zypper and yum/dnf etc.
Some of those tools have grown their own databases that live separately from rpm and there's a few tension points from that.
Recently we hit an issue at Red Hat where security scanners really need the repo identifiers for packages in addition to the raw rpmdb.
This PR to clair is I think objectively quite hacky.
It'd be much cleaner to start if this data lived in the rpmdb - that'd mean one API to access it, and it would better express the expected 1-1 mapping of this data - today it's quite easy for the higher level database to become wrong if
rpm
is invoked directly, but if a package was installed directly fromrpm
the field could contain e.g. "file://" or so for a local file orhttp://
for URL.Beta Was this translation helpful? Give feedback.
All reactions