GithubHelp home page GithubHelp logo

Comments (8)

stevespringett avatar stevespringett commented on June 3, 2024 2

Do you plan to map the identifier to certain fields of the SBOM in the schema

Yes.

A generator (or any BOM utility) will only need to read the schema if they want to make use of the mapping. SBOM generators will not need to do anything different than they do today. No changes.

But any BOM utility can then optionally make use of the mappings to aid in conversion, policy evaluation, etc.

from specification.

Mariuxdeangelo avatar Mariuxdeangelo commented on June 3, 2024

Do you plan to map the identifier to certain fields of the SBOM in the schema, or are the SBOM generators adding them?

So, if I initialize the supplier field, is it safe to say that the supplier identifier will always be right here?

Generators might forget to add the identifiers properly or add them in all the wrong places.

Or did I not understand the idea correctly?

from specification.

mrutkows avatar mrutkows commented on June 3, 2024

@Mariuxdeangelo I hope to use/add a "meta:scvs" styled key to each data type in the schema (much like added for "meta:enum".

from specification.

jkowalleck avatar jkowalleck commented on June 3, 2024

I guess e could even grate an XSD extension that would allow adding these flags to out XSD files ....
Not so sure about the protobuff schema files ...

from specification.

stevespringett avatar stevespringett commented on June 3, 2024

Yeah, not too worried about protobuf. But if we find a way to do this in the XSD, that would be great. If not, the JSON Schema is our reference implementation for the specification and the Ecma standard, so its obviously a priority.

from specification.

jkowalleck avatar jkowalleck commented on June 3, 2024

By supporting SCVS BOM Maturity Model in the schema itself, this would allow tool makers to leverage the model and have a build-in mapping.

@stevespringett if we added those markers to a schema, how would this help anybody?
Is there any existing/discrete tool that would read those fields? If there is no such tool yet, where is the spec of such a tool - I mean i could probably come up with some alternatives to this very proposal, so that such a tool would still be functioning ...

I find the proposal waaaay to vague, so I can not see any value in it yet. I would even say it is bloat I would avoid having in the schema files.

from specification.

stevespringett avatar stevespringett commented on June 3, 2024

The CycloneDX SBOM Utility that Matt has created, currently uses Go annotations to do somthing similar. Its very manual however. The idea is to remove the annotations that are specific to the tool, and use the mapping provided by the schema itself. In doing so, other tools would be able to adopt the same approach.

from specification.

jkowalleck avatar jkowalleck commented on June 3, 2024

In doing so, other tools would be able to adopt the same approach.

This would require other tools to follow the same annotation style we would come up now.
I don't see that as a desirable way to work for anybody.


here is another approaches, which is more versatile in many means:
Somebody provides mapping of each SCVS "flag" to (multiple) actual BOM-document targets in form of JSONPath(JSON and YAML documents), XPATH(XML documents), FieldMask(Protobuf documents).

Such mapping is document centric (not schema- nor specification-centric).
Such mapping would not be part of any schema file, but independent.
Such mapping is portable.
Such mapping is machine readable.

example for CycloneDX JSON:

  • urn:owasp:scvs:bom:core:timestamp -> $.metadata.timestamp
  • urn:owasp:scvs:bom:resource:software:sbom -> $..externalReferences[?($.type=='bom')].url
  • ...

This solution is actually one that the SCVS BOM Maturity Model WorkGroup should have come up with in the first place, since this is the most interoperable way (I can think of) of mapping their "Identifier" to an actual data structure.
This is the relevant part: mapping to data structures, since they should not care for capabilities(schema or specification) but actual SBOM data.

These mappings can be provided by the SCVS community without any need for interaction with SBOM standards working groups, so this makes them even independent.

from specification.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.