Description
Hei!
I just came across the following blog post by John Mark.
https://aint.johnmark.org/2024/01/07/the-open-source-supply-chain-was-always-broken/
There, he proposes something which I think is a brilliant idea:
Add a sustainability clause to your Software Bills of Materials (SBOM) requirements.
Has there been any discussions around this before?
How would one represent sustainability metadata (e.g. project status or a funding url) in a CycloneDX SBOM?
Personally, I think this type of information is extremely important for an Open Source component/project to pass on to it's users, and for many, it may be a question of life and death for the project. When the project bus-factor is too low for sustainable development, then both upstream developers and downstream users would benefit from this fact to be communicated.
Examples
In the CPAN ecosystem, we operate with a few special signals for this purpose (source: The PAUSE Operating Model; Field names are capitalized for emphasis):
- ADOPTME – The project is abandoned, or the owner has been confirmed to be unresponsive, so the project is now available for adoption (number of maintainers is 0)
- HANDOFF – The project owner is looking for someone to take over the project (number of maintainers is 1 and about to become 0)
- NEEDHELP – The project is understaffed, and requires additional co-maintainers for sustainable and continued development (number of maintainers is too low)
- NOXFER – The project is prevented from being transferred to new owners
In addition, authors may decide that an Open Source project is accepting donations, selling support, or is employing some other income model in order to either make continued development sustainable, or to run a for-profit business around the project. If this is the case, there would be need for an URL for users to use to learn more about these funding options.
- FUNDING_URL – A URL to a webpage describing how the user of a component may fund the continued development of the component.
And related to this, if the component author wishes to conform to EU regulations, there needs to be a way for this to be communicated
- CE_DECLARATION – A URL, linking to declaration of conformance to the EU Cyber Resilience Act, as required in CRA Annex II, point 6; and Chapter III, Article 28; and in Chapter II Article 13(20).
- CE_DOCUMENTATION – A URL linking to supporting information and instructions (CRA Annex II, point 8)
- CE_CONFORMITY_BODY – A URL pointing to the Conformity Assessment Body where this component has been registered (CRA Article 22(4) and Article 58(1))
- CE_SUPPORT_END_DATE – The date for when the support for the component expires (Annex II, point 7)
There might be more fields required (or useful).
Does this make any sense? :-)
Activity
sjn commentedon Mar 18, 2024
BTW, the references (above) to the CRA
may have changed since the 2023-12-20 draft.They did change! I've updated the new articles and points to the 2024-03-12 version that was voted in by the EU parliament.
[-]Request: Add sustainability clauses to CycloneDX[/-][+]Request: Add sustainability fields to CycloneDX[/+][-]Request: Add sustainability fields to CycloneDX[/-][+]Request: Add project sustainability fields to CycloneDX[/+]stevespringett commentedon Mar 23, 2024
Dumb question... What does
CEinCE_DECLARATIONstand for?sjn commentedon Mar 24, 2024
Not a dumb question! It stands for Conformité Européenne, and it's the EU's way of letting manufacturers of devices (and starting in 2024 with the Cyber Resilience Act, "products with digital elements") show that they are conforming to EU law.
The reason I've added it to the list above, is that with the Cyber Resilience Act, they requires a bunch of new fields to be communicated to downstream customers or users. These are laid out in Annex II if the CRA. (Link is to the latest version voted in by the parliament on March 12th 2024. Updates and changes may still be added.)
sjn commentedon Apr 15, 2024
Note to posterity: CRA's Open Source Steward role will probably also need a couple of fields. At the moment, I'm thinking one field for specifying that the open source component is "intended for commercial use", and another one specifying which legal person is accepting the Steward's role.
jkowalleck commentedon Apr 24, 2024
see also:
mjherzog commentedon Apr 26, 2024
This is information that is more likely to apply to a project than a package or component so I am skeptical that it belongs inside an SBOM. And it seems a stretch to say that this would be a practical mechanism to " add a requirement that they [suppliers] contribute to the sustainability of the projects they build into their products."
jkowalleck commentedon Apr 27, 2024
I guess I understand what you mean, but you are wrong.
My reality looks different:
Every month, some packages I use are no longer maintained. My package manager also tells me about these facts. Sometimes the unmaintained package have a note on them, which package to use instead, or whether this package wants to be adopted, which my package manager also tells me about.
Some packages are still maintained, but are looking for funding or additional maintainers - also a thing my package manager might tell me about.
So I completely see the information on a component-level.
I said, the package manager tells me about the mentioned facts. Thing is, I do not monitor these messages, as they run automated in CI/CD pipelines.
What I do monitor is the SBOM that such pipeline produces.
Besides all that, projects may work on several packages. And sometimes they have package-reboots which end up in a package being discontinued, and replaced by another one ... Meaning the project is healthy, but one package is dead.
PS:
CycloneDX is a document standard for more than just SBOM.
sjn commentedon Apr 28, 2024
(The following quote was an original message from @sjn. It was added back in here for context, as the original got deleted, as explained here and here.)
@Ovid, thanks for dropping by! 😁
The reasons I chose to add NOXFER to the suggestions here, are..
sjn commentedon Apr 28, 2024
A quick apropos: OWASP also has a project going on that they call "Common Lifecycle Enumeration", where they want to create an overview with a focus on "lifecycle events" instead of "project sustainability".
Not sure to what extent this project's goals overlap with their's, but maybe someone who has insider knowledge can share some thoughts? @stevespringett 😁
Ovid commentedon Apr 28, 2024
@sjn Sorry for deleting my original comment and leaving your comment orphaned. I deleted it before I saw your response. I realized that this is almost certainly informational, and not binding, so it's a different kind of metadata so my concerns probably don't apply here. Carry on :)
jkowalleck commentedon Apr 28, 2024
ljharb commentedon May 21, 2024
I was asked to share this here: npm's package.json already has a
fundingfield that it'd be convenient for SBOMs to adopt, and the node package maintenance working group has a "support" standard you may find interesting https://github.com/pkgjs/support7 remaining items
jkowalleck commentedon Jun 4, 2024
see also:
sjn commentedon Jun 30, 2024
@jkowalleck, Could you expand on this point? What do you mean?
jkowalleck commentedon Jul 1, 2024
The data might be valid at the time of writing, but may change at any time.
It is a snapshot, isn't it? I mean, projects have a life cycle, they are not static.
sjn commentedon Jul 1, 2024
If we can think of any project sustainability metadata that can be "quickly" fixed, then I guess they may have a "change at any time" quality to them?
My experience is that when projects tend to signal they need help, it's usually either a lengthy process around this (e.g. for gathering sustainable funding, or when searching and vetting for co-maintainers)...
What type of project metadata are you thinking of, when you say that these may change at any time?
ljharb commentedon Jul 1, 2024
Almost anything about project support can change in an instant - all it would take is a change of life circumstances (lost a job, medical emergency, a death) or a change of maintainer (a new maintainer shows up who is willing to offer stronger support guarantees, or a maintainer leaves and the remaining maintainers are only willing to offer weaker guarantees).
A package publish shouldn't be needed to update any aspect of a support policy.
sjn commentedon Jul 1, 2024
I think that making a minor/patch release of a component with just metadata updates sounds like a completely reasonable thing to do. Please note that I'm talking about the support an open source project needs (which is different from the support a project may provide).
Furthermore, having project sustainability metadata closely (and authoritatively) connected to the output of the project just seems sensible to me. Put the metadata inside the published zip file together with the rest of the component code or artifacts!
I get it that some some projects out there wish to refrain from publishing "tiny" updates, but strictly speaking, how the project leaders decide to run their own projects sounds like their own business. I'm looking for ways to communicate upstream signals about sustainability to anyone downstream who cares about these projects, and if we insist that this type of metadata is to be kept separately, I'm afraid they won't be used at all, let alone read.
I'm also assuming we're talking about the "Source SBOMs" (ref) that upstream authors ("Maintainer" in the graph below) could be creating before publishing to some Open Source ecosystem (in the graph: "Language Ecosystem" or "Package Ecosystem" and their downstream consumers).
In my mind, an OSS supply-chain may be simplified to something like this:
stateDiagram-v2 direction TB state "🟥🟨🟦 Maintainer" as environment_maintainer state "🟨 Contributor" as environment_contributor state "🟩 Collaboration Ecosystem" as ecosystem_repo state "🟨🟩 Language Ecosystem" as ecosystem_lang state "🟨🟩 Package Ecosystem" as ecosystem_package state "🟥🟨 Integrator" as environment_integrator state "🟦 Production" as environment_prod [*] --> environment_maintainer ecosystem_repo --> environment_maintainer ecosystem_repo --> environment_contributor ecosystem_repo --> ecosystem_lang environment_maintainer --> ecosystem_repo environment_maintainer --> ecosystem_lang environment_contributor --> ecosystem_repo ecosystem_lang --> ecosystem_lang ecosystem_lang --> ecosystem_package ecosystem_repo --> ecosystem_package ecosystem_package --> ecosystem_package ecosystem_repo --> environment_integrator ecosystem_lang --> environment_integrator ecosystem_package --> environment_integrator environment_integrator --> environment_prod environment_prod --> [*] %% Copyright © 2024 Salve J. Nilsen <sjn@oslo.pm> %% Some rights reserved. Licensed CC-BY-SA-4.0Where these above colors describe different metadata activities some roles may have within the supply-chain. Some of these are 🆕 introductions, needed to live up to obligations in the EU Cyber Resilience Act.
Note
Source and supporting docs for this graph can be found on the CPANSec docs page, though this particular one is from an branch that hasn't been merged at the time of this writing, and the "OSS Steward" and "Manufacturer" roles are relevant when taking the EU Cyber Resilience Act into account. Any corrections and comments to this graph is very welcome in it's issue tracker! 😁
(edit 2024-08-20: updated diagram to simplified version w/o CRA roles)
ljharb commentedon Jul 2, 2024
Things in a package artifact are immutable, and since a support policy is not immutable, and may change on already published versions, it simply doesn't make sense to me to associate its content with a package artifact. The node package management working group's support standard accounts for this by allowing the package to document a URL, at which JSON support policy data may be found.
I'm not clear on what you mean by "what support a project needs" - do you mean like funding?
sjn commentedon Jul 2, 2024
Yes, among other things. I gave a couple examples in the OP, but here are a few more in addition to the ones above:
(work-in-progress source; 2024-07-03: the text above has been updated to the most recent version)
sjn commentedon Aug 19, 2024
Just for anyone reading this;
☝️ This was a message sent by @stevespringett on the OWASP CycloneDX Slack #workstream-oss-sustainability channel.
Want to join? Here's the invite link.
jkowalleck commentedon Dec 5, 2024
similar/related scope and topics:
stevespringett commentedon Aug 28, 2025
Closing this issue as this is being further developed up by Ecma TC54-TG4 as a separate specification. CycloneDX will add a
contributingexternal reference to support the continued work of TC54-TG4.sjn commentedon Aug 28, 2025
Where can we find the new repo/issue?
shoeffner commentedon Aug 28, 2025
The repo for the specific task group seems to be https://github.com/Ecma-TC54/tg4 and I believe the relevant spec is the Component Lifecycle Enumeration (https://tc54.org/cle/).
sjn commentedon Aug 28, 2025
Pretty sure CLE is it's own thing; This is a new and separate spec in the works! 😄
Thanks for the pointers, though. I guess the tc54.org site isn't updated yet. I also see Steve has set up https://github.com/Ecma-TC54/ECMA-xxx-CONTRIBUTING