A Note on all questions and answers

This FAQ is a good-faith attempt by the GitBOM community to answer common GitBOM questions. This document will evolve over time and as the community grows.

To propose a new question, please open an issue.

To propose a question-answer pair, please open a pull request updating this file.

Gitoids’s are based on sha1, isn’t sha1 broken?

Git itself still uses sha1, and we’d like to be compatible with git and tools that already use gitoids. We plan to update to another hashing algorithm if/when git updates.

shattered.io has found an impressive attack on SHA-1 in PDF files. There are misconceptions about what that means. GitHub has published some analysis of its implications for git.

Git has been considering moving to sha256 for some time. Why doesn’t GitBOM simply adopt that?

Great question. We might - when git does.

Why isn’t information about the compiler/linker included in the GitBOM?

Our view is that build environment information that does not affect the build output should not be represented in the GitBOM. Doing so would invalidate the characteristics of Uniqueness and Artifact Identity.

Why isn’t ${metadata} included in the GitBOM?

GitBOM seeks to have the following characteristics:

  1. Artifact Equivalence: Two artifacts are equivalent IFF []byte(artifact1) == []byte(artifact2).
  2. Artifact Identity: Independent parties derive the same artifact identity when presented with equivalent artifacts.
  3. Immutability: An identified artifact can not be modified without changing its identity.
  4. Uniqueness: An artifact can have precisely one artifact identity graph. All equivalent artifacts have the same graph.

The uniqueness requirement is what drives the exclusion of metadata from GitBOM.

Metadata, stored outside of the GitBOM Artifact Dependency Graph (ADG), may reference any artifact within the graph by a unique id – its gitoid. Similarly, the graph itself can be referenced by its gitoid.

Will the generation of artifact dependency graphs slow down build processes? Will the graphs be very large?

We don’t think so and would be delighted to receive data from very large projects that would either challenge or validate this assumption.

What about files with duplicate hashes?

We don’t think this will be a problem because GitBOM does not include any metadata, such as provenance, timestamp, and licence – the domain of SBOMs.

While duplicate hashes of empty files and regularly copied files (such as LICENSE files) are guaranteed to occur, this does not affect the security properties of GitBOM.

How do Software Heritage Foundation identifiers relate to GitBOM Identifiers?

Software Heritage Foundation Identifiers use git object ids as part of their core identifiers:

SWHIDs for contents, directories, revisions, and releases are, at present, compatible with the Git way of computing identifiers for its objects. The <object_id> part of a SWHID for a content object is the Git blob identifier of any file with the same content; for a revision it is the Git commit identifier for the same revision, etc.

GitBOM uses git object ids as the entire artifact id.

Whereas SWHIDs' core identifier includes additional metadata (see SWHID Syntax): <identifier_core> ::= "swh" ":" <scheme_version> ":" <object_type> ":" <object_id> ; …the git object id is the object’s identifier in a GitBOM document: <gitbom_identifier> ::= <git object id>.

The scheme in which SWHIDs are used is also different from the scheme in which GitBOM identifiers are used in a GitBOM document.