Skip to content

fix(2.0): streamline RFC 4122 - #1232

Closed
cvas22 wants to merge 4 commits into
CycloneDX:2.0-devfrom
cvas22:fix/1225-rfc4122
Closed

cvas22 wants to merge 4 commits into
CycloneDX:2.0-devfrom
cvas22:fix/1225-rfc4122

Conversation

@cvas22

@cvas22 cvas22 commented Nov 19, 2026 •

Copy link
Copy Markdown

This adds an RFC_4122 group to common, same shape as ISO_3166 in #1220, with a urn def for urn:uuid: values. bom.serialNumber in the root schema now $refs it and the description links RFC 4122 on rfc-editor.org. The pattern is the exact same lowercase one as before, so validation doesn't change.

Notes

serialNumber was the only real usage. The BOM-Link patterns embed the same UUID syntax inside a bigger regex, so there's nothing to $ref there, and I left the JSS module alone since its identifier comes from X.590. That's also why the edit touches the root schema and not only modules.

One question: RFC 4122 has been obsoleted by RFC 9562. Should the name and links move to RFC 9562 in 2.0, or stay on 4122 for now? I kept 4122 to match the issue title.

I checked locally that every 2.0 test resource validates the same before and after.

Add an RFC_4122 urn def to common and point bom.serialNumber at it.
The pattern is unchanged.

Fixes CycloneDX#1225

Signed-off-by: Srinivas Chippagiri <[email protected]>
@cvas22
cvas22 requested a review from a team as a code owner November 19, 2026 18:04
@jkowalleck jkowalleck added this to the 2.0 milestone Nov 20, 2026
@jkowalleck jkowalleck added the CDX 2.0 related to release v2.0 label Nov 20, 2026
@jkowalleck jkowalleck linked an issue Nov 20, 2026 that may be closed by this pull request
Comment thread schema/2.0/cyclonedx-2.0.schema.json Resolved
…mber wording

The pattern only matches lowercase urn:uuid values, so say so in the definition name, and keep 'must conform to RFC 4122' instead of rewording the requirement.

Signed-off-by: Srinivas Chippagiri <[email protected]>
Comment thread schema/2.0/cyclonedx-2.0.schema.json Resolved
RFC 9562 obsoletes RFC 4122 and keeps the same UUID string format and
urn:uuid namespace, so the pattern is unchanged.

Signed-off-by: Srinivas Chippagiri <[email protected]>
@cvas22

cvas22 commented Nov 21, 2026

Copy link
Copy Markdown
Author

I moved the references to RFC 9562 in a separate commit, since it obsoletes RFC 4122 and keeps the same string format and urn:uuid: namespace, so the pattern doesn't change. Links stay on ietf.org like we agreed. If you'd rather keep 4122 for now, I'll just drop that commit.

Comment thread schema/2.0/cyclonedx-2.0.schema.json Outdated
"serialNumber": {
"type": "string",
"title": "BOM Serial Number",
"description": "Every BOM generated SHOULD have a unique serial number, even if the contents of the BOM have not changed over time. If specified, the serial number must conform to [RFC 4122](https://www.ietf.org/rfc/rfc4122.html). Use of serial numbers is recommended.",

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"$defs": {
"urn:uuid-LC": {
"title": "RFC 4122 UUID URN (lowercase)",
"description": "A UUID in its lowercase string representation, prefixed with the `urn:uuid:` namespace, as defined by [RFC 4122](https://www.ietf.org/rfc/rfc4122.html).",

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"$defs": {
"urn:uuid-LC": {
"title": "RFC 9562 UUID URN (lowercase)",
"description": "A UUID in its lowercase string representation, prefixed with the `urn:uuid:` namespace, as defined by [RFC 9562](https://www.ietf.org/rfc/rfc9562.html).",

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the RFC 9562 is NOT about any urn format - it is about how the UUID is crafted.
therefore, this usage here does not actually make sense.

@jkowalleck

Copy link
Copy Markdown
Member

thanks for working on the topic

I dont think the applied implementation makes any sense for us here closing.
feel free to discuss expected outcome in the respective ticket.

@jkowalleck jkowalleck closed this Nov 23, 2026
@jkowalleck

Copy link
Copy Markdown
Member

[...] UUID in its lowercase string representation, prefixed with the urn:uuid: namespace, as defined by RFC 9562

the very verbose description you suggested is pretty good.
I would love to have this for the serial number instead of the current one.

@cvas22 could you open a pull-reqest just improving the existing description of the serial number?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CDX 2.0 related to release v2.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[2.0] streamline RFC 4122

2 participants