API Reference google_api_container_analysis v0.11.0
Modules
API client metadata for GoogleApi.ContainerAnalysis.V1alpha1.
API calls for all endpoints tagged Projects
.
API calls for all endpoints tagged Providers
.
Handle Tesla connections for GoogleApi.ContainerAnalysis.V1alpha1.
Artifact describes a build product.
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 AttestationAuthority to which this Attestation is attached is primarily useful for look-up (how to find this Attestation if you already know the Authority and artifact to be verified) and intent (which authority was this attestation intended to sign for).
Note kind that represents a logical attestation "role" or "authority". For example, an organization might have one AttestationAuthority
for "QA" and one for "build". This Note is intended to act strictly as a grouping mechanism for the attached Occurrences (Attestations). This grouping mechanism also provides a security boundary, since IAM ACLs gate the ability for a principle to attach an Occurrence to a given Note. It also provides a single point of lookup to find all attached Attestation Occurrences, even if they don't all live in the same project.
This submessage provides human-readable hints about the purpose of the AttestationAuthority. Because the name of a Note acts as its resource reference, it is important to disambiguate the canonical name of the Note (which might be a UUID for security purposes) from "readable" names more suitable for debug output. Note that these hints should NOT be used to look up AttestationAuthorities in security sensitive contexts, such as when looking up Attestations to verify.
Basis describes the base image portion (Note) of the DockerImage relationship. Linked occurrences are derived from this or an equivalent image via: FROM Or an equivalent reference, e.g. a tag of the resource_url.
Associates members
with a role
.
Message encapsulating build provenance details.
Provenance of a build. Contains all information needed to verify the full details about the build from source to completion.
Message encapsulating the signature of the verified build.
Note holding the version of the provider's builder and the signature of the provenance message in linked BuildDetails.
Command describes a step performed as part of the build pipeline.
Request for creating an operation
An artifact that can be deployed in some runtime.
The period during which some deployable was active in a runtime.
Derived describes the derived image portion (Occurrence) of the DockerImage relationship. This image would be produced from a Dockerfile with FROM .
Identifies all occurrences of this vulnerability in the package for a specific distro/location For example: glibc in cpe:/o:debian:debian_linux:8 for versions 2.1 - 2.2
Provides information about the scan status of a discovered resource.
A note that indicates a type of analysis a provider would perform. This note exists in a provider's project. A Discovery
occurrence is created in a consumer's project at the start of analysis. The occurrence's operation will indicate the status of the analysis. Absence of an occurrence linked to this note for a resource indicates that analysis hasn't started.
This represents a particular channel of distribution for a given package. e.g. Debian's jessie-backports dpkg mirror
A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for Empty
is empty JSON object {}
.
Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec. Example (Comparison): title: "Summary size limit" description: "Determines if a summary is less than 100 chars" expression: "document.summary.size() < 100" Example (Equality): title: "Requestor is owner" description: "Determines if requestor is the document owner" expression: "document.owner == request.auth.claims.email" Example (Logic): title: "Public documents" description: "Determine whether the document should be publicly visible" expression: "document.type != 'private' && document.type != 'internal'" Example (Data Manipulation): title: "Notification string" description: "Create a notification string with a timestamp." expression: "'New message received at ' + string(document.create_time)" The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information.
Container message for hashes of byte content of files, used in Source messages to verify integrity of source input to the build.
A set of properties that uniquely identify a given Docker image.
Request message for GetIamPolicy
method.
Encapsulates settings provided to GetIamPolicy.
A summary of how many vulnz occurrences there are per severity type. counts by groups, or if we should have different summary messages like this.
An alias to a repo revision.
A CloudRepoSourceContext denotes a particular revision in a Google Cloud Source Repo.
A SourceContext referring to a Gerrit project.
A GitSourceContext denotes a particular revision in a third party Git repository (e.g., GitHub).
Metadata for all operations used and required for all operations that created by Container Analysis Providers
Selects a repo using a Google Cloud Platform project ID (e.g., winged-cargo-31) and a repo name within that project.
A unique identifier for a Cloud Repo.
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.
Container message for hash values.
This represents how a particular software package may be installed on a system.
Layer holds metadata specific to a layer of a Docker image.
Response including listed occurrences for a note.
Response including listed notes.
Response including listed active occurrences.
A list of scan configs for the project.
An occurrence of a particular package installation found within a system's filesystem. e.g. glibc was found in /var/lib/dpkg/status
Provides a detailed description of a Note
.
Occurrence
includes information about analysis occurrences for an image.
This resource represents a long-running operation that is the result of a network API call.
This represents a particular package that is distributed over various channels. e.g. glibc (aka libc6) is distributed by many, at various versions.
This message wraps a location affected by a vulnerability and its associated fix (if one is available).
An attestation wrapper with a PGP-compatible signature. This message only supports ATTACHED
signatures, where the payload that is signed is included alongside the signature itself in the same file.
An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A Policy
is a collection of bindings
. A binding
binds one or more members
to a single role
. Members can be user accounts, service accounts, Google groups, and domains (such as G Suite). A role
is a named list of permissions; each role
can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a binding
can also specify a condition
, which is a logical expression that allows access to a resource only if the expression evaluates to true
. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the IAM documentation. JSON example: { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 } YAML example: bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a description of IAM and its features, see the IAM documentation.
Metadata for any related URL information
RepoSource describes the location of the source in a Google Cloud Source Repository.
Resource is an entity that can have metadata. E.g., a Docker image.
Indicates various scans and whether they are turned on or off.
Request message for SetIamPolicy
method.
The number of occurrences created for a specific severity.
Source describes the location of the source used for the build.
The Status
type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by gRPC. Each Status
message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the API Design Guide.
StorageSource describes the location of the source in an archive file in Google Cloud Storage.
Request message for TestIamPermissions
method.
Response message for TestIamPermissions
method.
Request for updating an existing operation
The Upgrade Distribution represents metadata about the Upgrade for each operating system (CPE). Some distributions have additional metadata around updates, classifying them into various categories and severities.
An Upgrade Note represents a potential upgrade of a package to a given version. For each package version combination (i.e. bash 4.0, bash 4.1, bash 4.1.2), there will be a Upgrade Note.
An Upgrade Occurrence represents that a specific resource_url 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).
Version contains structured information about the version of the package. For a discussion of this in Debian/Ubuntu: http://serverfault.com/questions/604541/debian-packages-version-convention For a discussion of this in Redhat/Fedora/Centos: http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/
Used by Occurrence to point to where the vulnerability exists and how to fix it.
The location of the vulnerability
VulnerabilityType provides metadata about a security vulnerability.
API client metadata for GoogleApi.ContainerAnalysis.V1beta1.
API calls for all endpoints tagged Projects
.
Handle Tesla connections for GoogleApi.ContainerAnalysis.V1beta1.
An alias to a repo revision.
Artifact describes a build product.
Defines a hash object for use in Materials and Products.
Defines an object to declare an in-toto artifact rule
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 look-up (how to find this attestation if you already know the authority and artifact to be verified) and intent (which authority was this attestation intended to sign for).
Note kind that represents a logical attestation "role" or "authority". For example, an organization might have one Authority
for "QA" and one for "build". This note is intended to act strictly as a grouping mechanism for the attached occurrences (Attestations). This grouping mechanism also provides a security boundary, since IAM ACLs gate the ability for a principle to attach an occurrence to a given note. It also provides a single point of lookup to find all attached attestation occurrences, even if they don't all live in the same project.
Basis describes the base image portion (Note) of the DockerImage relationship. Linked occurrences are derived from this or an equivalent image via: FROM Or an equivalent reference, e.g. a tag of the resource_url.
Request to create notes in batch.
Response for creating notes in batch.
Request to create occurrences in batch.
Response for creating occurrences in batch.
Associates members
with a role
.
Note holding the version of the provider's builder and the signature of the provenance message in the build details occurrence.
Provenance of a build. Contains all information needed to verify the full details about the build from source to completion.
Message encapsulating the signature of the verified build.
Defines an object for the byproducts field in in-toto links. The suggested fields are "stderr", "stdout", and "return-value".
Common Vulnerability Scoring System version 3. For details, see https://www.first.org/cvss/specification-document
A CloudRepoSourceContext denotes a particular revision in a Google Cloud Source Repo.
Command describes a step performed as part of the build pipeline.
An artifact that can be deployed in some runtime.
The period during which some deployable was active in a runtime.
Derived describes the derived image portion (Occurrence) of the DockerImage relationship. This image would be produced from a Dockerfile with FROM .
Identifies all appearances of this vulnerability in the package for a specific distro/location. For example: glibc in cpe:/o:debian:debian_linux:8 for versions 2.1 - 2.2
Details of an attestation occurrence.
Provides information about the analysis status of a discovered resource.
A note that indicates a type of analysis a provider would perform. This note exists in a provider's project. A Discovery
occurrence is created in a consumer's project at the start of analysis.
This represents a particular channel of distribution for a given package. E.g., Debian's jessie-backports dpkg mirror.
A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for Empty
is empty JSON object {}
.
Defines an object for the environment field in in-toto links. The suggested fields are "variables", "filesystem", and "workdir".
Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec. Example (Comparison): title: "Summary size limit" description: "Determines if a summary is less than 100 chars" expression: "document.summary.size() < 100" Example (Equality): title: "Requestor is owner" description: "Determines if requestor is the document owner" expression: "document.owner == request.auth.claims.email" Example (Logic): title: "Public documents" description: "Determine whether the document should be publicly visible" expression: "document.type != 'private' && document.type != 'internal'" Example (Data Manipulation): title: "Notification string" description: "Create a notification string with a timestamp." expression: "'New message received at ' + string(document.create_time)" The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information.
Container message for hashes of byte content of files, used in source messages to verify integrity of source input to the build.
A set of properties that uniquely identify a given Docker image.
Per resource and severity counts of fixable and total vulnerabilities.
An attestation wrapper that uses the Grafeas Signature
message. This attestation must define the serialized_payload
that the signatures
verify and any metadata necessary to interpret that plaintext. The signatures should always be over the serialized_payload
bytestring.
A SourceContext referring to a Gerrit project.
Request message for GetIamPolicy
method.
Encapsulates settings provided to GetIamPolicy.
A GitSourceContext denotes a particular revision in a third party Git repository (e.g., GitHub).
Metadata for all operations used and required for all operations that created by Container Analysis Providers
Details of a build occurrence.
Details of a deployment occurrence.
Details of a discovery occurrence.
Details of an image occurrence.
This corresponds to a signed in-toto link - it is made up of one or more signatures and the in-toto link itself. This is used for occurrences of a Grafeas in-toto note.
A signature object consists of the KeyID used and the signature itself.
Details of a package occurrence.
Details of a vulnerability Occurrence.
Container message for hash values.
This submessage provides human-readable hints about the purpose of the authority. Because the name of a note acts as its resource reference, it is important to disambiguate the canonical name of the Note (which might be a UUID for security purposes) from "readable" names more suitable for debug output. Note that these hints should not be used to look up authorities in security sensitive contexts, such as when looking up attestations to verify.
This contains the fields corresponding to the definition of a software supply chain step in an in-toto layout. This information goes into a Grafeas note.
This represents how a particular software package may be installed on a system.
Attributes
-
name
(type:String.t
, default:nil
) - The KB name (generally of the form KB[0-9]+ i.e. KB123456). -
url
(type:String.t
, default:nil
) - A link to the KB in the Windows update catalog - https://www.catalog.update.microsoft.com/
Layer holds metadata specific to a layer of a Docker image.
This corresponds to an in-toto link.
Response for listing occurrences for a note.
Response for listing notes.
Response for listing occurrences.
Response for listing scan configurations.
An occurrence of a particular package installation found within a system's filesystem. E.g., glibc was found in /var/lib/dpkg/status
.
A type of analysis that can be done for a resource.
An instance of an analysis type that has been found on a resource.
This represents a particular package that is distributed over various channels. E.g., glibc (aka libc6) is distributed by many, at various versions.
This message wraps a location affected by a vulnerability and its associated fix (if one is available).
An attestation wrapper with a PGP-compatible signature. This message only supports ATTACHED
signatures, where the payload that is signed is included alongside the signature itself in the same file.
An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A Policy
is a collection of bindings
. A binding
binds one or more members
to a single role
. Members can be user accounts, service accounts, Google groups, and domains (such as G Suite). A role
is a named list of permissions; each role
can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a binding
can also specify a condition
, which is a logical expression that allows access to a resource only if the expression evaluates to true
. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the IAM documentation. JSON example: { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 3 } YAML example: bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time < timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a description of IAM and its features, see the IAM documentation.
Selects a repo using a Google Cloud Platform project ID (e.g., winged-cargo-31) and a repo name within that project.
Metadata for any related URL information.
A unique identifier for a Cloud Repo.
An entity that can have metadata. For example, a Docker image.
A scan configuration specifies whether Cloud components in a project have a particular type of analysis being run. For example, it can configure whether vulnerability scanning is being done on Docker images or not.
Request message for SetIamPolicy
method.
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 public_key_id
to public key material (and any required parameters, e.g. signing algorithm). In particular, verification implementations MUST NOT treat the signature public_key_id
as anything more than a key lookup hint. The public_key_id
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 public_key_id
is not recognized by the verifier. The public key that public_key_id
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).
This defines the format used to record keys used in the software supply chain. An in-toto link is attested using one or more keys defined in the in-toto layout. An example of this is: { "key_id": "776a00e29f3559e0141b3b096f696abc6cfb0c657ab40f441132b345b0...", "key_type": "rsa", "public_key_value": "-----BEGIN PUBLIC KEY-----\nMIIBojANBgkqhkiG9w0B...", "key_scheme": "rsassa-pss-sha256" } The format for in-toto's key definition can be found in section 4.2 of the in-toto specification.
Source describes the location of the source used for the build.
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.
The Status
type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by gRPC. Each Status
message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the API Design Guide.
Request message for TestIamPermissions
method.
Response message for TestIamPermissions
method.
Version contains structured information about the version of a package.
Vulnerability provides metadata about a security vulnerability in a Note.
The location of the vulnerability.
A summary of how many vulnerability occurrences there are per resource and severity type.
Attributes
-
cpeUri
(type:String.t
, default:nil
) - Required. The CPE URI in cpe format in which the vulnerability manifests. Examples include distro or storage location for vulnerable jar. -
description
(type:String.t
, default:nil
) - The description of the vulnerability. -
fixingKbs
(type:list(GoogleApi.ContainerAnalysis.V1beta1.Model.KnowledgeBase.t)
, default:nil
) - Required. The names of the KBs which have hotfixes to mitigate this vulnerability. Note that there may be multiple hotfixes (and thus multiple KBs) that mitigate a given vulnerability. Currently any listed kb's presence is considered a fix. -
name
(type:String.t
, default:nil
) - Required. The name of the vulnerability.