- Resource: Occurrence
- JSON representation
- VulnerabilityOccurrence
- PackageIssue
- FileLocation
- VexAssessment
- BuildOccurrence
- BuildProvenance
- Command
- Artifact
- Source
- FileHashes
- Hash
- SourceContext
- CloudRepoSourceContext
- RepoId
- ProjectRepoId
- AliasContext
- Kind
- GerritSourceContext
- GitSourceContext
- InTotoProvenance
- BuilderConfig
- Recipe
- Metadata
- Completeness
- InTotoStatement
- Subject
- SlsaProvenance
- SlsaBuilder
- SlsaRecipe
- SlsaMetadata
- SlsaCompleteness
- Material
- SlsaProvenanceZeroTwo
- SlsaBuilder
- SlsaInvocation
- SlsaConfigSource
- SlsaMetadata
- SlsaCompleteness
- SlsaMaterial
- InTotoSlsaProvenanceV1
- SlsaProvenanceV1
- BuildDefinition
- ResourceDescriptor
- RunDetails
- ProvenanceBuilder
- BuildMetadata
- ImageOccurrence
- Layer
- PackageOccurrence
- Location
- DeploymentOccurrence
- Platform
- DiscoveryOccurrence
- ContinuousAnalysis
- AnalysisStatus
- AnalysisCompleted
- SBOMStatus
- SBOMState
- AttestationOccurrence
- Signature
- Jwt
- UpgradeOccurrence
- ComplianceOccurrence
- NonCompliantFile
- DSSEAttestationOccurrence
- Envelope
- EnvelopeSignature
- SBOMReferenceOccurrence
- SbomReferenceIntotoPayload
- SbomReferenceIntotoPredicate
- Methods
Resource: Occurrence
An instance of an analysis type that has been found on a resource.
JSON representation |
---|
{ "name": string, "resourceUri": string, "noteName": string, "kind": enum ( |
Fields | |
---|---|
name |
Output only. The name of the occurrence in the form of |
resourceUri |
Required. Immutable. A URI that represents the resource for which the occurrence applies. For example, |
noteName |
Required. Immutable. The analysis note associated with this occurrence, in the form of |
kind |
Output only. This explicitly denotes which of the occurrence details are specified. This field can be used as a filter in list requests. |
remediation |
A description of actions that can be taken to remedy the note. |
createTime |
Output only. The time this occurrence was created. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
updateTime |
Output only. The time this occurrence was last updated. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
envelope |
|
Union field details . Required. Immutable. Describes the details of the note kind found on this resource. details can be only one of the following: |
|
vulnerability |
Describes a security vulnerability. |
build |
Describes a verifiable build. |
image |
Describes how this resource derives from the basis in the associated note. |
package |
Describes the installation of a package on the linked resource. |
deployment |
Describes the deployment of an artifact on a runtime. |
discovery |
Describes when a resource was discovered. |
attestation |
Describes an attestation of an artifact. |
upgrade |
Describes an available package upgrade on the linked resource. |
compliance |
Describes a compliance violation on a linked resource. |
dsseAttestation |
Describes an attestation of an artifact using dsse. |
sbomReference |
Describes a specific SBOM reference occurrences. |
VulnerabilityOccurrence
An occurrence of a severity vulnerability on a resource.
JSON representation |
---|
{ "type": string, "severity": enum ( |
Fields | |
---|---|
type |
The type of package; whether native or non native (e.g., ruby gems, node.js packages, etc.). |
severity |
Output only. The note provider assigned severity of this vulnerability. |
cvssScore |
Output only. The CVSS score of this vulnerability. CVSS score is on a scale of 0 - 10 where 0 indicates low severity and 10 indicates high severity. |
cvssv3 |
The cvss v3 score for the vulnerability. |
packageIssue[] |
Required. The set of affected locations and their fixes (if available) within the associated resource. |
shortDescription |
Output only. A one sentence description of this vulnerability. |
longDescription |
Output only. A detailed description of this vulnerability. |
relatedUrls[] |
Output only. URLs related to this vulnerability. |
effectiveSeverity |
The distro assigned severity for this vulnerability when it is available, otherwise this is the note provider assigned severity. When there are multiple PackageIssues for this vulnerability, they can have different effective severities because some might be provided by the distro while others are provided by the language ecosystem for a language pack. For this reason, it is advised to use the effective severity on the PackageIssue level. In the case where multiple PackageIssues have differing effective severities, this field should be the highest severity for any of the PackageIssues. |
fixAvailable |
Output only. Whether at least one of the affected packages has a fix available. |
cvssVersion |
Output only. CVSS version used to populate cvssScore and severity. |
cvssV2 |
The cvss v2 score for the vulnerability. |
vexAssessment |
|
extraDetails |
Occurrence-specific extra details about the vulnerability. |
PackageIssue
A detail for a distro and package this vulnerability occurrence was found in and its associated fix (if one is available).
JSON representation |
---|
{ "affectedCpeUri": string, "affectedPackage": string, "affectedVersion": { object ( |
Fields | |
---|---|
affectedCpeUri |
Required. The CPE URI this vulnerability was found in. |
affectedPackage |
Required. The package this vulnerability was found in. |
affectedVersion |
Required. The version of the package that is installed on the resource affected by this vulnerability. |
fixedCpeUri |
The CPE URI this vulnerability was fixed in. It is possible for this to be different from the affectedCpeUri. |
fixedPackage |
The package this vulnerability was fixed in. It is possible for this to be different from the affectedPackage. |
fixedVersion |
Required. The version of the package this vulnerability was fixed in. Setting this to VersionKind.MAXIMUM means no fix is yet available. |
fixAvailable |
Output only. Whether a fix is available for this package. |
packageType |
The type of package (e.g. OS, MAVEN, GO). |
effectiveSeverity |
Output only. The distro or language system assigned severity for this vulnerability when that is available and note provider assigned severity when it is not available. |
fileLocation[] |
The location at which this package was found. |
FileLocation
Indicates the location at which a package was found.
JSON representation |
---|
{ "filePath": string } |
Fields | |
---|---|
filePath |
For jars that are contained inside .war files, this filepath can indicate the path to war file combined with the path to jar file. |
VexAssessment
VexAssessment provides all publisher provided Vex information that is related to this vulnerability.
JSON representation |
---|
{ "cve": string, "vulnerabilityId": string, "relatedUris": [ { object ( |
Fields | |
---|---|
cve |
Holds the MITRE standard Common Vulnerabilities and Exposures (CVE) tracking number for the vulnerability. Deprecated: Use vulnerabilityId instead to denote CVEs. |
vulnerabilityId |
The vulnerability identifier for this Assessment. Will hold one of common identifiers e.g. CVE, GHSA etc. |
relatedUris[] |
Holds a list of references associated with this vulnerability item and assessment. |
noteName |
The VulnerabilityAssessment note from which this VexAssessment was generated. This will be of the form: |
state |
Provides the state of this Vulnerability assessment. |
impacts[] |
Contains information about the impact of this vulnerability, this will change with time. |
remediations[] |
Specifies details on how to handle (and presumably, fix) a vulnerability. |
justification |
Justification provides the justification when the state of the assessment if NOT_AFFECTED. |
BuildOccurrence
Details of a build occurrence.
JSON representation |
---|
{ "provenance": { object ( |
Fields | |
---|---|
provenance |
The actual provenance for the build. |
provenanceBytes |
Serialized JSON representation of the provenance, used in generating the build signature in the corresponding build note. After verifying the signature, The serialized form is captured both to avoid ambiguity in how the provenance is marshalled to json as well to prevent incompatibilities with future changes. |
intotoProvenance |
Deprecated. See InTotoStatement for the replacement. In-toto Provenance representation as defined in spec. |
intotoStatement |
In-toto Statement representation as defined in spec. The intotoStatement can contain any type of provenance. The serialized payload of the statement can be stored and signed in the Occurrence's envelope. |
inTotoSlsaProvenanceV1 |
In-Toto Slsa Provenance V1 represents a slsa provenance meeting the slsa spec, wrapped in an in-toto statement. This allows for direct jsonification of a to-spec in-toto slsa statement with a to-spec slsa provenance. |
BuildProvenance
Provenance of a build. Contains all information needed to verify the full details about the build from source to completion.
JSON representation |
---|
{ "id": string, "projectId": string, "commands": [ { object ( |
Fields | |
---|---|
id |
Required. Unique identifier of the build. |
projectId |
ID of the project. |
commands[] |
Commands requested by the build. |
builtArtifacts[] |
Output of the build. |
createTime |
Time at which the build was created. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
startTime |
Time at which execution of the build was started. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
endTime |
Time at which execution of the build was finished. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
creator |
E-mail address of the user who initiated this build. Note that this was the user's e-mail address at the time the build was initiated; this address may not represent the same end-user for all time. |
logsUri |
URI where any logs for this provenance were written. |
sourceProvenance |
Details of the Source input to the build. |
triggerId |
Trigger identifier if the build was triggered automatically; empty if not. |
buildOptions |
Special options applied to this build. This is a catch-all field where build providers can enter any desired additional details. An object containing a list of |
builderVersion |
Version string of the builder at the time this build was executed. |
Command
Command describes a step performed as part of the build pipeline.
JSON representation |
---|
{ "name": string, "env": [ string ], "args": [ string ], "dir": string, "id": string, "waitFor": [ string ] } |
Fields | |
---|---|
name |
Required. Name of the command, as presented on the command line, or if the command is packaged as a Docker container, as presented to |
env[] |
Environment variables set before running this command. |
args[] |
Command-line arguments used when executing this command. |
dir |
Working directory (relative to project source root) used when running this command. |
id |
Optional unique identifier for this command, used in waitFor to reference this command as a dependency. |
waitFor[] |
The ID(s) of the command(s) that this command depends on. |
Artifact
Artifact describes a build product.
JSON representation |
---|
{ "checksum": string, "id": string, "names": [ string ] } |
Fields | |
---|---|
checksum |
Hash or checksum value of a binary, or Docker Registry 2.0 digest of a container. |
id |
Artifact ID, if any; for container images, this will be a URL by digest like |
names[] |
Related artifact names. This may be the path to a binary or jar file, or in the case of a container build, the name used to push the container image to Google Container Registry, as presented to |
Source
Source describes the location of the source used for the build.
JSON representation |
---|
{ "artifactStorageSourceUri": string, "fileHashes": { string: { object ( |
Fields | |
---|---|
artifactStorageSourceUri |
If provided, the input binary artifacts for the build came from this location. |
fileHashes |
Hash(es) of the build source, which can be used to verify that the original source integrity was maintained in the build. The keys to this map are file paths used as build source and the values contain the hash values for those files. If the build source came in a single package such as a gzipped tarfile (.tar.gz), the FileHash will be for the single path to that file. An object containing a list of |
context |
If provided, the source code used for the build came from this location. |
additionalContexts[] |
If provided, some of the source code used for the build may be found in these locations, in the case where the source repository had multiple remotes or submodules. This list will not include the context specified in the context field. |
FileHashes
Container message for hashes of byte content of files, used in source messages to verify integrity of source input to the build.
JSON representation |
---|
{
"fileHash": [
{
object ( |
Fields | |
---|---|
fileHash[] |
Required. Collection of file hashes. |
Hash
Container message for hash values.
JSON representation |
---|
{ "type": string, "value": string } |
Fields | |
---|---|
type |
Required. The type of hash that was performed, e.g. "SHA-256". |
value |
Required. The hash value. A base64-encoded string. |
SourceContext
A SourceContext is a reference to a tree of files. A SourceContext together with a path point to a unique revision of a single file or directory.
JSON representation |
---|
{ "labels": { string: string, ... }, // Union field |
Fields | |
---|---|
labels |
Labels with user defined metadata. An object containing a list of |
Union field context . A SourceContext can refer any one of the following types of repositories. context can be only one of the following: |
|
cloudRepo |
A SourceContext referring to a revision in a Google Cloud Source Repo. |
gerrit |
A SourceContext referring to a Gerrit project. |
git |
A SourceContext referring to any third party Git repo (e.g., GitHub). |
CloudRepoSourceContext
A CloudRepoSourceContext denotes a particular revision in a Google Cloud Source Repo.
JSON representation |
---|
{ "repoId": { object ( |
Fields | |
---|---|
repoId |
The ID of the repo. |
Union field revision . A revision in a Cloud Repo can be identified by either its revision ID or its alias. revision can be only one of the following: |
|
revisionId |
A revision ID. |
aliasContext |
An alias, which may be a branch or tag. |
RepoId
A unique identifier for a Cloud Repo.
JSON representation |
---|
{ // Union field |
Fields | |
---|---|
Union field id . A cloud repo can be identified by either its project ID and repository name combination, or its globally unique identifier. id can be only one of the following: |
|
projectRepoId |
A combination of a project ID and a repo name. |
uid |
A server-assigned, globally unique identifier. |
ProjectRepoId
Selects a repo using a Google Cloud Platform project ID (e.g., winged-cargo-31) and a repo name within that project.
JSON representation |
---|
{ "projectId": string, "repoName": string } |
Fields | |
---|---|
projectId |
The ID of the project. |
repoName |
The name of the repo. Leave empty for the default repo. |
AliasContext
An alias to a repo revision.
JSON representation |
---|
{
"kind": enum ( |
Fields | |
---|---|
kind |
The alias kind. |
name |
The alias name. |
Kind
The type of an alias.
Enums | |
---|---|
KIND_UNSPECIFIED |
Unknown. |
FIXED |
Git tag. |
MOVABLE |
Git branch. |
OTHER |
Used to specify non-standard aliases. For example, if a Git repo has a ref named "refs/foo/bar". |
GerritSourceContext
A SourceContext referring to a Gerrit project.
JSON representation |
---|
{ "hostUri": string, "gerritProject": string, // Union field |
Fields | |
---|---|
hostUri |
The URI of a running Gerrit instance. |
gerritProject |
The full project name within the host. Projects may be nested, so "project/subproject" is a valid project name. The "repo name" is the hostURI/project. |
Union field revision . A revision in a Gerrit project can be identified by either its revision ID or its alias. revision can be only one of the following: |
|
revisionId |
A revision (commit) ID. |
aliasContext |
An alias, which may be a branch or tag. |
GitSourceContext
A GitSourceContext denotes a particular revision in a third party Git repository (e.g., GitHub).
JSON representation |
---|
{ "url": string, "revisionId": string } |
Fields | |
---|---|
url |
Git repository URL. |
revisionId |
Git commit hash. |
InTotoProvenance
JSON representation |
---|
{ "builderConfig": { object ( |
Fields | |
---|---|
builderConfig |
required |
recipe |
Identifies the configuration used for the build. When combined with materials, this SHOULD fully describe the build, such that re-running this recipe results in bit-for-bit identical output (if the build is reproducible). required |
metadata |
|
materials[] |
The collection of artifacts that influenced the build including sources, dependencies, build tools, base images, and so on. This is considered to be incomplete unless metadata.completeness.materials is true. Unset or null is equivalent to empty. |
BuilderConfig
JSON representation |
---|
{ "id": string } |
Fields | |
---|---|
id |
|
Recipe
Steps taken to build the artifact. For a TaskRun, typically each container corresponds to one step in the recipe.
JSON representation |
---|
{ "type": string, "definedInMaterial": string, "entryPoint": string, "arguments": [ { "@type": string, field1: ..., ... } ], "environment": [ { "@type": string, field1: ..., ... } ] } |
Fields | |
---|---|
type |
URI indicating what type of recipe was performed. It determines the meaning of recipe.entryPoint, recipe.arguments, recipe.environment, and materials. |
definedInMaterial |
Index in materials containing the recipe steps that are not implied by recipe.type. For example, if the recipe type were "make", then this would point to the source containing the Makefile, not the make program itself. Set to -1 if the recipe doesn't come from a material, as zero is default unset value for int64. |
entryPoint |
String identifying the entry point into the build. This is often a path to a configuration file and/or a target label within that file. The syntax and meaning are defined by recipe.type. For example, if the recipe type were "make", then this would reference the directory in which to run make as well as which target to use. |
arguments[] |
Collection of all external inputs that influenced the build on top of recipe.definedInMaterial and recipe.entryPoint. For example, if the recipe type were "make", then this might be the flags passed to make aside from the target, which is captured in recipe.entryPoint. Since the arguments field can greatly vary in structure, depending on the builder and recipe type, this is of form "Any". An object containing fields of an arbitrary type. An additional field |
environment[] |
Any other builder-controlled inputs necessary for correctly evaluating the recipe. Usually only needed for reproducing the build but not evaluated as part of policy. Since the environment field can greatly vary in structure, depending on the builder and recipe type, this is of form "Any". An object containing fields of an arbitrary type. An additional field |
Metadata
Other properties of the build.
JSON representation |
---|
{
"buildInvocationId": string,
"buildStartedOn": string,
"buildFinishedOn": string,
"completeness": {
object ( |
Fields | |
---|---|
buildInvocationId |
Identifies the particular build invocation, which can be useful for finding associated logs or other ad-hoc analysis. The value SHOULD be globally unique, per in-toto Provenance spec. |
buildStartedOn |
The timestamp of when the build started. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
buildFinishedOn |
The timestamp of when the build completed. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
completeness |
Indicates that the builder claims certain fields in this message to be complete. |
reproducible |
If true, the builder claims that running the recipe on materials will produce bit-for-bit identical output. |
Completeness
Indicates that the builder claims certain fields in this message to be complete.
JSON representation |
---|
{ "arguments": boolean, "environment": boolean, "materials": boolean } |
Fields | |
---|---|
arguments |
If true, the builder claims that recipe.arguments is complete, meaning that all external inputs are properly captured in the recipe. |
environment |
If true, the builder claims that recipe.environment is claimed to be complete. |
materials |
If true, the builder claims that materials are complete, usually through some controls to prevent network access. Sometimes called "hermetic". |
InTotoStatement
Spec defined at https://github.com/in-toto/attestation/tree/main/spec#statement The serialized InTotoStatement will be stored as Envelope.payload. Envelope.payloadType is always "application/vnd.in-toto+json".
JSON representation |
---|
{ "_type": string, "subject": [ { object ( |
Fields | |
---|---|
_type |
Always |
subject[] |
|
predicateType |
|
Union field
|
|
provenance |
|
slsaProvenance |
|
slsaProvenanceZeroTwo |
|
Subject
JSON representation |
---|
{ "name": string, "digest": { string: string, ... } } |
Fields | |
---|---|
name |
|
digest |
An object containing a list of |
SlsaProvenance
JSON representation |
---|
{ "builder": { object ( |
Fields | |
---|---|
builder |
required |
recipe |
Identifies the configuration used for the build. When combined with materials, this SHOULD fully describe the build, such that re-running this recipe results in bit-for-bit identical output (if the build is reproducible). required |
metadata |
|
materials[] |
The collection of artifacts that influenced the build including sources, dependencies, build tools, base images, and so on. This is considered to be incomplete unless metadata.completeness.materials is true. Unset or null is equivalent to empty. |
SlsaBuilder
JSON representation |
---|
{ "id": string } |
Fields | |
---|---|
id |
|
SlsaRecipe
Steps taken to build the artifact. For a TaskRun, typically each container corresponds to one step in the recipe.
JSON representation |
---|
{ "type": string, "definedInMaterial": string, "entryPoint": string, "arguments": { "@type": string, field1: ..., ... }, "environment": { "@type": string, field1: ..., ... } } |
Fields | |
---|---|
type |
URI indicating what type of recipe was performed. It determines the meaning of recipe.entryPoint, recipe.arguments, recipe.environment, and materials. |
definedInMaterial |
Index in materials containing the recipe steps that are not implied by recipe.type. For example, if the recipe type were "make", then this would point to the source containing the Makefile, not the make program itself. Set to -1 if the recipe doesn't come from a material, as zero is default unset value for int64. |
entryPoint |
String identifying the entry point into the build. This is often a path to a configuration file and/or a target label within that file. The syntax and meaning are defined by recipe.type. For example, if the recipe type were "make", then this would reference the directory in which to run make as well as which target to use. |
arguments |
Collection of all external inputs that influenced the build on top of recipe.definedInMaterial and recipe.entryPoint. For example, if the recipe type were "make", then this might be the flags passed to make aside from the target, which is captured in recipe.entryPoint. Depending on the recipe Type, the structure may be different. An object containing fields of an arbitrary type. An additional field |
environment |
Any other builder-controlled inputs necessary for correctly evaluating the recipe. Usually only needed for reproducing the build but not evaluated as part of policy. Depending on the recipe Type, the structure may be different. An object containing fields of an arbitrary type. An additional field |
SlsaMetadata
Other properties of the build.
JSON representation |
---|
{
"buildInvocationId": string,
"buildStartedOn": string,
"buildFinishedOn": string,
"completeness": {
object ( |
Fields | |
---|---|
buildInvocationId |
Identifies the particular build invocation, which can be useful for finding associated logs or other ad-hoc analysis. The value SHOULD be globally unique, per in-toto Provenance spec. |
buildStartedOn |
The timestamp of when the build started. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
buildFinishedOn |
The timestamp of when the build completed. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
completeness |
Indicates that the builder claims certain fields in this message to be complete. |
reproducible |
If true, the builder claims that running the recipe on materials will produce bit-for-bit identical output. |
SlsaCompleteness
Indicates that the builder claims certain fields in this message to be complete.
JSON representation |
---|
{ "arguments": boolean, "environment": boolean, "materials": boolean } |
Fields | |
---|---|
arguments |
If true, the builder claims that recipe.arguments is complete, meaning that all external inputs are properly captured in the recipe. |
environment |
If true, the builder claims that recipe.environment is claimed to be complete. |
materials |
If true, the builder claims that materials are complete, usually through some controls to prevent network access. Sometimes called "hermetic". |
Material
JSON representation |
---|
{ "uri": string, "digest": { string: string, ... } } |
Fields | |
---|---|
uri |
|
digest |
An object containing a list of |
SlsaProvenanceZeroTwo
See full explanation of fields at slsa.dev/provenance/v0.2.
JSON representation |
---|
{ "builder": { object ( |
Fields | |
---|---|
builder |
|
buildType |
|
invocation |
|
buildConfig |
|
metadata |
|
materials[] |
|
SlsaBuilder
Identifies the entity that executed the recipe, which is trusted to have correctly performed the operation and populated this provenance.
JSON representation |
---|
{ "id": string } |
Fields | |
---|---|
id |
|
SlsaInvocation
Identifies the event that kicked off the build.
JSON representation |
---|
{
"configSource": {
object ( |
Fields | |
---|---|
configSource |
|
parameters |
|
environment |
|
SlsaConfigSource
Describes where the config file that kicked off the build came from. This is effectively a pointer to the source where buildConfig came from.
JSON representation |
---|
{ "uri": string, "digest": { string: string, ... }, "entryPoint": string } |
Fields | |
---|---|
uri |
|
digest |
An object containing a list of |
entryPoint |
|
SlsaMetadata
Other properties of the build.
JSON representation |
---|
{
"buildInvocationId": string,
"buildStartedOn": string,
"buildFinishedOn": string,
"completeness": {
object ( |
Fields | |
---|---|
buildInvocationId |
|
buildStartedOn |
A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
buildFinishedOn |
A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
completeness |
|
reproducible |
|
SlsaCompleteness
Indicates that the builder claims certain fields in this message to be complete.
JSON representation |
---|
{ "parameters": boolean, "environment": boolean, "materials": boolean } |
Fields | |
---|---|
parameters |
|
environment |
|
materials |
|
SlsaMaterial
The collection of artifacts that influenced the build including sources, dependencies, build tools, base images, and so on.
JSON representation |
---|
{ "uri": string, "digest": { string: string, ... } } |
Fields | |
---|---|
uri |
|
digest |
An object containing a list of |
InTotoSlsaProvenanceV1
JSON representation |
---|
{ "_type": string, "subject": [ { object ( |
Fields | |
---|---|
_type |
InToto spec defined at https://github.com/in-toto/attestation/tree/main/spec#statement |
subject[] |
|
predicateType |
|
predicate |
|
SlsaProvenanceV1
Keep in sync with schema at https://github.com/slsa-framework/slsa/blob/main/docs/provenance/schema/v1/provenance.proto Builder renamed to ProvenanceBuilder because of Java conflicts.
JSON representation |
---|
{ "buildDefinition": { object ( |
Fields | |
---|---|
buildDefinition |
|
runDetails |
|
BuildDefinition
JSON representation |
---|
{
"buildType": string,
"externalParameters": {
object
},
"internalParameters": {
object
},
"resolvedDependencies": [
{
object ( |
Fields | |
---|---|
buildType |
|
externalParameters |
|
internalParameters |
|
resolvedDependencies[] |
|
ResourceDescriptor
JSON representation |
---|
{ "name": string, "uri": string, "digest": { string: string, ... }, "content": string, "downloadLocation": string, "mediaType": string, "annotations": { string: value, ... } } |
Fields | |
---|---|
name |
|
uri |
|
digest |
An object containing a list of |
content |
A base64-encoded string. |
downloadLocation |
|
mediaType |
|
annotations |
An object containing a list of |
RunDetails
JSON representation |
---|
{ "builder": { object ( |
Fields | |
---|---|
builder |
|
metadata |
|
byproducts[] |
|
ProvenanceBuilder
JSON representation |
---|
{
"id": string,
"version": {
string: string,
...
},
"builderDependencies": [
{
object ( |
Fields | |
---|---|
id |
|
version |
An object containing a list of |
builderDependencies[] |
|
BuildMetadata
JSON representation |
---|
{ "invocationId": string, "startedOn": string, "finishedOn": string } |
Fields | |
---|---|
invocationId |
|
startedOn |
A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
finishedOn |
A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
ImageOccurrence
Details of the derived image portion of the DockerImage relationship. This image would be produced from a Dockerfile with FROM <DockerImage.Basis in attached Note>.
JSON representation |
---|
{ "fingerprint": { object ( |
Fields | |
---|---|
fingerprint |
Required. The fingerprint of the derived image. |
distance |
Output only. The number of layers by which this image differs from the associated image basis. |
layerInfo[] |
This contains layer-specific metadata, if populated it has length "distance" and is ordered with [distance] being the layer immediately following the base image and [1] being the final layer. |
baseResourceUrl |
Output only. This contains the base image URL for the derived image occurrence. |
Layer
Layer holds metadata specific to a layer of a Docker image.
JSON representation |
---|
{ "directive": string, "arguments": string } |
Fields | |
---|---|
directive |
Required. The recovered Dockerfile directive used to construct this layer. See https://docs.docker.com/engine/reference/builder/ for more information. |
arguments |
The recovered arguments to the Dockerfile directive. |
PackageOccurrence
Details on how a particular software package was installed on a system.
JSON representation |
---|
{ "name": string, "location": [ { object ( |
Fields | |
---|---|
name |
Required. Output only. The name of the installed package. |
location[] |
All of the places within the filesystem versions of this package have been found. |
packageType |
Output only. The type of package; whether native or non native (e.g., ruby gems, node.js packages, etc.). |
cpeUri |
Output only. The cpeUri in CPE format denoting the package manager version distributing a package. The cpeUri will be blank for language packages. |
architecture |
Output only. The CPU architecture for which packages in this distribution channel were built. Architecture will be blank for language packages. |
license |
Licenses that have been declared by the authors of the package. |
version |
Output only. The version of the package. |
Location
An occurrence of a particular package installation found within a system's filesystem. E.g., glibc was found in /var/lib/dpkg/status
.
JSON representation |
---|
{
"cpeUri": string,
"version": {
object ( |
Fields | |
---|---|
cpeUri |
Deprecated. The CPE URI in CPE format |
version |
Deprecated. The version installed at this location. |
path |
The path from which we gathered that this package/version is installed. |
DeploymentOccurrence
The period during which some deployable was active in a runtime.
JSON representation |
---|
{
"userEmail": string,
"deployTime": string,
"undeployTime": string,
"config": string,
"address": string,
"resourceUri": [
string
],
"platform": enum ( |
Fields | |
---|---|
userEmail |
Identity of the user that triggered this deployment. |
deployTime |
Required. Beginning of the lifetime of this deployment. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
undeployTime |
End of the lifetime of this deployment. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
config |
Configuration used to create this deployment. |
address |
Address of the runtime element hosting this deployment. |
resourceUri[] |
Output only. Resource URI for the artifact being deployed taken from the deployable field with the same name. |
platform |
Platform hosting this deployment. |
Platform
Types of platforms.
Enums | |
---|---|
PLATFORM_UNSPECIFIED |
Unknown. |
GKE |
Google Container Engine. |
FLEX |
Google App Engine: Flexible Environment. |
CUSTOM |
Custom user-defined platform. |
DiscoveryOccurrence
Provides information about the analysis status of a discovered resource.
JSON representation |
---|
{ "continuousAnalysis": enum ( |
Fields | |
---|---|
continuousAnalysis |
Whether the resource is continuously analyzed. |
analysisStatus |
The status of discovery for the resource. |
analysisCompleted |
|
analysisError[] |
Indicates any errors encountered during analysis of a resource. There could be 0 or more of these errors. |
analysisStatusError |
When an error is encountered this will contain a LocalizedMessage under details to show to the user. The LocalizedMessage is output only and populated by the API. |
cpe |
The CPE of the resource being scanned. |
lastScanTime |
The last time this resource was scanned. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
archiveTime |
Output only. The time occurrences related to this discovery occurrence were archived. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
sbomStatus |
The status of an SBOM generation. |
ContinuousAnalysis
Whether the resource is continuously analyzed.
Enums | |
---|---|
CONTINUOUS_ANALYSIS_UNSPECIFIED |
Unknown. |
ACTIVE |
The resource is continuously analyzed. |
INACTIVE |
The resource is ignored for continuous analysis. |
AnalysisStatus
Analysis status for a resource. Currently for initial analysis only (not updated in continuous analysis).
Enums | |
---|---|
ANALYSIS_STATUS_UNSPECIFIED |
Unknown. |
PENDING |
Resource is known but no action has been taken yet. |
SCANNING |
Resource is being analyzed. |
FINISHED_SUCCESS |
Analysis has finished successfully. |
COMPLETE |
Analysis has completed. |
FINISHED_FAILED |
Analysis has finished unsuccessfully, the analysis itself is in a bad state. |
FINISHED_UNSUPPORTED |
The resource is known not to be supported. |
AnalysisCompleted
Indicates which analysis completed successfully. Multiple types of analysis can be performed on a single resource.
JSON representation |
---|
{ "analysisType": [ string ] } |
Fields | |
---|---|
analysisType[] |
|
SBOMStatus
The status of an SBOM generation.
JSON representation |
---|
{
"sbomState": enum ( |
Fields | |
---|---|
sbomState |
The progress of the SBOM generation. |
error |
If there was an error generating an SBOM, this will indicate what that error was. |
SBOMState
An enum indicating the progress of the SBOM generation.
Enums | |
---|---|
SBOM_STATE_UNSPECIFIED |
Default unknown state. |
PENDING |
SBOM scanning is pending. |
COMPLETE |
SBOM scanning has completed. |
AttestationOccurrence
Occurrence that represents a single "attestation". The authenticity of an attestation can be verified using the attached signature. If the verifier trusts the public key of the signer, then verifying the signature is sufficient to establish trust. In this circumstance, the authority to which this attestation is attached is primarily useful for lookup (how to find this attestation if you already know the authority and artifact to be verified) and intent (for which authority this attestation was intended to sign.
JSON representation |
---|
{ "serializedPayload": string, "signatures": [ { object ( |
Fields | |
---|---|
serializedPayload |
Required. The serialized payload that is verified by one or more A base64-encoded string. |
signatures[] |
One or more signatures over |
jwts[] |
One or more JWTs encoding a self-contained attestation. Each JWT encodes the payload that it verifies within the JWT itself. Verifier implementation SHOULD ignore the |
Signature
Verifiers (e.g. Kritis implementations) MUST verify signatures with respect to the trust anchors defined in policy (e.g. a Kritis policy). Typically this means that the verifier has been configured with a map from publicKeyId
to public key material (and any required parameters, e.g. signing algorithm).
In particular, verification implementations MUST NOT treat the signature publicKeyId
as anything more than a key lookup hint. The publicKeyId
DOES NOT validate or authenticate a public key; it only provides a mechanism for quickly selecting a public key ALREADY CONFIGURED on the verifier through a trusted channel. Verification implementations MUST reject signatures in any of the following circumstances: * The publicKeyId
is not recognized by the verifier. * The public key that publicKeyId
refers to does not verify the signature with respect to the payload.
The signature
contents SHOULD NOT be "attached" (where the payload is included with the serialized signature
bytes). Verifiers MUST ignore any "attached" payload and only verify signatures with respect to explicitly provided payload (e.g. a payload
field on the proto message that holds this Signature, or the canonical serialization of the proto message that holds this signature).
JSON representation |
---|
{ "signature": string, "publicKeyId": string } |
Fields | |
---|---|
signature |
The content of the signature, an opaque bytestring. The payload that this signature verifies MUST be unambiguously provided with the Signature during verification. A wrapper message might provide the payload explicitly. Alternatively, a message might have a canonical serialization that can always be unambiguously computed to derive the payload. A base64-encoded string. |
publicKeyId |
The identifier for the public key that verifies this signature. * The Examples of valid OpenPGP V4 public key fingerprint: * "openpgp4fpr:74FAF3B861BDA0870C7B6DEF607E48D2A663AEEA" See https://www.iana.org/assignments/uri-schemes/prov/openpgp4fpr for more details on this scheme. RFC6920 digest-named SubjectPublicKeyInfo (digest of the DER serialization): * "ni:///sha-256;cD9o9Cq6LG3jD0iKXqEi_vdjJGecm_iXkbqVoScViaU" * "nih:///sha-256;703f68f42aba2c6de30f488a5ea122fef76324679c9bf89791ba95a1271589a5" |
Jwt
JSON representation |
---|
{ "compactJwt": string } |
Fields | |
---|---|
compactJwt |
The compact encoding of a JWS, which is always three base64 encoded strings joined by periods. For details, see: https://tools.ietf.org/html/rfc7515.html#section-3.1 |
UpgradeOccurrence
An Upgrade Occurrence represents that a specific resourceUrl could install a specific upgrade. This presence is supplied via local sources (i.e. it is present in the mirror and the running system has noticed its availability). For Windows, both distribution and windowsUpdate contain information for the Windows update.
JSON representation |
---|
{ "package": string, "parsedVersion": { object ( |
Fields | |
---|---|
package |
Required for non-Windows OS. The package this Upgrade is for. |
parsedVersion |
Required for non-Windows OS. The version of the package in a machine + human readable form. |
distribution |
Metadata about the upgrade for available for the specific operating system for the resourceUrl. This allows efficient filtering, as well as making it easier to use the occurrence. |
windowsUpdate |
Required for Windows OS. Represents the metadata about the Windows update. |
ComplianceOccurrence
An indication that the compliance checks in the associated ComplianceNote were not satisfied for particular resources or a specified reason.
JSON representation |
---|
{ "nonCompliantFiles": [ { object ( |
Fields | |
---|---|
nonCompliantFiles[] |
|
nonComplianceReason |
|
version |
The OS and config version the benchmark was run on. |
NonCompliantFile
Details about files that caused a compliance check to fail. displayCommand is a single command that can be used to display a list of non compliant files. When there is no such command, we can also iterate a list of non compliant file using 'path'.
JSON representation |
---|
{ "path": string, "displayCommand": string, "reason": string } |
Fields | |
---|---|
path |
Empty if |
displayCommand |
Command to display the non-compliant files. |
reason |
Explains why a file is non compliant for a CIS check. |
DSSEAttestationOccurrence
Deprecated. Prefer to use a regular Occurrence, and populate the Envelope at the top level of the Occurrence.
JSON representation |
---|
{ "envelope": { object ( |
Fields | |
---|---|
envelope |
If doing something security critical, make sure to verify the signatures in this metadata. |
Union field
|
|
statement |
|
Envelope
MUST match https://github.com/secure-systems-lab/dsse/blob/master/envelope.proto. An authenticated message of arbitrary type.
JSON representation |
---|
{
"payload": string,
"payloadType": string,
"signatures": [
{
object ( |
Fields | |
---|---|
payload |
A base64-encoded string. |
payloadType |
|
signatures[] |
|
EnvelopeSignature
JSON representation |
---|
{ "sig": string, "keyid": string } |
Fields | |
---|---|
sig |
A base64-encoded string. |
keyid |
|
SBOMReferenceOccurrence
The occurrence representing an SBOM reference as applied to a specific resource. The occurrence follows the DSSE specification. See https://github.com/secure-systems-lab/dsse/blob/master/envelope.md for more details.
JSON representation |
---|
{ "payload": { object ( |
Fields | |
---|---|
payload |
The actual payload that contains the SBOM reference data. |
payloadType |
The kind of payload that SbomReferenceIntotoPayload takes. Since it's in the intoto format, this value is expected to be 'application/vnd.in-toto+json'. |
signatures[] |
The signatures over the payload. |
SbomReferenceIntotoPayload
The actual payload that contains the SBOM Reference data. The payload follows the intoto statement specification. See https://github.com/in-toto/attestation/blob/main/spec/v1.0/statement.md for more details.
JSON representation |
---|
{ "_type": string, "predicateType": string, "subject": [ { object ( |
Fields | |
---|---|
_type |
Identifier for the schema of the Statement. |
predicateType |
URI identifying the type of the Predicate. |
subject[] |
Set of software artifacts that the attestation applies to. Each element represents a single software artifact. |
predicate |
Additional parameters of the Predicate. Includes the actual data about the SBOM. |
SbomReferenceIntotoPredicate
A predicate which describes the SBOM being referenced.
JSON representation |
---|
{ "referrerId": string, "location": string, "mimeType": string, "digest": { string: string, ... } } |
Fields | |
---|---|
referrerId |
The person or system referring this predicate to the consumer. |
location |
The location of the SBOM. |
mimeType |
The mime type of the SBOM. |
digest |
A map of algorithm to digest of the contents of the SBOM. An object containing a list of |
Methods |
|
---|---|
|
Creates new occurrences in batch. |
|
Creates a new occurrence. |
|
Deletes the specified occurrence. |
|
Gets the specified occurrence. |
|
Gets the access control policy for a note or an occurrence resource. |
|
Gets the note attached to the specified occurrence. |
|
Gets a summary of the number and severity of occurrences. |
|
Lists occurrences for the specified project. |
|
Updates the specified occurrence. |
|
Sets the access control policy on the specified note or occurrence. |
|
Returns the permissions that a caller has on the specified note or occurrence. |