-
Notifications
You must be signed in to change notification settings - Fork 197
adding enumerated namespaces for the most popular vendors for rpm
and deb
types
#370
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
adding enumerated namespaces for the most popular vendors for rpm
and deb
types
#370
Conversation
Hi, wondering if this is relevant for you. I have seen different namespaces for Oracle Linux (mysql docker)
|
Thanks! |
If it can be useful for PR in my SecDB project (https://secdb.nttzen.cloud/pkg) support this several PURL namespaces for
|
Yes, such a clarification would be great and help avoid ambiguities like anchore/syft#2914. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If it can be useful for PR in my SecDB project (https://secdb.nttzen.cloud/pkg) support this several PURL namespaces for
deb
andrpm
:
Type Namespace
deb debian
deb ubuntu
rpm almalinux
rpm amazonlinux
rpm azurelinux
rpm cbl-mariner
rpm centos
rpm fedora
rpm opensuse
rpm oraclelinux
rpm redhat
rpm rockylinux
rpm suse
@giterlizzi do you mind to suggest this as an update?
Or shall I add this directly?
or @ jacobcalvert do you want to add these?
I'm happy to add these to this PR. Will do that shortly, thanks for taking a look. |
I listed them only as a suggestion because they are the most common ones I have found in tools, SBOM files, etc. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! See some nits for your consideration.
Also can you beat the bushes to get some input from folks involved with some of the distros to provide a quick ack or comment?
PURL-TYPES.rst
Outdated
@@ -545,8 +563,9 @@ rpm | |||
- Examples:: | |||
|
|||
pkg:rpm/fedora/[email protected]?arch=i386&distro=fedora-25 | |||
pkg:rpm/[email protected]?arch=i686&epoch=1&distro=fedora-25 | |||
|
|||
pkg:rpm/rocky/[email protected]?arch=x86_64&distro=rocky-8.6&upstream=acl-2.2.53-1.el8.1.src.rpm |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you mentioned rocklinux above but use rocky here.
pkg:rpm/rocky/[email protected]?arch=x86_64&distro=rocky-8.6&upstream=acl-2.2.53-1.el8.1.src.rpm | |
pkg:rpm/rockylinux/[email protected]?arch=x86_64&distro=rocky-8.6&upstream=acl-2.2.53-1.el8.1.src.rpm |
PURL-TYPES.rst
Outdated
|
||
pkg:rpm/rocky/[email protected]?arch=x86_64&distro=rocky-8.6&upstream=acl-2.2.53-1.el8.1.src.rpm | ||
pkg:rpm/almalinux/[email protected]?arch=x86_64&distro=almalinux-8.4&upstream=acl-2.2.53-1.el8.src.rpm | ||
pkg:rpm/redhat/[email protected]?arch=x86_64&distro=rhel-8.7&upstream=acl-2.2.53-1.el8.src.rpm |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please keep an empty line there
PURL-TYPES.rst
Outdated
pkg:rpm/[email protected]?arch=i686&epoch=1&distro=fedora-25 | ||
|
||
pkg:rpm/rocky/[email protected]?arch=x86_64&distro=rocky-8.6&upstream=acl-2.2.53-1.el8.1.src.rpm | ||
pkg:rpm/almalinux/[email protected]?arch=x86_64&distro=almalinux-8.4&upstream=acl-2.2.53-1.el8.src.rpm |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do you introduce a new upstream
qualifier? I get the intent but I am not sure this is not already entirely determined from the RPM tags.
In all cases, can you leave this out for another PR?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
PURL-TYPES.rst
Outdated
- CBL-Mariner uses ``cbl-mariner`` | ||
- Fedora uses ``fedora`` | ||
- CentOS uses ``centos`` | ||
- Rocky Linux uses ``rockylinux`` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
osv.dev says rocky-linux google/osv.dev#2939
@giterlizzi, do you have a reference for using |
I confirm that there are several PURL variants for AmazonLinux:
Docker Scout SBOM command output:
![]() |
80c1121
to
ea4bc0c
Compare
@pombredanne I'm looking at the |
@pombredanne any thoughts on this? I don't want this set of clarifications to get lost as we need the clarity about proper PURL formats for various Linux distros. |
Description
Several tools are generating purls for packages in various Linux distributions. This change adds clarifications for the expected namespace for the most popular distributions using each package type.