Description
Discussed in #671
Originally posted by andreas-hilti August 10, 2025
I'm wondering about the identifier "bom-ref": shouldn't this rather be called "bom-id"?
If you look at the description https://cyclonedx.org/docs/1.6/json/#components_items_bom-ref
An optional identifier which can be used to reference the component elsewhere in the BOM.
For me, the component has an identifier (which I'd rather call "bom-id"), and this bom-id is then referenced in other places, e.g. in dependencies https://cyclonedx.org/docs/1.6/json/#dependencies_items_ref
References a component or service by its bom-ref attribute
which should rather be:
References a component or service by its bom identifier attribute (bom-id)
Only where it is used/referenced, this is actually a reference.
Could this be considered for CycloneDX 2.0?
For me, the main benefit would be clarity and alignment with standard usage of the term "reference".
Activity
stevespringett commentedon Sep 17, 2026
@andreas-hilti is right. The property names an anchor, not a reference.
bom-refis the identifier an element declares about itself;ref, the various*Reffields, and BOM-Link are the references that resolve to it. Naming the anchor with an id-shaped name removes the confusion.Why not
ididis already in use across the 2.0 model as a domain identifier, and in four cases it sits on the very same object that carriesbom-ref:idholdslicensevulnerabilityCVE-2021-44228requirementdetectionRuleuidandrefare taken as well, also on objects that carrybom-ref. Formulation'sworkflow,task,workspace, andtriggereach carryuid.behaviorNodeandpresenceEvidenceeach carryref.Adopting
idfor the anchor would forcevulnerability.idandlicense.idto be renamed. That trade is not worth making.Why not
bom-idTwo reasons.
bomFormathas already becomespecFormat. Much of the 2.0 model (threats, risks, controls, blueprints, parties, declarations, formulation) is not BOM-specific, and the same models are composed by the API root for the Transparency Exchange API.bom-refandmime-typeare the only two kebab-case names among 713 distinct property names in the 2.0 model, andmime-typeis already queued to becomemediaType. Minting a new kebab-case name keeps a convention violation alive for another major version.The choice:
refIdrefresolves to.Reference-field descriptions change accordingly. The current boilerplate "Reference using bom-link or bom-ref to ..." becomes "References an element by its
refId, or an element in another document by BOM-Link."Scope
In scope: the
bom-refproperty key, plus therefTypeandrefLinkTypedefinitions and their descriptions.Out of scope, deliberately:
urn:cdx:URN scheme are unchanged, including the^(?!urn:cdx:)guard onrefType.ref,*Ref, and*Refscall sites keep their names. Any normalization there is a separate issue.vulnerability.id,license.id,requirement.id, anddetectionRule.idare untouched.Migration surface
84 declaration sites across 29 model schemas, 327 total occurrences of which 204 are inside descriptions, 153 test fixtures, and 2 tooling files.
Cost, stated plainly
bom-refis among the most widely implemented field names in the CycloneDX ecosystem. Every library and every consumer maps it. 2.0 is the only window for this change, and it is the cheapest class of breaking change: one key rename, no remodelling, mechanically convertible in both directions. Raising the cost here so it is on the record before the RFC period rather than after.Comments welcome during the RFC window.
jkowalleck commentedon Sep 18, 2026
RFC notice sent on September 18, 2026
Public RFC period ends October 16, 2026
jkowalleck commentedon Nov 4, 2026
rfc was approved, implementation was done and merged.
this is basically done.
jkowalleck commentedon Nov 23, 2026
PR wasmerged. done