package-url / purl-spec

A minimal specification for purl aka. a package "mostly universal" URL, join the discussion at https://gitter.im/package-url/Lobby
https://github.com/package-url/purl-spec
Other
699 stars 161 forks source link

App Stores #327

Open tonylturner opened 2 months ago

tonylturner commented 2 months ago

Are there plans to support App Stores such as Microsoft or Apple as PURL types?

One of the things I've been exploring is the work by https://github.com/ossf/wg-securing-software-repos and doing some independent evaluation of software delivery channels and it would be great to use PURL to normalize comparative references including app stores.

stevespringett commented 2 months ago

No reason why we can't. We would need the specific details necessary to specify a purl type, which today we do not have those details.

tonylturner commented 2 months ago

Thanks Steve, I'll work on pulling some details together.

tonylturner commented 2 months ago

Example PURL for Apple App Store

pkg:appstore-apple/<namespace>/<name>@<version> pkg:appstore-apple/apple/com.example.myapp@2.1.0 pkg:appstore-apple/com.example.myapp@2.1.0?os=macos&arch=x86_64

Note: There is not a single "Apple App Store" so it may warrant separate PURL types.

tonylturner commented 2 months ago

Additionally, if we want to support many appstores, my thought was to name the type with appstore- as a prefix to logically group appstores. It's not required from my standpoint, but just made sense to me.

bureado commented 1 month ago

Related: https://github.com/package-url/purl-spec/issues/255#issuecomment-1791832392

pombredanne commented 3 weeks ago

@tonylturner This makes all sense. I am not sure we need the appstore prefix though, but this is minor and to refine in a PR review. Ideally I would like to find the most obvious type that could be inferred from scanning actual code