SLSA
Theme
Text size
GitHub Menu

LinkML schema

Supply-chain Levels for Software Artifacts (SLSA)

A LinkML model of the SLSA specification: its tracks and levels, the roles and systems in a software supply chain, and the in-toto attestations that carry build provenance and verification summaries.

Schema file: slsa.yaml, from src/slsa/schema/slsa.yaml

URI: https://w3id.org/lmodel/slsa

Name: slsa

Diagram#

erDiagram
InTotoAdditionalDigest {
    string algorithm  
    string value  
}
InTotoAnnotation {
    string annotation_key  
    stringList annotation_values  
}
InTotoDigestSet {
    string blake2b  
    string blake2s  
    string dir_hash  
    string git_blob  
    string git_commit  
    string git_tag  
    string git_tree  
    string gost  
    string md5  
    string ripemd160  
    string sha1  
    string sha224  
    string sha256  
    string sha384  
    string sha3_224  
    string sha3_256  
    string sha3_384  
    string sha3_512  
    string sha512  
    string sha512_224  
    string sha512_256  
    string shake128  
    string shake256  
    string sm3  
}
InTotoPredicate {
    string predicate_kind  
}
InTotoResourceDescriptor {
    string content  
    in_toto_resource_uri download_location  
    string media_type  
    string resource_name  
    in_toto_resource_uri resource_uri  
}
InTotoStatementSubject {
    string content  
    in_toto_resource_uri download_location  
    string media_type  
    string resource_name  
    in_toto_resource_uri resource_uri  
}
SlsaAdoptionMetadata {
    SlsaAdoptionChallengeList challenges  
    SlsaAdoptionStrategyList strategies  
}
SlsaBuildDefinition {
    in_toto_type_uri build_type  
    boolean hermetic  
    uri pipeline_orchestrator  
    uri provenance_generation_tool  
}
SlsaBuildImage {
    SlsaBuildEnvironmentLevel build_env_level  
    uri image_uri  
}
SlsaBuildImageProducer {
    string party_name  
    string party_type  
}
SlsaBuildMetadata {
    in_toto_timestamp finished_on  
    string invocation_id  
    in_toto_timestamp started_on  
}
SlsaBuildParameter {
    string parameter_name  
    string parameter_value  
}
SlsaBuildPlatform {
    SlsaBuildLevel build_level  
    in_toto_type_uri builder_id  
    boolean hosted  
}
SlsaBuildProvenance {
    string predicate_kind  
}
SlsaComponentVersion {
    string component  
    string component_version  
}
SlsaControlPlane {

}
SlsaDependencyInventory {
    SlsaDependencyLevel dependency_level  
}
SlsaDocument {

}
SlsaNamedReference {
    boolean protected  
    string reference_name  
    string reference_type  
}
SlsaPackage {
    string ecosystem  
    uri guac_uri  
    string package_name  
    uri security_insights_uri  
}
SlsaPackageRegistry {
    string ecosystem  
    uri registry_uri  
}
SlsaParty {
    string party_name  
    string party_type  
}
SlsaRunDetails {

}
SlsaSourceControlSystem {
    uri scs_uri  
}
SlsaSourceRepository {
    uri repository_uri  
}
SlsaSourceRevision {
    datetime authored_at  
    string authored_by  
    SlsaReviewType review_type  
    string revision_id  
    SlsaSourceLevel source_level  
}
SlsaStatement {
    uri attestation_storage_uri  
    uri signing_tool  
    uri transparency_log_entry  
    in_toto_type_uri predicate_type  
    in_toto_type_uri statement_type  
}

InTotoDigestSet ||--}o InTotoAdditionalDigest : "additional_digests"
InTotoResourceDescriptor ||--|o InTotoDigestSet : "digest"
InTotoResourceDescriptor ||--}o InTotoAnnotation : "annotations"
InTotoStatementSubject ||--|| InTotoDigestSet : "digest"
InTotoStatementSubject ||--}o InTotoAnnotation : "annotations"
SlsaBuildDefinition ||--}o InTotoResourceDescriptor : "resolved_dependencies"
SlsaBuildDefinition ||--}o SlsaBuildParameter : "internal_parameters"
SlsaBuildDefinition ||--}| SlsaBuildParameter : "external_parameters"
SlsaBuildImage ||--|o SlsaBuildImageProducer : "produced_by"
SlsaBuildImage ||--|o SlsaBuildProvenance : "provenance"
SlsaBuildPlatform ||--}o InTotoResourceDescriptor : "builder_dependencies"
SlsaBuildPlatform ||--}o SlsaComponentVersion : "component_versions"
SlsaBuildProvenance ||--|| SlsaBuildDefinition : "build_definition"
SlsaBuildProvenance ||--|| SlsaRunDetails : "run_details"
SlsaControlPlane ||--|o SlsaBuildPlatform : "build_platform"
SlsaDependencyInventory ||--|| InTotoResourceDescriptor : "artifact"
SlsaDependencyInventory ||--}o InTotoResourceDescriptor : "dependencies"
SlsaDocument ||--|o SlsaAdoptionMetadata : "adoption_metadata"
SlsaDocument ||--}o SlsaBuildImage : "build_images"
SlsaDocument ||--}o SlsaBuildPlatform : "build_platforms"
SlsaDocument ||--}o SlsaControlPlane : "control_planes"
SlsaDocument ||--}o SlsaDependencyInventory : "dependency_inventories"
SlsaDocument ||--}o SlsaNamedReference : "named_references"
SlsaDocument ||--}o SlsaPackage : "packages"
SlsaDocument ||--}o SlsaPackageRegistry : "package_registries"
SlsaDocument ||--}o SlsaParty : "parties"
SlsaDocument ||--}o SlsaSourceControlSystem : "source_control_systems"
SlsaDocument ||--}o SlsaSourceRepository : "source_repositories"
SlsaDocument ||--}o SlsaSourceRevision : "source_revisions"
SlsaDocument ||--}o SlsaStatement : "attestations"
SlsaNamedReference ||--|o SlsaSourceRepository : "repository"
SlsaNamedReference ||--|o SlsaSourceRevision : "revision"
SlsaPackage ||--|o SlsaPackageRegistry : "registry"
SlsaPackage ||--}o InTotoResourceDescriptor : "package_artifacts"
SlsaRunDetails ||--|o SlsaBuildMetadata : "build_metadata"
SlsaRunDetails ||--|| SlsaBuildPlatform : "builder"
SlsaRunDetails ||--}o InTotoResourceDescriptor : "byproducts"
SlsaSourceRepository ||--|o SlsaSourceControlSystem : "hosted_by"
SlsaSourceRevision ||--|o SlsaSourceRepository : "repository"
SlsaSourceRevision ||--}o SlsaSourceRevision : "parent_revisions"
SlsaStatement ||--|o InTotoPredicate : "predicate"
SlsaStatement ||--}| InTotoStatementSubject : "subject"

Classes#

ClassDescription
InTotoAdditionalDigestOne digest under an algorithm that InTotoDigestSet does not name, such as an …
InTotoAnnotationOne vendor-specific annotation on a resource descriptor: a key and its values
InTotoDigestSetA set of one or more digests over one artifact, keyed by algorithm, from whic…
InTotoPredicateThe base of every predicate an in-toto statement can carry; predicate_kind na…
        SlsaPredicateThe base of every predicate this schema models; the predicate_kind it takes f…
                SlsaBuildEnvironmentAttestationEvidence of the state of a build environment when a build was dispatched to i…
                SlsaBuildProvenanceThe predicate that says how a build platform produced a set of artifacts, so …
                SlsaSourceProvenanceEvidence from an SCS of how a revision came to exist and which technical cont…
                SlsaVerificationSummaryThe predicate in which a verifier records that it evaluated artifacts against…
InTotoResourceDescriptorA reference to a software artifact or other resource by URI or digest, or the…
        InTotoStatementSubjectOne artifact an in-toto statement is about: a resource descriptor that carrie…
        SlsaVerificationSummaryInputAttestationOne attestation a verifier consulted: a resource descriptor that carries the …
        SlsaVerificationSummaryPolicyThe policy a verification summary applied: a resource descriptor that names t…
InTotoStatementThe statement layer of an in-toto attestation: the subjects it is about, the …
        SlsaStatementAn in-toto statement with the fields this schema adds: where the signed attes…
SlsaAdoptionMetadataThe adoption challenges a deployment meets and the strategies it applies, fro…
SlsaBuildDefinitionThe inputs to a build, in enough detail to initialize it and begin execution;…
SlsaBuildImageThe template a build environment is instantiated from, such as a VM or contai…
SlsaBuildMetadataMetadata about one execution of a build: its identifier and when it started a…
SlsaBuildParameterOne named input to a build, with a string value
SlsaBuildPlatformThe system that runs builds and records their provenance: the transitive clos…
SlsaComponentVersionThe version of one named component of a platform
SlsaControlPlaneThe component of a build platform that orchestrates each build and generates …
SlsaDependencyInventoryThe inventory of every third-party build dependency, direct and transitive, o…
SlsaDependencyLevelCountThe number of an artifact’s transitive dependencies verified at one level, ea…
SlsaDocumentA document that holds SLSA attestations and the parties, platforms, packages,…
SlsaMeasurementThe digest of one component or state of a build environment, to compare with …
SlsaNamedReferenceA user-friendly name for a revision in a repository, such as main or v1
        SlsaBranchA named reference that moves to track a line of development
        SlsaTagA named reference meant never to move once created
SlsaPackageA unit of software distributed under a package name, which is the primary sec…
SlsaPackageRegistryA distribution platform that resolves package names to immutable package arti…
SlsaPartyA person or organization that takes part in a software supply chain, in one o…
        SlsaBuildImageProducerThe party that creates and distributes build images; the hosted build platfor…
        SlsaConsumerA party that uses software a producer provides, verifying its provenance itse…
        SlsaInfrastructureProviderA party that provides software or services to the other roles, such as a pack…
        SlsaProducerA party that creates software and provides it to others, choosing a build pla…
        SlsaVerifierA party that inspects provenance or other attestations and decides whether an…
SlsaRunDetailsWhat is specific to one execution of a build: the platform that ran it, metad…
SlsaSourceControlSystemThe platform or services that host a source repository and enforce its organi…
SlsaSourceRepositoryA self-contained unit that holds a set of files, their revision history and m…
SlsaSourceRevisionA logically immutable snapshot of a repository’s tracked files, with its vers…

Slots#

SlotDescription
additional_digestsThe digests under algorithms this class does not name
adoption_metadataHow the deployment the document describes fares against the adoption study’s …
algorithmThe algorithm’s name, as the key the attestation’s JSON uses, such as svn_rev…
annotation_keyThe annotation’s key
annotation_valuesThe annotation’s values
annotationsVendor-specific annotations on the resource, such as the source references a …
artifactThe artifact whose dependencies are inventoried
attestation_storage_uriWhere the signed attestation is stored or can be fetched
attestationsThe attestations, as in-toto statements with SLSA’s fields
authored_atWhen the revision was created
authored_byThe identity of the person or automation that authored the revision
blake2bThe BLAKE2b digest of the artifact, of 32 to 64 bytes
blake2sThe BLAKE2s digest of the artifact, at its full 32 bytes
build_definitionThe inputs to the build; required at Build L1
build_env_levelThe SLSA Build Environment level this meets
build_idThe immutable identifier of the build execution the environment was assigned …
build_imageThe image the environment was instantiated from
build_imagesThe build images
build_levelThe highest SLSA Build level the platform’s provenance can meet
build_metadataMetadata about this execution of the build
build_platformThe build platform this party or component belongs to or uses
build_platformsThe build platforms
build_typeThe URI of the template that says how to run the build and read its parameter…
builderThe build platform that ran the build and is trusted to have written this pro…
builder_dependenciesDependencies of the platform’s orchestrator that do not run inside the build …
builder_idThe URI that identifies the platform and determines its SLSA Build level
byproductsArtifacts the build produced beside its outputs that may help debugging or in…
challengesThe challenge themes that apply
componentThe component’s name
component_versionThe component’s version string
component_versionsThe version of each named component of a platform
contentThe resource’s content itself, base64-encoded, for a resource small enough to…
control_planesThe control planes of the build platforms
controls_enforcedThe technical controls the SCS enforced when the revision was created, as the…
dependenciesThe dependencies, each as a resource descriptor
dependency_countHow many dependencies were verified at that level
dependency_inventoriesThe dependency inventories
dependency_levelThe SLSA Dependency level the producer’s process meets for this artifact
dependency_levelsHow many transitive dependencies were verified at each level; absent when the…
digestThe cryptographic digests of a resource’s content, keyed by algorithm
dir_hashA digest over a directory’s content by the dirhash Hash1 function, in lowerca…
download_locationWhere the resource can be fetched, when that differs from its identifying URI
ecosystemThe package ecosystem whose rules govern how a package is named and distribut…
external_parametersThe inputs under the tenant’s control; required at Build L1, complete at Buil…
finished_onWhen the build finished
git_blobThe git blob id of a file’s content
git_commitThe git commit id of a source revision
git_tagThe git object id of an annotated tag
git_treeThe git tree id of a source revision’s content, or of any file tree
gostThe GOST R 34
guac_uriWhere a GUAC instance answers queries about the package’s dependency and prov…
hermeticWhether the build could reach only the dependencies it declared, with no othe…
hostedWhether the platform is a hosted service on shared or dedicated infrastructur…
hosted_byThe source control system that hosts the repository
image_uriThe URI that identifies the image version, such as an OCI reference with its …
input_attestationsEvery attestation the verifier consulted, each with a digest; complete when p…
internal_parametersThe inputs the platform sets itself; kept for debugging, incident response an…
invocation_idAn identifier for this build invocation, in a format the builder defines; use…
md5The MD5 digest of the artifact
measured_componentThe component or state that was measured, such as the bootloader, guest kerne…
measurementsThe measurements of the environment’s components taken during boot
media_typeThe IANA media type of the resource’s content
named_referencesThe branches and tags
organization_propertiesProperties the organization defines for the revision, each prefixed ORG_SOURC…
package_artifactsThe immutable artifacts the package name has resolved to
package_nameThe name consumers use to obtain the package within its ecosystem and registr…
package_registriesThe package registries
packagesThe packages
parameter_nameThe parameter’s name
parameter_valueThe parameter’s value
parent_revisionsThe revisions this one descends from, which together form the change history
partiesThe parties, each in its role
party_nameThe party’s name
party_typeThe role the party acts in, one of this class’s descendants
pipeline_orchestratorThe CI/CD system that coordinated the build, named by URI, where it differs f…
policyThe policy the subject was verified against, by URI and preferably by digest …
predicateThe predicate, one of the kinds this schema or an importing one models; predi…
predicate_kindThe kind of predicate, one of this class’s descendants
predicate_typeThe URI that names the predicate’s type and so its schema, such as https://in…
produced_byThe party that created and distributes the image
protectedWhether the organization has the SCS enforce its technical controls on this r…
provenanceThe build provenance of the image itself, required at Build Environment L1
provenance_generation_toolThe tool that generated this provenance, named by URI
reference_nameThe reference’s name, fully qualified in git, such as refs/heads/main
reference_typeThe kind of named reference, one of this class’s descendants
registryThe registry the package is published to
registry_uriThe URI that identifies the registry
repositoryThe source repository this belongs to
repository_uriThe stable locator the SCS gives the repository
resolved_dependenciesThe artifacts fetched during the build, as far as the platform knows them; co…
resource_nameA name for the resource within the attestation that carries it
resource_uriThe URI that identifies a resource, such as a package URL, a git repository a…
review_typeThe form of review that approved the revision
revisionThe source revision this refers to
revision_idThe revision identifier the SCS assigns, such as a git commit id or a path- q…
ripemd160The RIPEMD-160 digest of the artifact
run_detailsWhat is specific to this execution of the build; required at Build L1
scs_uriThe URI that identifies the source control system
security_insights_uriThe SECURITY-INSIGHTS
sha1The SHA-1 digest of the artifact
sha224The SHA-224 digest of the artifact
sha256The SHA-256 digest of the artifact
sha384The SHA-384 digest of the artifact
sha3_224The SHA3-224 digest of the artifact
sha3_256The SHA3-256 digest of the artifact
sha3_384The SHA3-384 digest of the artifact
sha3_512The SHA3-512 digest of the artifact
sha512The SHA-512 digest of the artifact
sha512_224The SHA-512/224 digest of the artifact
sha512_256The SHA-512/256 digest of the artifact
shake128The SHAKE128 digest of the artifact, of at least 32 bytes
shake256The SHAKE256 digest of the artifact, of at least 32 bytes
signing_toolThe tool that signed the attestation, named by URI, such as Cosign or Notatio…
slsa_versionThe SLSA specification version the verifier applied, as MAJOR
sm3The SM3 digest of the artifact
source_control_systemsThe source control systems
source_levelThe SLSA Source level the SCS asserts for the revision
source_repositoriesThe source repositories
source_revisionsThe source revisions
started_onWhen the build started
statement_typeThe in-toto statement type, always https://in-toto
strategiesThe strategy themes applied or recommended
subjectThe artifacts the predicate is about, each with a digest
time_verifiedWhen the verification happened
transparency_log_entryThe transparency log entry that records the signature, such as a Rekor entry
valueThe digest under that algorithm, in the encoding the algorithm documents
verification_resultWhether the subject passed the policy
verified_levelThe level the dependencies were verified at, or a result of the issuer’s own
verified_levelsThe highest level verified in each track, any verified property, and any resu…
verifierThe verifier that made this determination
verifier_idThe URI that identifies the verifier

Enumerations#

EnumerationDescription
SlsaAdoptionChallengeThe four themes of difficulty practitioners met when adopting SLSA
SlsaAdoptionStrategyThe five themes of strategy practitioners proposed for the adoption challenge…
SlsaBuildEnvironmentLevelThe levels of the SLSA Build Environment track, each extending integrity furt…
SlsaBuildLevelThe levels of the SLSA Build track, each adding protection against tampering …
SlsaDependencyLevelThe levels of the SLSA Dependency track, each reducing the risk third-party d…
SlsaResultA result of evaluating an artifact against SLSA: a track level, a verified pr…
SlsaReviewTypeThe forms of review that may approve a revision, including the contested form…
SlsaSourceLevelThe levels of the SLSA Source track, each adding trust in how a revision was …
SlsaVerificationResultThe outcome of verifying an artifact against a policy

Types#

TypeDescription
BooleanA binary (true or false) value
Curiea compact URI
Datea date (year, month and day) in an idealized calendar
DateOrDatetimeEither a date or a datetime
DatetimeThe combination of a date and time
DecimalA real number with arbitrary precision that conforms to the xsd:decimal speci…
DoubleA real number that conforms to the xsd:double specification
FloatA real number that conforms to the xsd:float specification
InTotoResourceUriA URI that identifies or locates a resource, such as a package URL or a git r…
InTotoTimestampA point in time in RFC 3339 format in the UTC time zone, written with a trail…
InTotoTypeUriA URI that names a type, such as a statement’s or a predicate’s, with its sch…
IntegerAn integer
JsonpathA string encoding a JSON Path
JsonpointerA string encoding a JSON Pointer
NcnamePrefix part of CURIE
NodeidentifierA URI, CURIE or BNODE that represents a node in a model
ObjectidentifierA URI or CURIE that represents an object in the model
SlsaResultValueA result as a VSA writes it: one of the SLSA-defined results SlsaResult lists…
SparqlpathA string encoding a SPARQL Property Path
StringA character string
TimeA time object represents a (local) time of day, independent of any particular…
Uria complete URI
Uriorcuriea URI or a CURIE

Subsets#

SubsetDescription
slsa_adoption_studyElements this schema adds from an empirical study of SLSA adoption (Tamanna e…
slsa_build_environment_trackElements of the SLSA Build Environment track, a working-draft track for the i…
slsa_build_trackElements of the SLSA Build track, which measures the trustworthiness of a bui…
slsa_dependency_trackElements of the SLSA Dependency track, a working-draft track for managing ris…
slsa_source_trackElements of the SLSA Source track, which measures how source revisions are cr…
slsa_ssfElements this schema adds from the CNCF TAG-Security Secure Software Factory …