Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1 | <html><body> |
| 2 | <style> |
| 3 | |
| 4 | body, h1, h2, h3, div, span, p, pre, a { |
| 5 | margin: 0; |
| 6 | padding: 0; |
| 7 | border: 0; |
| 8 | font-weight: inherit; |
| 9 | font-style: inherit; |
| 10 | font-size: 100%; |
| 11 | font-family: inherit; |
| 12 | vertical-align: baseline; |
| 13 | } |
| 14 | |
| 15 | body { |
| 16 | font-size: 13px; |
| 17 | padding: 1em; |
| 18 | } |
| 19 | |
| 20 | h1 { |
| 21 | font-size: 26px; |
| 22 | margin-bottom: 1em; |
| 23 | } |
| 24 | |
| 25 | h2 { |
| 26 | font-size: 24px; |
| 27 | margin-bottom: 1em; |
| 28 | } |
| 29 | |
| 30 | h3 { |
| 31 | font-size: 20px; |
| 32 | margin-bottom: 1em; |
| 33 | margin-top: 1em; |
| 34 | } |
| 35 | |
| 36 | pre, code { |
| 37 | line-height: 1.5; |
| 38 | font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; |
| 39 | } |
| 40 | |
| 41 | pre { |
| 42 | margin-top: 0.5em; |
| 43 | } |
| 44 | |
| 45 | h1, h2, h3, p { |
| 46 | font-family: Arial, sans serif; |
| 47 | } |
| 48 | |
| 49 | h1, h2, h3 { |
| 50 | border-bottom: solid #CCC 1px; |
| 51 | } |
| 52 | |
| 53 | .toc_element { |
| 54 | margin-top: 0.5em; |
| 55 | } |
| 56 | |
| 57 | .firstline { |
| 58 | margin-left: 2 em; |
| 59 | } |
| 60 | |
| 61 | .method { |
| 62 | margin-top: 1em; |
| 63 | border: solid 1px #CCC; |
| 64 | padding: 1em; |
| 65 | background: #EEE; |
| 66 | } |
| 67 | |
| 68 | .details { |
| 69 | font-weight: bold; |
| 70 | font-size: 14px; |
| 71 | } |
| 72 | |
| 73 | </style> |
| 74 | |
| 75 | <h1><a href="containeranalysis_v1beta1.html">Container Analysis API</a> . <a href="containeranalysis_v1beta1.projects.html">projects</a> . <a href="containeranalysis_v1beta1.projects.occurrences.html">occurrences</a></h1> |
| 76 | <h2>Instance Methods</h2> |
| 77 | <p class="toc_element"> |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 78 | <code><a href="#batchCreate">batchCreate(parent, body=None, x__xgafv=None)</a></code></p> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 79 | <p class="firstline">Creates new occurrences in batch.</p> |
| 80 | <p class="toc_element"> |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 81 | <code><a href="#close">close()</a></code></p> |
| 82 | <p class="firstline">Close httplib2 connections.</p> |
| 83 | <p class="toc_element"> |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 84 | <code><a href="#create">create(parent, body=None, x__xgafv=None)</a></code></p> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 85 | <p class="firstline">Creates a new occurrence.</p> |
| 86 | <p class="toc_element"> |
| 87 | <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p> |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 88 | <p class="firstline">Deletes the specified occurrence. For example, use this method to delete an occurrence when the occurrence is no longer applicable for the given resource.</p> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 89 | <p class="toc_element"> |
| 90 | <code><a href="#get">get(name, x__xgafv=None)</a></code></p> |
| 91 | <p class="firstline">Gets the specified occurrence.</p> |
| 92 | <p class="toc_element"> |
| 93 | <code><a href="#getIamPolicy">getIamPolicy(resource, body=None, x__xgafv=None)</a></code></p> |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 94 | <p class="firstline">Gets the access control policy for a note or an occurrence resource. Requires `containeranalysis.notes.setIamPolicy` or `containeranalysis.occurrences.setIamPolicy` permission if the resource is a note or occurrence, respectively. The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for occurrences.</p> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 95 | <p class="toc_element"> |
| 96 | <code><a href="#getNotes">getNotes(name, x__xgafv=None)</a></code></p> |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 97 | <p class="firstline">Gets the note attached to the specified occurrence. Consumer projects can use this method to get a note that belongs to a provider project.</p> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 98 | <p class="toc_element"> |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 99 | <code><a href="#getVulnerabilitySummary">getVulnerabilitySummary(parent, filter=None, x__xgafv=None)</a></code></p> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 100 | <p class="firstline">Gets a summary of the number and severity of occurrences.</p> |
| 101 | <p class="toc_element"> |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 102 | <code><a href="#list">list(parent, filter=None, pageToken=None, pageSize=None, x__xgafv=None)</a></code></p> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 103 | <p class="firstline">Lists occurrences for the specified project.</p> |
| 104 | <p class="toc_element"> |
| 105 | <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p> |
| 106 | <p class="firstline">Retrieves the next page of results.</p> |
| 107 | <p class="toc_element"> |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 108 | <code><a href="#patch">patch(name, body=None, updateMask=None, x__xgafv=None)</a></code></p> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 109 | <p class="firstline">Updates the specified occurrence.</p> |
| 110 | <p class="toc_element"> |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 111 | <code><a href="#setIamPolicy">setIamPolicy(resource, body=None, x__xgafv=None)</a></code></p> |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 112 | <p class="firstline">Sets the access control policy on the specified note or occurrence. Requires `containeranalysis.notes.setIamPolicy` or `containeranalysis.occurrences.setIamPolicy` permission if the resource is a note or an occurrence, respectively. The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for occurrences.</p> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 113 | <p class="toc_element"> |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 114 | <code><a href="#testIamPermissions">testIamPermissions(resource, body=None, x__xgafv=None)</a></code></p> |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 115 | <p class="firstline">Returns the permissions that a caller has on the specified note or occurrence. Requires list permission on the project (for example, `containeranalysis.notes.list`). The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for occurrences.</p> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 116 | <h3>Method Details</h3> |
| 117 | <div class="method"> |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 118 | <code class="details" id="batchCreate">batchCreate(parent, body=None, x__xgafv=None)</code> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 119 | <pre>Creates new occurrences in batch. |
| 120 | |
| 121 | Args: |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 122 | parent: string, Required. The name of the project in the form of `projects/[PROJECT_ID]`, under which the occurrences are to be created. (required) |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 123 | body: object, The request body. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 124 | The object takes the form of: |
| 125 | |
| 126 | { # Request to create occurrences in batch. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 127 | "occurrences": [ # Required. The occurrences to create. Max allowed length is 1000. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 128 | { # An instance of an analysis type that has been found on a resource. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 129 | "vulnerability": { # Details of a vulnerability Occurrence. # Describes a security vulnerability. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 130 | "type": "A String", # The type of package; whether native or non native(ruby gems, node.js packages etc) |
| 131 | "longDescription": "A String", # Output only. A detailed description of this vulnerability. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 132 | "packageIssue": [ # Required. The set of affected locations and their fixes (if available) within the associated resource. |
| 133 | { # This message wraps a location affected by a vulnerability and its associated fix (if one is available). |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 134 | "affectedLocation": { # The location of the vulnerability. # Required. The location of the vulnerability. |
| 135 | "version": { # Version contains structured information about the version of a package. # Required. The version of the package being described. |
| 136 | "revision": "A String", # The iteration of the package build from the above version. |
| 137 | "epoch": 42, # Used to correct mistakes in the version numbering scheme. |
| 138 | "kind": "A String", # Required. Distinguishes between sentinel MIN/MAX versions and normal versions. |
| 139 | "name": "A String", # Required only when version kind is NORMAL. The main part of the version name. |
| 140 | }, |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 141 | "package": "A String", # Required. The package being described. |
| 142 | "cpeUri": "A String", # Required. The CPE URI in [cpe format](https://cpe.mitre.org/specification/) format. Examples include distro or storage location for vulnerable jar. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 143 | }, |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 144 | "severityName": "A String", # Deprecated, use Details.effective_severity instead The severity (e.g., distro assigned severity) for this vulnerability. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 145 | "fixedLocation": { # The location of the vulnerability. # The location of the available fix for vulnerability. |
| 146 | "version": { # Version contains structured information about the version of a package. # Required. The version of the package being described. |
| 147 | "revision": "A String", # The iteration of the package build from the above version. |
| 148 | "epoch": 42, # Used to correct mistakes in the version numbering scheme. |
| 149 | "kind": "A String", # Required. Distinguishes between sentinel MIN/MAX versions and normal versions. |
| 150 | "name": "A String", # Required only when version kind is NORMAL. The main part of the version name. |
| 151 | }, |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 152 | "package": "A String", # Required. The package being described. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 153 | "cpeUri": "A String", # Required. The CPE URI in [cpe format](https://cpe.mitre.org/specification/) format. Examples include distro or storage location for vulnerable jar. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 154 | }, |
| 155 | }, |
| 156 | ], |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 157 | "severity": "A String", # Output only. The note provider assigned Severity of the vulnerability. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 158 | "relatedUrls": [ # Output only. URLs related to this vulnerability. |
| 159 | { # Metadata for any related URL information. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 160 | "label": "A String", # Label to describe usage of the URL. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 161 | "url": "A String", # Specific URL associated with the resource. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 162 | }, |
| 163 | ], |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 164 | "shortDescription": "A String", # Output only. A one sentence description of this vulnerability. |
| 165 | "effectiveSeverity": "A String", # The distro assigned severity for this vulnerability when it is available, and note provider assigned severity when distro has not yet assigned a severity for this vulnerability. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 166 | "cvssScore": 3.14, # 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. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 167 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 168 | "build": { # Details of a build occurrence. # Describes a verifiable build. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 169 | "provenanceBytes": "A String", # Serialized JSON representation of the provenance, used in generating the build signature in the corresponding build note. After verifying the signature, `provenance_bytes` can be unmarshalled and compared to the provenance to confirm that it is unchanged. A base64-encoded string representation of the provenance bytes is used for the signature in order to interoperate with openssl which expects this format for signature verification. 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. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 170 | "provenance": { # Provenance of a build. Contains all information needed to verify the full details about the build from source to completion. # Required. The actual provenance for the build. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 171 | "logsUri": "A String", # URI where any logs for this provenance were written. |
| 172 | "startTime": "A String", # Time at which execution of the build was started. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 173 | "builtArtifacts": [ # Output of the build. |
| 174 | { # Artifact describes a build product. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 175 | "checksum": "A String", # Hash or checksum value of a binary, or Docker Registry 2.0 digest of a container. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 176 | "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 `docker push`. Note that a single Artifact ID can have multiple names, for example if two tags are applied to one image. |
| 177 | "A String", |
| 178 | ], |
| 179 | "id": "A String", # Artifact ID, if any; for container images, this will be a URL by digest like `gcr.io/projectID/imagename@sha256:123456`. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 180 | }, |
| 181 | ], |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 182 | "triggerId": "A String", # Trigger identifier if the build was triggered automatically; empty if not. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 183 | "buildOptions": { # Special options applied to this build. This is a catch-all field where build providers can enter any desired additional details. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 184 | "a_key": "A String", |
| 185 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 186 | "commands": [ # Commands requested by the build. |
| 187 | { # Command describes a step performed as part of the build pipeline. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 188 | "name": "A String", # Required. Name of the command, as presented on the command line, or if the command is packaged as a Docker container, as presented to `docker pull`. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 189 | "env": [ # Environment variables set before running this command. |
| 190 | "A String", |
| 191 | ], |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 192 | "id": "A String", # Optional unique identifier for this command, used in wait_for to reference this command as a dependency. |
| 193 | "args": [ # Command-line arguments used when executing this command. |
| 194 | "A String", |
| 195 | ], |
| 196 | "waitFor": [ # The ID(s) of the command(s) that this command depends on. |
| 197 | "A String", |
| 198 | ], |
| 199 | "dir": "A String", # Working directory (relative to project source root) used when running this command. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 200 | }, |
| 201 | ], |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 202 | "creator": "A String", # 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. |
| 203 | "builderVersion": "A String", # Version string of the builder at the time this build was executed. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 204 | "sourceProvenance": { # Source describes the location of the source used for the build. # Details of the Source input to the build. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 205 | "context": { # 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. # If provided, the source code used for the build came from this location. |
| 206 | "labels": { # Labels with user defined metadata. |
| 207 | "a_key": "A String", |
| 208 | }, |
| 209 | "cloudRepo": { # A CloudRepoSourceContext denotes a particular revision in a Google Cloud Source Repo. # A SourceContext referring to a revision in a Google Cloud Source Repo. |
| 210 | "aliasContext": { # An alias to a repo revision. # An alias, which may be a branch or tag. |
| 211 | "kind": "A String", # The alias kind. |
| 212 | "name": "A String", # The alias name. |
| 213 | }, |
| 214 | "revisionId": "A String", # A revision ID. |
| 215 | "repoId": { # A unique identifier for a Cloud Repo. # The ID of the repo. |
| 216 | "projectRepoId": { # Selects a repo using a Google Cloud Platform project ID (e.g., winged-cargo-31) and a repo name within that project. # A combination of a project ID and a repo name. |
| 217 | "repoName": "A String", # The name of the repo. Leave empty for the default repo. |
| 218 | "projectId": "A String", # The ID of the project. |
| 219 | }, |
| 220 | "uid": "A String", # A server-assigned, globally unique identifier. |
| 221 | }, |
| 222 | }, |
| 223 | "git": { # A GitSourceContext denotes a particular revision in a third party Git repository (e.g., GitHub). # A SourceContext referring to any third party Git repo (e.g., GitHub). |
| 224 | "url": "A String", # Git repository URL. |
| 225 | "revisionId": "A String", # Git commit hash. |
| 226 | }, |
| 227 | "gerrit": { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project. |
| 228 | "revisionId": "A String", # A revision (commit) ID. |
| 229 | "hostUri": "A String", # The URI of a running Gerrit instance. |
| 230 | "aliasContext": { # An alias to a repo revision. # An alias, which may be a branch or tag. |
| 231 | "kind": "A String", # The alias kind. |
| 232 | "name": "A String", # The alias name. |
| 233 | }, |
| 234 | "gerritProject": "A String", # 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. |
| 235 | }, |
| 236 | }, |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 237 | "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. |
| 238 | { # 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. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 239 | "labels": { # Labels with user defined metadata. |
| 240 | "a_key": "A String", |
| 241 | }, |
| 242 | "cloudRepo": { # A CloudRepoSourceContext denotes a particular revision in a Google Cloud Source Repo. # A SourceContext referring to a revision in a Google Cloud Source Repo. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 243 | "aliasContext": { # An alias to a repo revision. # An alias, which may be a branch or tag. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 244 | "kind": "A String", # The alias kind. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 245 | "name": "A String", # The alias name. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 246 | }, |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 247 | "revisionId": "A String", # A revision ID. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 248 | "repoId": { # A unique identifier for a Cloud Repo. # The ID of the repo. |
| 249 | "projectRepoId": { # Selects a repo using a Google Cloud Platform project ID (e.g., winged-cargo-31) and a repo name within that project. # A combination of a project ID and a repo name. |
| 250 | "repoName": "A String", # The name of the repo. Leave empty for the default repo. |
| 251 | "projectId": "A String", # The ID of the project. |
| 252 | }, |
| 253 | "uid": "A String", # A server-assigned, globally unique identifier. |
| 254 | }, |
| 255 | }, |
| 256 | "git": { # A GitSourceContext denotes a particular revision in a third party Git repository (e.g., GitHub). # A SourceContext referring to any third party Git repo (e.g., GitHub). |
| 257 | "url": "A String", # Git repository URL. |
| 258 | "revisionId": "A String", # Git commit hash. |
| 259 | }, |
| 260 | "gerrit": { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project. |
| 261 | "revisionId": "A String", # A revision (commit) ID. |
| 262 | "hostUri": "A String", # The URI of a running Gerrit instance. |
| 263 | "aliasContext": { # An alias to a repo revision. # An alias, which may be a branch or tag. |
| 264 | "kind": "A String", # The alias kind. |
| 265 | "name": "A String", # The alias name. |
| 266 | }, |
| 267 | "gerritProject": "A String", # 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. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 268 | }, |
| 269 | }, |
| 270 | ], |
| 271 | "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. |
| 272 | "a_key": { # Container message for hashes of byte content of files, used in source messages to verify integrity of source input to the build. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 273 | "fileHash": [ # Required. Collection of file hashes. |
| 274 | { # Container message for hash values. |
| 275 | "type": "A String", # Required. The type of hash that was performed. |
| 276 | "value": "A String", # Required. The hash value. |
| 277 | }, |
| 278 | ], |
| 279 | }, |
| 280 | }, |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 281 | "artifactStorageSourceUri": "A String", # If provided, the input binary artifacts for the build came from this location. |
| 282 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 283 | "projectId": "A String", # ID of the project. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 284 | "createTime": "A String", # Time at which the build was created. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 285 | "id": "A String", # Required. Unique identifier of the build. |
| 286 | "endTime": "A String", # Time at which execution of the build was finished. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 287 | }, |
| 288 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 289 | "kind": "A String", # Output only. This explicitly denotes which of the occurrence details are specified. This field can be used as a filter in list requests. |
| 290 | "createTime": "A String", # Output only. The time this occurrence was created. |
| 291 | "intoto": { # 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. # Describes a specific in-toto link. |
| 292 | "signatures": [ |
| 293 | { # A signature object consists of the KeyID used and the signature itself. |
| 294 | "keyid": "A String", |
| 295 | "sig": "A String", |
| 296 | }, |
| 297 | ], |
| 298 | "signed": { # This corresponds to an in-toto link. |
| 299 | "command": [ # This field contains the full command executed for the step. This can also be empty if links are generated for operations that aren't directly mapped to a specific command. Each term in the command is an independent string in the list. An example of a command in the in-toto metadata field is: "command": ["git", "clone", "https://github.com/in-toto/demo-project.git"] |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 300 | "A String", |
| 301 | ], |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 302 | "products": [ # Products are the supply chain artifacts generated as a result of the step. The structure is identical to that of materials. |
| 303 | { |
| 304 | "resourceUri": "A String", |
| 305 | "hashes": { # Defines a hash object for use in Materials and Products. |
| 306 | "sha256": "A String", |
| 307 | }, |
| 308 | }, |
| 309 | ], |
| 310 | "environment": { # Defines an object for the environment field in in-toto links. The suggested fields are "variables", "filesystem", and "workdir". # This is a field that can be used to capture information about the environment. It is suggested for this field to contain information that details environment variables, filesystem information, and the present working directory. The recommended structure of this field is: "environment": { "custom_values": { "variables": "", "filesystem": "", "workdir": "", "": "..." } } |
| 311 | "customValues": { |
| 312 | "a_key": "A String", |
| 313 | }, |
| 314 | }, |
| 315 | "byproducts": { # Defines an object for the byproducts field in in-toto links. The suggested fields are "stderr", "stdout", and "return-value". # ByProducts are data generated as part of a software supply chain step, but are not the actual result of the step. |
| 316 | "customValues": { |
| 317 | "a_key": "A String", |
| 318 | }, |
| 319 | }, |
| 320 | "materials": [ # Materials are the supply chain artifacts that go into the step and are used for the operation performed. The key of the map is the path of the artifact and the structure contains the recorded hash information. An example is: "materials": [ { "resource_uri": "foo/bar", "hashes": { "sha256": "ebebf...", : } } ] |
| 321 | { |
| 322 | "resourceUri": "A String", |
| 323 | "hashes": { # Defines a hash object for use in Materials and Products. |
| 324 | "sha256": "A String", |
| 325 | }, |
| 326 | }, |
| 327 | ], |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 328 | }, |
| 329 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 330 | "noteName": "A String", # Required. Immutable. The analysis note associated with this occurrence, in the form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. This field can be used as a filter in list requests. |
| 331 | "name": "A String", # Output only. The name of the occurrence in the form of `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. |
| 332 | "installation": { # Details of a package occurrence. # Describes the installation of a package on the linked resource. |
| 333 | "installation": { # This represents how a particular software package may be installed on a system. # Required. Where the package was installed. |
| 334 | "location": [ # Required. All of the places within the filesystem versions of this package have been found. |
| 335 | { # An occurrence of a particular package installation found within a system's filesystem. E.g., glibc was found in `/var/lib/dpkg/status`. |
| 336 | "path": "A String", # The path from which we gathered that this package/version is installed. |
| 337 | "version": { # Version contains structured information about the version of a package. # The version installed at this location. |
| 338 | "revision": "A String", # The iteration of the package build from the above version. |
| 339 | "epoch": 42, # Used to correct mistakes in the version numbering scheme. |
| 340 | "kind": "A String", # Required. Distinguishes between sentinel MIN/MAX versions and normal versions. |
| 341 | "name": "A String", # Required only when version kind is NORMAL. The main part of the version name. |
| 342 | }, |
| 343 | "cpeUri": "A String", # Required. The CPE URI in [CPE format](https://cpe.mitre.org/specification/) denoting the package manager version distributing a package. |
| 344 | }, |
| 345 | ], |
| 346 | "name": "A String", # Output only. The name of the installed package. |
| 347 | }, |
| 348 | }, |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 349 | "derivedImage": { # Details of an image occurrence. # Describes how this resource derives from the basis in the associated note. |
| 350 | "derivedImage": { # Derived describes the derived image portion (Occurrence) of the DockerImage relationship. This image would be produced from a Dockerfile with FROM . # Required. Immutable. The child image derived from the base image. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 351 | "distance": 42, # Output only. The number of layers by which this image differs from the associated image basis. |
| 352 | "baseResourceUrl": "A String", # Output only. This contains the base image URL for the derived image occurrence. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 353 | "fingerprint": { # A set of properties that uniquely identify a given Docker image. # Required. The fingerprint of the derived image. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 354 | "v2Name": "A String", # Output only. The name of the image's v2 blobs computed via: [bottom] := v2_blobbottom := sha256(v2_blob[N] + " " + v2_name[N+1]) Only the name of the final blob is kept. |
| 355 | "v1Name": "A String", # Required. The layer ID of the final layer in the Docker image's v1 representation. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 356 | "v2Blob": [ # Required. The ordered list of v2 blobs that represent a given image. |
| 357 | "A String", |
| 358 | ], |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 359 | }, |
| 360 | "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. |
| 361 | { # Layer holds metadata specific to a layer of a Docker image. |
| 362 | "directive": "A String", # Required. The recovered Dockerfile directive used to construct this layer. |
| 363 | "arguments": "A String", # The recovered arguments to the Dockerfile directive. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 364 | }, |
| 365 | ], |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 366 | }, |
| 367 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 368 | "updateTime": "A String", # Output only. The time this occurrence was last updated. |
| 369 | "attestation": { # Details of an attestation occurrence. # Describes an attestation of an artifact. |
| 370 | "attestation": { # 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). # Required. Attestation for the resource. |
| 371 | "pgpSignedAttestation": { # 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. # A PGP signed attestation. |
| 372 | "signature": "A String", # Required. The raw content of the signature, as output by GNU Privacy Guard (GPG) or equivalent. Since this message only supports attached signatures, the payload that was signed must be attached. While the signature format supported is dependent on the verification implementation, currently only ASCII-armored (`--armor` to gpg), non-clearsigned (`--sign` rather than `--clearsign` to gpg) are supported. Concretely, `gpg --sign --armor --output=signature.gpg payload.json` will create the signature content expected in this field in `signature.gpg` for the `payload.json` attestation payload. |
| 373 | "pgpKeyId": "A String", # The cryptographic fingerprint of the key used to generate the signature, as output by, e.g. `gpg --list-keys`. This should be the version 4, full 160-bit fingerprint, expressed as a 40 character hexidecimal string. See https://tools.ietf.org/html/rfc4880#section-12.2 for details. Implementations may choose to acknowledge "LONG", "SHORT", or other abbreviated key IDs, but only the full fingerprint is guaranteed to work. In gpg, the full fingerprint can be retrieved from the `fpr` field returned when calling --list-keys with --with-colons. For example: ``` gpg --with-colons --with-fingerprint --force-v4-certs \ --list-keys attester@example.com tru::1:1513631572:0:3:1:5 pub:...... fpr:::::::::24FF6481B76AC91E66A00AC657A93A81EF3AE6FB: ``` Above, the fingerprint is `24FF6481B76AC91E66A00AC657A93A81EF3AE6FB`. |
| 374 | "contentType": "A String", # Type (for example schema) of the attestation payload that was signed. The verifier must ensure that the provided type is one that the verifier supports, and that the attestation payload is a valid instantiation of that type (for example by validating a JSON schema). |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 375 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 376 | "genericSignedAttestation": { # 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. |
| 377 | "serializedPayload": "A String", # The serialized payload that is verified by one or more `signatures`. The encoding and semantic meaning of this payload must match what is set in `content_type`. |
| 378 | "contentType": "A String", # Type (for example schema) of the attestation payload that was signed. The verifier must ensure that the provided type is one that the verifier supports, and that the attestation payload is a valid instantiation of that type (for example by validating a JSON schema). |
| 379 | "signatures": [ # One or more signatures over `serialized_payload`. Verifier implementations should consider this attestation message verified if at least one `signature` verifies `serialized_payload`. See `Signature` in common.proto for more details on signature structure and verification. |
| 380 | { # 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). |
| 381 | "publicKeyId": "A String", # The identifier for the public key that verifies this signature. * The `public_key_id` is required. * The `public_key_id` SHOULD be an RFC3986 conformant URI. * When possible, the `public_key_id` SHOULD be an immutable reference, such as a cryptographic digest. Examples of valid `public_key_id`s: 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" |
| 382 | "signature": "A String", # 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. |
| 383 | }, |
| 384 | ], |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 385 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 386 | }, |
| 387 | }, |
| 388 | "deployment": { # Details of a deployment occurrence. # Describes the deployment of an artifact on a runtime. |
| 389 | "deployment": { # The period during which some deployable was active in a runtime. # Required. Deployment history for the resource. |
| 390 | "userEmail": "A String", # Identity of the user that triggered this deployment. |
| 391 | "address": "A String", # Address of the runtime element hosting this deployment. |
| 392 | "config": "A String", # Configuration used to create this deployment. |
| 393 | "resourceUri": [ # Output only. Resource URI for the artifact being deployed taken from the deployable field with the same name. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 394 | "A String", |
| 395 | ], |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 396 | "platform": "A String", # Platform hosting this deployment. |
| 397 | "deployTime": "A String", # Required. Beginning of the lifetime of this deployment. |
| 398 | "undeployTime": "A String", # End of the lifetime of this deployment. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 399 | }, |
| 400 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 401 | "remediation": "A String", # A description of actions that can be taken to remedy the note. |
| 402 | "resource": { # An entity that can have metadata. For example, a Docker image. # Required. Immutable. The resource for which the occurrence applies. |
| 403 | "name": "A String", # Deprecated, do not use. Use uri instead. The name of the resource. For example, the name of a Docker image - "Debian". |
| 404 | "contentHash": { # Container message for hash values. # Deprecated, do not use. Use uri instead. The hash of the resource content. For example, the Docker digest. |
| 405 | "type": "A String", # Required. The type of hash that was performed. |
| 406 | "value": "A String", # Required. The hash value. |
| 407 | }, |
| 408 | "uri": "A String", # Required. The unique URI of the resource. For example, `https://gcr.io/project/image@sha256:foo` for a Docker image. |
| 409 | }, |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 410 | "discovered": { # Details of a discovery occurrence. # Describes when a resource was discovered. |
| 411 | "discovered": { # Provides information about the analysis status of a discovered resource. # Required. Analysis status for the discovered resource. |
| 412 | "lastAnalysisTime": "A String", # The last time continuous analysis was done for this resource. Deprecated, do not use. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 413 | "continuousAnalysis": "A String", # Whether the resource is continuously analyzed. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 414 | "analysisStatus": "A String", # The status of discovery for the resource. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 415 | "analysisStatusError": { # 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](https://github.com/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](https://cloud.google.com/apis/design/errors). # 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. |
| 416 | "details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use. |
| 417 | { |
| 418 | "a_key": "", # Properties of the object. Contains field @type with type URL. |
| 419 | }, |
| 420 | ], |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 421 | "code": 42, # The status code, which should be an enum value of google.rpc.Code. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 422 | "message": "A String", # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 423 | }, |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 424 | }, |
| 425 | }, |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 426 | }, |
| 427 | ], |
| 428 | } |
| 429 | |
| 430 | x__xgafv: string, V1 error format. |
| 431 | Allowed values |
| 432 | 1 - v1 error format |
| 433 | 2 - v2 error format |
| 434 | |
| 435 | Returns: |
| 436 | An object of the form: |
| 437 | |
| 438 | { # Response for creating occurrences in batch. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 439 | "occurrences": [ # The occurrences that were created. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 440 | { # An instance of an analysis type that has been found on a resource. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 441 | "vulnerability": { # Details of a vulnerability Occurrence. # Describes a security vulnerability. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 442 | "type": "A String", # The type of package; whether native or non native(ruby gems, node.js packages etc) |
| 443 | "longDescription": "A String", # Output only. A detailed description of this vulnerability. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 444 | "packageIssue": [ # Required. The set of affected locations and their fixes (if available) within the associated resource. |
| 445 | { # This message wraps a location affected by a vulnerability and its associated fix (if one is available). |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 446 | "affectedLocation": { # The location of the vulnerability. # Required. The location of the vulnerability. |
| 447 | "version": { # Version contains structured information about the version of a package. # Required. The version of the package being described. |
| 448 | "revision": "A String", # The iteration of the package build from the above version. |
| 449 | "epoch": 42, # Used to correct mistakes in the version numbering scheme. |
| 450 | "kind": "A String", # Required. Distinguishes between sentinel MIN/MAX versions and normal versions. |
| 451 | "name": "A String", # Required only when version kind is NORMAL. The main part of the version name. |
| 452 | }, |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 453 | "package": "A String", # Required. The package being described. |
| 454 | "cpeUri": "A String", # Required. The CPE URI in [cpe format](https://cpe.mitre.org/specification/) format. Examples include distro or storage location for vulnerable jar. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 455 | }, |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 456 | "severityName": "A String", # Deprecated, use Details.effective_severity instead The severity (e.g., distro assigned severity) for this vulnerability. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 457 | "fixedLocation": { # The location of the vulnerability. # The location of the available fix for vulnerability. |
| 458 | "version": { # Version contains structured information about the version of a package. # Required. The version of the package being described. |
| 459 | "revision": "A String", # The iteration of the package build from the above version. |
| 460 | "epoch": 42, # Used to correct mistakes in the version numbering scheme. |
| 461 | "kind": "A String", # Required. Distinguishes between sentinel MIN/MAX versions and normal versions. |
| 462 | "name": "A String", # Required only when version kind is NORMAL. The main part of the version name. |
| 463 | }, |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 464 | "package": "A String", # Required. The package being described. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 465 | "cpeUri": "A String", # Required. The CPE URI in [cpe format](https://cpe.mitre.org/specification/) format. Examples include distro or storage location for vulnerable jar. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 466 | }, |
| 467 | }, |
| 468 | ], |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 469 | "severity": "A String", # Output only. The note provider assigned Severity of the vulnerability. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 470 | "relatedUrls": [ # Output only. URLs related to this vulnerability. |
| 471 | { # Metadata for any related URL information. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 472 | "label": "A String", # Label to describe usage of the URL. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 473 | "url": "A String", # Specific URL associated with the resource. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 474 | }, |
| 475 | ], |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 476 | "shortDescription": "A String", # Output only. A one sentence description of this vulnerability. |
| 477 | "effectiveSeverity": "A String", # The distro assigned severity for this vulnerability when it is available, and note provider assigned severity when distro has not yet assigned a severity for this vulnerability. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 478 | "cvssScore": 3.14, # 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. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 479 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 480 | "build": { # Details of a build occurrence. # Describes a verifiable build. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 481 | "provenanceBytes": "A String", # Serialized JSON representation of the provenance, used in generating the build signature in the corresponding build note. After verifying the signature, `provenance_bytes` can be unmarshalled and compared to the provenance to confirm that it is unchanged. A base64-encoded string representation of the provenance bytes is used for the signature in order to interoperate with openssl which expects this format for signature verification. 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. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 482 | "provenance": { # Provenance of a build. Contains all information needed to verify the full details about the build from source to completion. # Required. The actual provenance for the build. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 483 | "logsUri": "A String", # URI where any logs for this provenance were written. |
| 484 | "startTime": "A String", # Time at which execution of the build was started. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 485 | "builtArtifacts": [ # Output of the build. |
| 486 | { # Artifact describes a build product. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 487 | "checksum": "A String", # Hash or checksum value of a binary, or Docker Registry 2.0 digest of a container. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 488 | "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 `docker push`. Note that a single Artifact ID can have multiple names, for example if two tags are applied to one image. |
| 489 | "A String", |
| 490 | ], |
| 491 | "id": "A String", # Artifact ID, if any; for container images, this will be a URL by digest like `gcr.io/projectID/imagename@sha256:123456`. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 492 | }, |
| 493 | ], |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 494 | "triggerId": "A String", # Trigger identifier if the build was triggered automatically; empty if not. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 495 | "buildOptions": { # Special options applied to this build. This is a catch-all field where build providers can enter any desired additional details. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 496 | "a_key": "A String", |
| 497 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 498 | "commands": [ # Commands requested by the build. |
| 499 | { # Command describes a step performed as part of the build pipeline. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 500 | "name": "A String", # Required. Name of the command, as presented on the command line, or if the command is packaged as a Docker container, as presented to `docker pull`. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 501 | "env": [ # Environment variables set before running this command. |
| 502 | "A String", |
| 503 | ], |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 504 | "id": "A String", # Optional unique identifier for this command, used in wait_for to reference this command as a dependency. |
| 505 | "args": [ # Command-line arguments used when executing this command. |
| 506 | "A String", |
| 507 | ], |
| 508 | "waitFor": [ # The ID(s) of the command(s) that this command depends on. |
| 509 | "A String", |
| 510 | ], |
| 511 | "dir": "A String", # Working directory (relative to project source root) used when running this command. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 512 | }, |
| 513 | ], |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 514 | "creator": "A String", # 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. |
| 515 | "builderVersion": "A String", # Version string of the builder at the time this build was executed. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 516 | "sourceProvenance": { # Source describes the location of the source used for the build. # Details of the Source input to the build. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 517 | "context": { # 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. # If provided, the source code used for the build came from this location. |
| 518 | "labels": { # Labels with user defined metadata. |
| 519 | "a_key": "A String", |
| 520 | }, |
| 521 | "cloudRepo": { # A CloudRepoSourceContext denotes a particular revision in a Google Cloud Source Repo. # A SourceContext referring to a revision in a Google Cloud Source Repo. |
| 522 | "aliasContext": { # An alias to a repo revision. # An alias, which may be a branch or tag. |
| 523 | "kind": "A String", # The alias kind. |
| 524 | "name": "A String", # The alias name. |
| 525 | }, |
| 526 | "revisionId": "A String", # A revision ID. |
| 527 | "repoId": { # A unique identifier for a Cloud Repo. # The ID of the repo. |
| 528 | "projectRepoId": { # Selects a repo using a Google Cloud Platform project ID (e.g., winged-cargo-31) and a repo name within that project. # A combination of a project ID and a repo name. |
| 529 | "repoName": "A String", # The name of the repo. Leave empty for the default repo. |
| 530 | "projectId": "A String", # The ID of the project. |
| 531 | }, |
| 532 | "uid": "A String", # A server-assigned, globally unique identifier. |
| 533 | }, |
| 534 | }, |
| 535 | "git": { # A GitSourceContext denotes a particular revision in a third party Git repository (e.g., GitHub). # A SourceContext referring to any third party Git repo (e.g., GitHub). |
| 536 | "url": "A String", # Git repository URL. |
| 537 | "revisionId": "A String", # Git commit hash. |
| 538 | }, |
| 539 | "gerrit": { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project. |
| 540 | "revisionId": "A String", # A revision (commit) ID. |
| 541 | "hostUri": "A String", # The URI of a running Gerrit instance. |
| 542 | "aliasContext": { # An alias to a repo revision. # An alias, which may be a branch or tag. |
| 543 | "kind": "A String", # The alias kind. |
| 544 | "name": "A String", # The alias name. |
| 545 | }, |
| 546 | "gerritProject": "A String", # 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. |
| 547 | }, |
| 548 | }, |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 549 | "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. |
| 550 | { # 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. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 551 | "labels": { # Labels with user defined metadata. |
| 552 | "a_key": "A String", |
| 553 | }, |
| 554 | "cloudRepo": { # A CloudRepoSourceContext denotes a particular revision in a Google Cloud Source Repo. # A SourceContext referring to a revision in a Google Cloud Source Repo. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 555 | "aliasContext": { # An alias to a repo revision. # An alias, which may be a branch or tag. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 556 | "kind": "A String", # The alias kind. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 557 | "name": "A String", # The alias name. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 558 | }, |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 559 | "revisionId": "A String", # A revision ID. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 560 | "repoId": { # A unique identifier for a Cloud Repo. # The ID of the repo. |
| 561 | "projectRepoId": { # Selects a repo using a Google Cloud Platform project ID (e.g., winged-cargo-31) and a repo name within that project. # A combination of a project ID and a repo name. |
| 562 | "repoName": "A String", # The name of the repo. Leave empty for the default repo. |
| 563 | "projectId": "A String", # The ID of the project. |
| 564 | }, |
| 565 | "uid": "A String", # A server-assigned, globally unique identifier. |
| 566 | }, |
| 567 | }, |
| 568 | "git": { # A GitSourceContext denotes a particular revision in a third party Git repository (e.g., GitHub). # A SourceContext referring to any third party Git repo (e.g., GitHub). |
| 569 | "url": "A String", # Git repository URL. |
| 570 | "revisionId": "A String", # Git commit hash. |
| 571 | }, |
| 572 | "gerrit": { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project. |
| 573 | "revisionId": "A String", # A revision (commit) ID. |
| 574 | "hostUri": "A String", # The URI of a running Gerrit instance. |
| 575 | "aliasContext": { # An alias to a repo revision. # An alias, which may be a branch or tag. |
| 576 | "kind": "A String", # The alias kind. |
| 577 | "name": "A String", # The alias name. |
| 578 | }, |
| 579 | "gerritProject": "A String", # 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. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 580 | }, |
| 581 | }, |
| 582 | ], |
| 583 | "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. |
| 584 | "a_key": { # Container message for hashes of byte content of files, used in source messages to verify integrity of source input to the build. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 585 | "fileHash": [ # Required. Collection of file hashes. |
| 586 | { # Container message for hash values. |
| 587 | "type": "A String", # Required. The type of hash that was performed. |
| 588 | "value": "A String", # Required. The hash value. |
| 589 | }, |
| 590 | ], |
| 591 | }, |
| 592 | }, |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 593 | "artifactStorageSourceUri": "A String", # If provided, the input binary artifacts for the build came from this location. |
| 594 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 595 | "projectId": "A String", # ID of the project. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 596 | "createTime": "A String", # Time at which the build was created. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 597 | "id": "A String", # Required. Unique identifier of the build. |
| 598 | "endTime": "A String", # Time at which execution of the build was finished. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 599 | }, |
| 600 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 601 | "kind": "A String", # Output only. This explicitly denotes which of the occurrence details are specified. This field can be used as a filter in list requests. |
| 602 | "createTime": "A String", # Output only. The time this occurrence was created. |
| 603 | "intoto": { # 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. # Describes a specific in-toto link. |
| 604 | "signatures": [ |
| 605 | { # A signature object consists of the KeyID used and the signature itself. |
| 606 | "keyid": "A String", |
| 607 | "sig": "A String", |
| 608 | }, |
| 609 | ], |
| 610 | "signed": { # This corresponds to an in-toto link. |
| 611 | "command": [ # This field contains the full command executed for the step. This can also be empty if links are generated for operations that aren't directly mapped to a specific command. Each term in the command is an independent string in the list. An example of a command in the in-toto metadata field is: "command": ["git", "clone", "https://github.com/in-toto/demo-project.git"] |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 612 | "A String", |
| 613 | ], |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 614 | "products": [ # Products are the supply chain artifacts generated as a result of the step. The structure is identical to that of materials. |
| 615 | { |
| 616 | "resourceUri": "A String", |
| 617 | "hashes": { # Defines a hash object for use in Materials and Products. |
| 618 | "sha256": "A String", |
| 619 | }, |
| 620 | }, |
| 621 | ], |
| 622 | "environment": { # Defines an object for the environment field in in-toto links. The suggested fields are "variables", "filesystem", and "workdir". # This is a field that can be used to capture information about the environment. It is suggested for this field to contain information that details environment variables, filesystem information, and the present working directory. The recommended structure of this field is: "environment": { "custom_values": { "variables": "", "filesystem": "", "workdir": "", "": "..." } } |
| 623 | "customValues": { |
| 624 | "a_key": "A String", |
| 625 | }, |
| 626 | }, |
| 627 | "byproducts": { # Defines an object for the byproducts field in in-toto links. The suggested fields are "stderr", "stdout", and "return-value". # ByProducts are data generated as part of a software supply chain step, but are not the actual result of the step. |
| 628 | "customValues": { |
| 629 | "a_key": "A String", |
| 630 | }, |
| 631 | }, |
| 632 | "materials": [ # Materials are the supply chain artifacts that go into the step and are used for the operation performed. The key of the map is the path of the artifact and the structure contains the recorded hash information. An example is: "materials": [ { "resource_uri": "foo/bar", "hashes": { "sha256": "ebebf...", : } } ] |
| 633 | { |
| 634 | "resourceUri": "A String", |
| 635 | "hashes": { # Defines a hash object for use in Materials and Products. |
| 636 | "sha256": "A String", |
| 637 | }, |
| 638 | }, |
| 639 | ], |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 640 | }, |
| 641 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 642 | "noteName": "A String", # Required. Immutable. The analysis note associated with this occurrence, in the form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. This field can be used as a filter in list requests. |
| 643 | "name": "A String", # Output only. The name of the occurrence in the form of `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. |
| 644 | "installation": { # Details of a package occurrence. # Describes the installation of a package on the linked resource. |
| 645 | "installation": { # This represents how a particular software package may be installed on a system. # Required. Where the package was installed. |
| 646 | "location": [ # Required. All of the places within the filesystem versions of this package have been found. |
| 647 | { # An occurrence of a particular package installation found within a system's filesystem. E.g., glibc was found in `/var/lib/dpkg/status`. |
| 648 | "path": "A String", # The path from which we gathered that this package/version is installed. |
| 649 | "version": { # Version contains structured information about the version of a package. # The version installed at this location. |
| 650 | "revision": "A String", # The iteration of the package build from the above version. |
| 651 | "epoch": 42, # Used to correct mistakes in the version numbering scheme. |
| 652 | "kind": "A String", # Required. Distinguishes between sentinel MIN/MAX versions and normal versions. |
| 653 | "name": "A String", # Required only when version kind is NORMAL. The main part of the version name. |
| 654 | }, |
| 655 | "cpeUri": "A String", # Required. The CPE URI in [CPE format](https://cpe.mitre.org/specification/) denoting the package manager version distributing a package. |
| 656 | }, |
| 657 | ], |
| 658 | "name": "A String", # Output only. The name of the installed package. |
| 659 | }, |
| 660 | }, |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 661 | "derivedImage": { # Details of an image occurrence. # Describes how this resource derives from the basis in the associated note. |
| 662 | "derivedImage": { # Derived describes the derived image portion (Occurrence) of the DockerImage relationship. This image would be produced from a Dockerfile with FROM . # Required. Immutable. The child image derived from the base image. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 663 | "distance": 42, # Output only. The number of layers by which this image differs from the associated image basis. |
| 664 | "baseResourceUrl": "A String", # Output only. This contains the base image URL for the derived image occurrence. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 665 | "fingerprint": { # A set of properties that uniquely identify a given Docker image. # Required. The fingerprint of the derived image. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 666 | "v2Name": "A String", # Output only. The name of the image's v2 blobs computed via: [bottom] := v2_blobbottom := sha256(v2_blob[N] + " " + v2_name[N+1]) Only the name of the final blob is kept. |
| 667 | "v1Name": "A String", # Required. The layer ID of the final layer in the Docker image's v1 representation. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 668 | "v2Blob": [ # Required. The ordered list of v2 blobs that represent a given image. |
| 669 | "A String", |
| 670 | ], |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 671 | }, |
| 672 | "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. |
| 673 | { # Layer holds metadata specific to a layer of a Docker image. |
| 674 | "directive": "A String", # Required. The recovered Dockerfile directive used to construct this layer. |
| 675 | "arguments": "A String", # The recovered arguments to the Dockerfile directive. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 676 | }, |
| 677 | ], |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 678 | }, |
| 679 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 680 | "updateTime": "A String", # Output only. The time this occurrence was last updated. |
| 681 | "attestation": { # Details of an attestation occurrence. # Describes an attestation of an artifact. |
| 682 | "attestation": { # 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). # Required. Attestation for the resource. |
| 683 | "pgpSignedAttestation": { # 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. # A PGP signed attestation. |
| 684 | "signature": "A String", # Required. The raw content of the signature, as output by GNU Privacy Guard (GPG) or equivalent. Since this message only supports attached signatures, the payload that was signed must be attached. While the signature format supported is dependent on the verification implementation, currently only ASCII-armored (`--armor` to gpg), non-clearsigned (`--sign` rather than `--clearsign` to gpg) are supported. Concretely, `gpg --sign --armor --output=signature.gpg payload.json` will create the signature content expected in this field in `signature.gpg` for the `payload.json` attestation payload. |
| 685 | "pgpKeyId": "A String", # The cryptographic fingerprint of the key used to generate the signature, as output by, e.g. `gpg --list-keys`. This should be the version 4, full 160-bit fingerprint, expressed as a 40 character hexidecimal string. See https://tools.ietf.org/html/rfc4880#section-12.2 for details. Implementations may choose to acknowledge "LONG", "SHORT", or other abbreviated key IDs, but only the full fingerprint is guaranteed to work. In gpg, the full fingerprint can be retrieved from the `fpr` field returned when calling --list-keys with --with-colons. For example: ``` gpg --with-colons --with-fingerprint --force-v4-certs \ --list-keys attester@example.com tru::1:1513631572:0:3:1:5 pub:...... fpr:::::::::24FF6481B76AC91E66A00AC657A93A81EF3AE6FB: ``` Above, the fingerprint is `24FF6481B76AC91E66A00AC657A93A81EF3AE6FB`. |
| 686 | "contentType": "A String", # Type (for example schema) of the attestation payload that was signed. The verifier must ensure that the provided type is one that the verifier supports, and that the attestation payload is a valid instantiation of that type (for example by validating a JSON schema). |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 687 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 688 | "genericSignedAttestation": { # 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. |
| 689 | "serializedPayload": "A String", # The serialized payload that is verified by one or more `signatures`. The encoding and semantic meaning of this payload must match what is set in `content_type`. |
| 690 | "contentType": "A String", # Type (for example schema) of the attestation payload that was signed. The verifier must ensure that the provided type is one that the verifier supports, and that the attestation payload is a valid instantiation of that type (for example by validating a JSON schema). |
| 691 | "signatures": [ # One or more signatures over `serialized_payload`. Verifier implementations should consider this attestation message verified if at least one `signature` verifies `serialized_payload`. See `Signature` in common.proto for more details on signature structure and verification. |
| 692 | { # 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). |
| 693 | "publicKeyId": "A String", # The identifier for the public key that verifies this signature. * The `public_key_id` is required. * The `public_key_id` SHOULD be an RFC3986 conformant URI. * When possible, the `public_key_id` SHOULD be an immutable reference, such as a cryptographic digest. Examples of valid `public_key_id`s: 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" |
| 694 | "signature": "A String", # 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. |
| 695 | }, |
| 696 | ], |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 697 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 698 | }, |
| 699 | }, |
| 700 | "deployment": { # Details of a deployment occurrence. # Describes the deployment of an artifact on a runtime. |
| 701 | "deployment": { # The period during which some deployable was active in a runtime. # Required. Deployment history for the resource. |
| 702 | "userEmail": "A String", # Identity of the user that triggered this deployment. |
| 703 | "address": "A String", # Address of the runtime element hosting this deployment. |
| 704 | "config": "A String", # Configuration used to create this deployment. |
| 705 | "resourceUri": [ # Output only. Resource URI for the artifact being deployed taken from the deployable field with the same name. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 706 | "A String", |
| 707 | ], |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 708 | "platform": "A String", # Platform hosting this deployment. |
| 709 | "deployTime": "A String", # Required. Beginning of the lifetime of this deployment. |
| 710 | "undeployTime": "A String", # End of the lifetime of this deployment. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 711 | }, |
| 712 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 713 | "remediation": "A String", # A description of actions that can be taken to remedy the note. |
| 714 | "resource": { # An entity that can have metadata. For example, a Docker image. # Required. Immutable. The resource for which the occurrence applies. |
| 715 | "name": "A String", # Deprecated, do not use. Use uri instead. The name of the resource. For example, the name of a Docker image - "Debian". |
| 716 | "contentHash": { # Container message for hash values. # Deprecated, do not use. Use uri instead. The hash of the resource content. For example, the Docker digest. |
| 717 | "type": "A String", # Required. The type of hash that was performed. |
| 718 | "value": "A String", # Required. The hash value. |
| 719 | }, |
| 720 | "uri": "A String", # Required. The unique URI of the resource. For example, `https://gcr.io/project/image@sha256:foo` for a Docker image. |
| 721 | }, |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 722 | "discovered": { # Details of a discovery occurrence. # Describes when a resource was discovered. |
| 723 | "discovered": { # Provides information about the analysis status of a discovered resource. # Required. Analysis status for the discovered resource. |
| 724 | "lastAnalysisTime": "A String", # The last time continuous analysis was done for this resource. Deprecated, do not use. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 725 | "continuousAnalysis": "A String", # Whether the resource is continuously analyzed. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 726 | "analysisStatus": "A String", # The status of discovery for the resource. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 727 | "analysisStatusError": { # 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](https://github.com/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](https://cloud.google.com/apis/design/errors). # 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. |
| 728 | "details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use. |
| 729 | { |
| 730 | "a_key": "", # Properties of the object. Contains field @type with type URL. |
| 731 | }, |
| 732 | ], |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 733 | "code": 42, # The status code, which should be an enum value of google.rpc.Code. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 734 | "message": "A String", # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 735 | }, |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 736 | }, |
| 737 | }, |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 738 | }, |
| 739 | ], |
| 740 | }</pre> |
| 741 | </div> |
| 742 | |
| 743 | <div class="method"> |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 744 | <code class="details" id="close">close()</code> |
| 745 | <pre>Close httplib2 connections.</pre> |
| 746 | </div> |
| 747 | |
| 748 | <div class="method"> |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 749 | <code class="details" id="create">create(parent, body=None, x__xgafv=None)</code> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 750 | <pre>Creates a new occurrence. |
| 751 | |
| 752 | Args: |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 753 | parent: string, Required. The name of the project in the form of `projects/[PROJECT_ID]`, under which the occurrence is to be created. (required) |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 754 | body: object, The request body. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 755 | The object takes the form of: |
| 756 | |
| 757 | { # An instance of an analysis type that has been found on a resource. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 758 | "vulnerability": { # Details of a vulnerability Occurrence. # Describes a security vulnerability. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 759 | "type": "A String", # The type of package; whether native or non native(ruby gems, node.js packages etc) |
| 760 | "longDescription": "A String", # Output only. A detailed description of this vulnerability. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 761 | "packageIssue": [ # Required. The set of affected locations and their fixes (if available) within the associated resource. |
| 762 | { # This message wraps a location affected by a vulnerability and its associated fix (if one is available). |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 763 | "affectedLocation": { # The location of the vulnerability. # Required. The location of the vulnerability. |
| 764 | "version": { # Version contains structured information about the version of a package. # Required. The version of the package being described. |
| 765 | "revision": "A String", # The iteration of the package build from the above version. |
| 766 | "epoch": 42, # Used to correct mistakes in the version numbering scheme. |
| 767 | "kind": "A String", # Required. Distinguishes between sentinel MIN/MAX versions and normal versions. |
| 768 | "name": "A String", # Required only when version kind is NORMAL. The main part of the version name. |
| 769 | }, |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 770 | "package": "A String", # Required. The package being described. |
| 771 | "cpeUri": "A String", # Required. The CPE URI in [cpe format](https://cpe.mitre.org/specification/) format. Examples include distro or storage location for vulnerable jar. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 772 | }, |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 773 | "severityName": "A String", # Deprecated, use Details.effective_severity instead The severity (e.g., distro assigned severity) for this vulnerability. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 774 | "fixedLocation": { # The location of the vulnerability. # The location of the available fix for vulnerability. |
| 775 | "version": { # Version contains structured information about the version of a package. # Required. The version of the package being described. |
| 776 | "revision": "A String", # The iteration of the package build from the above version. |
| 777 | "epoch": 42, # Used to correct mistakes in the version numbering scheme. |
| 778 | "kind": "A String", # Required. Distinguishes between sentinel MIN/MAX versions and normal versions. |
| 779 | "name": "A String", # Required only when version kind is NORMAL. The main part of the version name. |
| 780 | }, |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 781 | "package": "A String", # Required. The package being described. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 782 | "cpeUri": "A String", # Required. The CPE URI in [cpe format](https://cpe.mitre.org/specification/) format. Examples include distro or storage location for vulnerable jar. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 783 | }, |
| 784 | }, |
| 785 | ], |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 786 | "severity": "A String", # Output only. The note provider assigned Severity of the vulnerability. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 787 | "relatedUrls": [ # Output only. URLs related to this vulnerability. |
| 788 | { # Metadata for any related URL information. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 789 | "label": "A String", # Label to describe usage of the URL. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 790 | "url": "A String", # Specific URL associated with the resource. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 791 | }, |
| 792 | ], |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 793 | "shortDescription": "A String", # Output only. A one sentence description of this vulnerability. |
| 794 | "effectiveSeverity": "A String", # The distro assigned severity for this vulnerability when it is available, and note provider assigned severity when distro has not yet assigned a severity for this vulnerability. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 795 | "cvssScore": 3.14, # 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. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 796 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 797 | "build": { # Details of a build occurrence. # Describes a verifiable build. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 798 | "provenanceBytes": "A String", # Serialized JSON representation of the provenance, used in generating the build signature in the corresponding build note. After verifying the signature, `provenance_bytes` can be unmarshalled and compared to the provenance to confirm that it is unchanged. A base64-encoded string representation of the provenance bytes is used for the signature in order to interoperate with openssl which expects this format for signature verification. 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. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 799 | "provenance": { # Provenance of a build. Contains all information needed to verify the full details about the build from source to completion. # Required. The actual provenance for the build. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 800 | "logsUri": "A String", # URI where any logs for this provenance were written. |
| 801 | "startTime": "A String", # Time at which execution of the build was started. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 802 | "builtArtifacts": [ # Output of the build. |
| 803 | { # Artifact describes a build product. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 804 | "checksum": "A String", # Hash or checksum value of a binary, or Docker Registry 2.0 digest of a container. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 805 | "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 `docker push`. Note that a single Artifact ID can have multiple names, for example if two tags are applied to one image. |
| 806 | "A String", |
| 807 | ], |
| 808 | "id": "A String", # Artifact ID, if any; for container images, this will be a URL by digest like `gcr.io/projectID/imagename@sha256:123456`. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 809 | }, |
| 810 | ], |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 811 | "triggerId": "A String", # Trigger identifier if the build was triggered automatically; empty if not. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 812 | "buildOptions": { # Special options applied to this build. This is a catch-all field where build providers can enter any desired additional details. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 813 | "a_key": "A String", |
| 814 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 815 | "commands": [ # Commands requested by the build. |
| 816 | { # Command describes a step performed as part of the build pipeline. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 817 | "name": "A String", # Required. Name of the command, as presented on the command line, or if the command is packaged as a Docker container, as presented to `docker pull`. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 818 | "env": [ # Environment variables set before running this command. |
| 819 | "A String", |
| 820 | ], |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 821 | "id": "A String", # Optional unique identifier for this command, used in wait_for to reference this command as a dependency. |
| 822 | "args": [ # Command-line arguments used when executing this command. |
| 823 | "A String", |
| 824 | ], |
| 825 | "waitFor": [ # The ID(s) of the command(s) that this command depends on. |
| 826 | "A String", |
| 827 | ], |
| 828 | "dir": "A String", # Working directory (relative to project source root) used when running this command. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 829 | }, |
| 830 | ], |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 831 | "creator": "A String", # 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. |
| 832 | "builderVersion": "A String", # Version string of the builder at the time this build was executed. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 833 | "sourceProvenance": { # Source describes the location of the source used for the build. # Details of the Source input to the build. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 834 | "context": { # 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. # If provided, the source code used for the build came from this location. |
| 835 | "labels": { # Labels with user defined metadata. |
| 836 | "a_key": "A String", |
| 837 | }, |
| 838 | "cloudRepo": { # A CloudRepoSourceContext denotes a particular revision in a Google Cloud Source Repo. # A SourceContext referring to a revision in a Google Cloud Source Repo. |
| 839 | "aliasContext": { # An alias to a repo revision. # An alias, which may be a branch or tag. |
| 840 | "kind": "A String", # The alias kind. |
| 841 | "name": "A String", # The alias name. |
| 842 | }, |
| 843 | "revisionId": "A String", # A revision ID. |
| 844 | "repoId": { # A unique identifier for a Cloud Repo. # The ID of the repo. |
| 845 | "projectRepoId": { # Selects a repo using a Google Cloud Platform project ID (e.g., winged-cargo-31) and a repo name within that project. # A combination of a project ID and a repo name. |
| 846 | "repoName": "A String", # The name of the repo. Leave empty for the default repo. |
| 847 | "projectId": "A String", # The ID of the project. |
| 848 | }, |
| 849 | "uid": "A String", # A server-assigned, globally unique identifier. |
| 850 | }, |
| 851 | }, |
| 852 | "git": { # A GitSourceContext denotes a particular revision in a third party Git repository (e.g., GitHub). # A SourceContext referring to any third party Git repo (e.g., GitHub). |
| 853 | "url": "A String", # Git repository URL. |
| 854 | "revisionId": "A String", # Git commit hash. |
| 855 | }, |
| 856 | "gerrit": { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project. |
| 857 | "revisionId": "A String", # A revision (commit) ID. |
| 858 | "hostUri": "A String", # The URI of a running Gerrit instance. |
| 859 | "aliasContext": { # An alias to a repo revision. # An alias, which may be a branch or tag. |
| 860 | "kind": "A String", # The alias kind. |
| 861 | "name": "A String", # The alias name. |
| 862 | }, |
| 863 | "gerritProject": "A String", # 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. |
| 864 | }, |
| 865 | }, |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 866 | "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. |
| 867 | { # 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. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 868 | "labels": { # Labels with user defined metadata. |
| 869 | "a_key": "A String", |
| 870 | }, |
| 871 | "cloudRepo": { # A CloudRepoSourceContext denotes a particular revision in a Google Cloud Source Repo. # A SourceContext referring to a revision in a Google Cloud Source Repo. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 872 | "aliasContext": { # An alias to a repo revision. # An alias, which may be a branch or tag. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 873 | "kind": "A String", # The alias kind. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 874 | "name": "A String", # The alias name. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 875 | }, |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 876 | "revisionId": "A String", # A revision ID. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 877 | "repoId": { # A unique identifier for a Cloud Repo. # The ID of the repo. |
| 878 | "projectRepoId": { # Selects a repo using a Google Cloud Platform project ID (e.g., winged-cargo-31) and a repo name within that project. # A combination of a project ID and a repo name. |
| 879 | "repoName": "A String", # The name of the repo. Leave empty for the default repo. |
| 880 | "projectId": "A String", # The ID of the project. |
| 881 | }, |
| 882 | "uid": "A String", # A server-assigned, globally unique identifier. |
| 883 | }, |
| 884 | }, |
| 885 | "git": { # A GitSourceContext denotes a particular revision in a third party Git repository (e.g., GitHub). # A SourceContext referring to any third party Git repo (e.g., GitHub). |
| 886 | "url": "A String", # Git repository URL. |
| 887 | "revisionId": "A String", # Git commit hash. |
| 888 | }, |
| 889 | "gerrit": { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project. |
| 890 | "revisionId": "A String", # A revision (commit) ID. |
| 891 | "hostUri": "A String", # The URI of a running Gerrit instance. |
| 892 | "aliasContext": { # An alias to a repo revision. # An alias, which may be a branch or tag. |
| 893 | "kind": "A String", # The alias kind. |
| 894 | "name": "A String", # The alias name. |
| 895 | }, |
| 896 | "gerritProject": "A String", # 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. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 897 | }, |
| 898 | }, |
| 899 | ], |
| 900 | "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. |
| 901 | "a_key": { # Container message for hashes of byte content of files, used in source messages to verify integrity of source input to the build. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 902 | "fileHash": [ # Required. Collection of file hashes. |
| 903 | { # Container message for hash values. |
| 904 | "type": "A String", # Required. The type of hash that was performed. |
| 905 | "value": "A String", # Required. The hash value. |
| 906 | }, |
| 907 | ], |
| 908 | }, |
| 909 | }, |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 910 | "artifactStorageSourceUri": "A String", # If provided, the input binary artifacts for the build came from this location. |
| 911 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 912 | "projectId": "A String", # ID of the project. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 913 | "createTime": "A String", # Time at which the build was created. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 914 | "id": "A String", # Required. Unique identifier of the build. |
| 915 | "endTime": "A String", # Time at which execution of the build was finished. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 916 | }, |
| 917 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 918 | "kind": "A String", # Output only. This explicitly denotes which of the occurrence details are specified. This field can be used as a filter in list requests. |
| 919 | "createTime": "A String", # Output only. The time this occurrence was created. |
| 920 | "intoto": { # 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. # Describes a specific in-toto link. |
| 921 | "signatures": [ |
| 922 | { # A signature object consists of the KeyID used and the signature itself. |
| 923 | "keyid": "A String", |
| 924 | "sig": "A String", |
| 925 | }, |
| 926 | ], |
| 927 | "signed": { # This corresponds to an in-toto link. |
| 928 | "command": [ # This field contains the full command executed for the step. This can also be empty if links are generated for operations that aren't directly mapped to a specific command. Each term in the command is an independent string in the list. An example of a command in the in-toto metadata field is: "command": ["git", "clone", "https://github.com/in-toto/demo-project.git"] |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 929 | "A String", |
| 930 | ], |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 931 | "products": [ # Products are the supply chain artifacts generated as a result of the step. The structure is identical to that of materials. |
| 932 | { |
| 933 | "resourceUri": "A String", |
| 934 | "hashes": { # Defines a hash object for use in Materials and Products. |
| 935 | "sha256": "A String", |
| 936 | }, |
| 937 | }, |
| 938 | ], |
| 939 | "environment": { # Defines an object for the environment field in in-toto links. The suggested fields are "variables", "filesystem", and "workdir". # This is a field that can be used to capture information about the environment. It is suggested for this field to contain information that details environment variables, filesystem information, and the present working directory. The recommended structure of this field is: "environment": { "custom_values": { "variables": "", "filesystem": "", "workdir": "", "": "..." } } |
| 940 | "customValues": { |
| 941 | "a_key": "A String", |
| 942 | }, |
| 943 | }, |
| 944 | "byproducts": { # Defines an object for the byproducts field in in-toto links. The suggested fields are "stderr", "stdout", and "return-value". # ByProducts are data generated as part of a software supply chain step, but are not the actual result of the step. |
| 945 | "customValues": { |
| 946 | "a_key": "A String", |
| 947 | }, |
| 948 | }, |
| 949 | "materials": [ # Materials are the supply chain artifacts that go into the step and are used for the operation performed. The key of the map is the path of the artifact and the structure contains the recorded hash information. An example is: "materials": [ { "resource_uri": "foo/bar", "hashes": { "sha256": "ebebf...", : } } ] |
| 950 | { |
| 951 | "resourceUri": "A String", |
| 952 | "hashes": { # Defines a hash object for use in Materials and Products. |
| 953 | "sha256": "A String", |
| 954 | }, |
| 955 | }, |
| 956 | ], |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 957 | }, |
| 958 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 959 | "noteName": "A String", # Required. Immutable. The analysis note associated with this occurrence, in the form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. This field can be used as a filter in list requests. |
| 960 | "name": "A String", # Output only. The name of the occurrence in the form of `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. |
| 961 | "installation": { # Details of a package occurrence. # Describes the installation of a package on the linked resource. |
| 962 | "installation": { # This represents how a particular software package may be installed on a system. # Required. Where the package was installed. |
| 963 | "location": [ # Required. All of the places within the filesystem versions of this package have been found. |
| 964 | { # An occurrence of a particular package installation found within a system's filesystem. E.g., glibc was found in `/var/lib/dpkg/status`. |
| 965 | "path": "A String", # The path from which we gathered that this package/version is installed. |
| 966 | "version": { # Version contains structured information about the version of a package. # The version installed at this location. |
| 967 | "revision": "A String", # The iteration of the package build from the above version. |
| 968 | "epoch": 42, # Used to correct mistakes in the version numbering scheme. |
| 969 | "kind": "A String", # Required. Distinguishes between sentinel MIN/MAX versions and normal versions. |
| 970 | "name": "A String", # Required only when version kind is NORMAL. The main part of the version name. |
| 971 | }, |
| 972 | "cpeUri": "A String", # Required. The CPE URI in [CPE format](https://cpe.mitre.org/specification/) denoting the package manager version distributing a package. |
| 973 | }, |
| 974 | ], |
| 975 | "name": "A String", # Output only. The name of the installed package. |
| 976 | }, |
| 977 | }, |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 978 | "derivedImage": { # Details of an image occurrence. # Describes how this resource derives from the basis in the associated note. |
| 979 | "derivedImage": { # Derived describes the derived image portion (Occurrence) of the DockerImage relationship. This image would be produced from a Dockerfile with FROM . # Required. Immutable. The child image derived from the base image. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 980 | "distance": 42, # Output only. The number of layers by which this image differs from the associated image basis. |
| 981 | "baseResourceUrl": "A String", # Output only. This contains the base image URL for the derived image occurrence. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 982 | "fingerprint": { # A set of properties that uniquely identify a given Docker image. # Required. The fingerprint of the derived image. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 983 | "v2Name": "A String", # Output only. The name of the image's v2 blobs computed via: [bottom] := v2_blobbottom := sha256(v2_blob[N] + " " + v2_name[N+1]) Only the name of the final blob is kept. |
| 984 | "v1Name": "A String", # Required. The layer ID of the final layer in the Docker image's v1 representation. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 985 | "v2Blob": [ # Required. The ordered list of v2 blobs that represent a given image. |
| 986 | "A String", |
| 987 | ], |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 988 | }, |
| 989 | "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. |
| 990 | { # Layer holds metadata specific to a layer of a Docker image. |
| 991 | "directive": "A String", # Required. The recovered Dockerfile directive used to construct this layer. |
| 992 | "arguments": "A String", # The recovered arguments to the Dockerfile directive. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 993 | }, |
| 994 | ], |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 995 | }, |
| 996 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 997 | "updateTime": "A String", # Output only. The time this occurrence was last updated. |
| 998 | "attestation": { # Details of an attestation occurrence. # Describes an attestation of an artifact. |
| 999 | "attestation": { # 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). # Required. Attestation for the resource. |
| 1000 | "pgpSignedAttestation": { # 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. # A PGP signed attestation. |
| 1001 | "signature": "A String", # Required. The raw content of the signature, as output by GNU Privacy Guard (GPG) or equivalent. Since this message only supports attached signatures, the payload that was signed must be attached. While the signature format supported is dependent on the verification implementation, currently only ASCII-armored (`--armor` to gpg), non-clearsigned (`--sign` rather than `--clearsign` to gpg) are supported. Concretely, `gpg --sign --armor --output=signature.gpg payload.json` will create the signature content expected in this field in `signature.gpg` for the `payload.json` attestation payload. |
| 1002 | "pgpKeyId": "A String", # The cryptographic fingerprint of the key used to generate the signature, as output by, e.g. `gpg --list-keys`. This should be the version 4, full 160-bit fingerprint, expressed as a 40 character hexidecimal string. See https://tools.ietf.org/html/rfc4880#section-12.2 for details. Implementations may choose to acknowledge "LONG", "SHORT", or other abbreviated key IDs, but only the full fingerprint is guaranteed to work. In gpg, the full fingerprint can be retrieved from the `fpr` field returned when calling --list-keys with --with-colons. For example: ``` gpg --with-colons --with-fingerprint --force-v4-certs \ --list-keys attester@example.com tru::1:1513631572:0:3:1:5 pub:...... fpr:::::::::24FF6481B76AC91E66A00AC657A93A81EF3AE6FB: ``` Above, the fingerprint is `24FF6481B76AC91E66A00AC657A93A81EF3AE6FB`. |
| 1003 | "contentType": "A String", # Type (for example schema) of the attestation payload that was signed. The verifier must ensure that the provided type is one that the verifier supports, and that the attestation payload is a valid instantiation of that type (for example by validating a JSON schema). |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1004 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 1005 | "genericSignedAttestation": { # 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. |
| 1006 | "serializedPayload": "A String", # The serialized payload that is verified by one or more `signatures`. The encoding and semantic meaning of this payload must match what is set in `content_type`. |
| 1007 | "contentType": "A String", # Type (for example schema) of the attestation payload that was signed. The verifier must ensure that the provided type is one that the verifier supports, and that the attestation payload is a valid instantiation of that type (for example by validating a JSON schema). |
| 1008 | "signatures": [ # One or more signatures over `serialized_payload`. Verifier implementations should consider this attestation message verified if at least one `signature` verifies `serialized_payload`. See `Signature` in common.proto for more details on signature structure and verification. |
| 1009 | { # 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). |
| 1010 | "publicKeyId": "A String", # The identifier for the public key that verifies this signature. * The `public_key_id` is required. * The `public_key_id` SHOULD be an RFC3986 conformant URI. * When possible, the `public_key_id` SHOULD be an immutable reference, such as a cryptographic digest. Examples of valid `public_key_id`s: 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" |
| 1011 | "signature": "A String", # 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. |
| 1012 | }, |
| 1013 | ], |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1014 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 1015 | }, |
| 1016 | }, |
| 1017 | "deployment": { # Details of a deployment occurrence. # Describes the deployment of an artifact on a runtime. |
| 1018 | "deployment": { # The period during which some deployable was active in a runtime. # Required. Deployment history for the resource. |
| 1019 | "userEmail": "A String", # Identity of the user that triggered this deployment. |
| 1020 | "address": "A String", # Address of the runtime element hosting this deployment. |
| 1021 | "config": "A String", # Configuration used to create this deployment. |
| 1022 | "resourceUri": [ # Output only. Resource URI for the artifact being deployed taken from the deployable field with the same name. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1023 | "A String", |
| 1024 | ], |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 1025 | "platform": "A String", # Platform hosting this deployment. |
| 1026 | "deployTime": "A String", # Required. Beginning of the lifetime of this deployment. |
| 1027 | "undeployTime": "A String", # End of the lifetime of this deployment. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1028 | }, |
| 1029 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 1030 | "remediation": "A String", # A description of actions that can be taken to remedy the note. |
| 1031 | "resource": { # An entity that can have metadata. For example, a Docker image. # Required. Immutable. The resource for which the occurrence applies. |
| 1032 | "name": "A String", # Deprecated, do not use. Use uri instead. The name of the resource. For example, the name of a Docker image - "Debian". |
| 1033 | "contentHash": { # Container message for hash values. # Deprecated, do not use. Use uri instead. The hash of the resource content. For example, the Docker digest. |
| 1034 | "type": "A String", # Required. The type of hash that was performed. |
| 1035 | "value": "A String", # Required. The hash value. |
| 1036 | }, |
| 1037 | "uri": "A String", # Required. The unique URI of the resource. For example, `https://gcr.io/project/image@sha256:foo` for a Docker image. |
| 1038 | }, |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1039 | "discovered": { # Details of a discovery occurrence. # Describes when a resource was discovered. |
| 1040 | "discovered": { # Provides information about the analysis status of a discovered resource. # Required. Analysis status for the discovered resource. |
| 1041 | "lastAnalysisTime": "A String", # The last time continuous analysis was done for this resource. Deprecated, do not use. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1042 | "continuousAnalysis": "A String", # Whether the resource is continuously analyzed. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 1043 | "analysisStatus": "A String", # The status of discovery for the resource. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1044 | "analysisStatusError": { # 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](https://github.com/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](https://cloud.google.com/apis/design/errors). # 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. |
| 1045 | "details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use. |
| 1046 | { |
| 1047 | "a_key": "", # Properties of the object. Contains field @type with type URL. |
| 1048 | }, |
| 1049 | ], |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1050 | "code": 42, # The status code, which should be an enum value of google.rpc.Code. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 1051 | "message": "A String", # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1052 | }, |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 1053 | }, |
| 1054 | }, |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1055 | } |
| 1056 | |
| 1057 | x__xgafv: string, V1 error format. |
| 1058 | Allowed values |
| 1059 | 1 - v1 error format |
| 1060 | 2 - v2 error format |
| 1061 | |
| 1062 | Returns: |
| 1063 | An object of the form: |
| 1064 | |
| 1065 | { # An instance of an analysis type that has been found on a resource. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1066 | "vulnerability": { # Details of a vulnerability Occurrence. # Describes a security vulnerability. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 1067 | "type": "A String", # The type of package; whether native or non native(ruby gems, node.js packages etc) |
| 1068 | "longDescription": "A String", # Output only. A detailed description of this vulnerability. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 1069 | "packageIssue": [ # Required. The set of affected locations and their fixes (if available) within the associated resource. |
| 1070 | { # This message wraps a location affected by a vulnerability and its associated fix (if one is available). |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 1071 | "affectedLocation": { # The location of the vulnerability. # Required. The location of the vulnerability. |
| 1072 | "version": { # Version contains structured information about the version of a package. # Required. The version of the package being described. |
| 1073 | "revision": "A String", # The iteration of the package build from the above version. |
| 1074 | "epoch": 42, # Used to correct mistakes in the version numbering scheme. |
| 1075 | "kind": "A String", # Required. Distinguishes between sentinel MIN/MAX versions and normal versions. |
| 1076 | "name": "A String", # Required only when version kind is NORMAL. The main part of the version name. |
| 1077 | }, |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1078 | "package": "A String", # Required. The package being described. |
| 1079 | "cpeUri": "A String", # Required. The CPE URI in [cpe format](https://cpe.mitre.org/specification/) format. Examples include distro or storage location for vulnerable jar. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1080 | }, |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 1081 | "severityName": "A String", # Deprecated, use Details.effective_severity instead The severity (e.g., distro assigned severity) for this vulnerability. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 1082 | "fixedLocation": { # The location of the vulnerability. # The location of the available fix for vulnerability. |
| 1083 | "version": { # Version contains structured information about the version of a package. # Required. The version of the package being described. |
| 1084 | "revision": "A String", # The iteration of the package build from the above version. |
| 1085 | "epoch": 42, # Used to correct mistakes in the version numbering scheme. |
| 1086 | "kind": "A String", # Required. Distinguishes between sentinel MIN/MAX versions and normal versions. |
| 1087 | "name": "A String", # Required only when version kind is NORMAL. The main part of the version name. |
| 1088 | }, |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1089 | "package": "A String", # Required. The package being described. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 1090 | "cpeUri": "A String", # Required. The CPE URI in [cpe format](https://cpe.mitre.org/specification/) format. Examples include distro or storage location for vulnerable jar. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 1091 | }, |
| 1092 | }, |
| 1093 | ], |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 1094 | "severity": "A String", # Output only. The note provider assigned Severity of the vulnerability. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1095 | "relatedUrls": [ # Output only. URLs related to this vulnerability. |
| 1096 | { # Metadata for any related URL information. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1097 | "label": "A String", # Label to describe usage of the URL. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1098 | "url": "A String", # Specific URL associated with the resource. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1099 | }, |
| 1100 | ], |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 1101 | "shortDescription": "A String", # Output only. A one sentence description of this vulnerability. |
| 1102 | "effectiveSeverity": "A String", # The distro assigned severity for this vulnerability when it is available, and note provider assigned severity when distro has not yet assigned a severity for this vulnerability. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1103 | "cvssScore": 3.14, # 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. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1104 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1105 | "build": { # Details of a build occurrence. # Describes a verifiable build. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1106 | "provenanceBytes": "A String", # Serialized JSON representation of the provenance, used in generating the build signature in the corresponding build note. After verifying the signature, `provenance_bytes` can be unmarshalled and compared to the provenance to confirm that it is unchanged. A base64-encoded string representation of the provenance bytes is used for the signature in order to interoperate with openssl which expects this format for signature verification. 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. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 1107 | "provenance": { # Provenance of a build. Contains all information needed to verify the full details about the build from source to completion. # Required. The actual provenance for the build. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 1108 | "logsUri": "A String", # URI where any logs for this provenance were written. |
| 1109 | "startTime": "A String", # Time at which execution of the build was started. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1110 | "builtArtifacts": [ # Output of the build. |
| 1111 | { # Artifact describes a build product. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 1112 | "checksum": "A String", # Hash or checksum value of a binary, or Docker Registry 2.0 digest of a container. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1113 | "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 `docker push`. Note that a single Artifact ID can have multiple names, for example if two tags are applied to one image. |
| 1114 | "A String", |
| 1115 | ], |
| 1116 | "id": "A String", # Artifact ID, if any; for container images, this will be a URL by digest like `gcr.io/projectID/imagename@sha256:123456`. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1117 | }, |
| 1118 | ], |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 1119 | "triggerId": "A String", # Trigger identifier if the build was triggered automatically; empty if not. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 1120 | "buildOptions": { # Special options applied to this build. This is a catch-all field where build providers can enter any desired additional details. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1121 | "a_key": "A String", |
| 1122 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1123 | "commands": [ # Commands requested by the build. |
| 1124 | { # Command describes a step performed as part of the build pipeline. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1125 | "name": "A String", # Required. Name of the command, as presented on the command line, or if the command is packaged as a Docker container, as presented to `docker pull`. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1126 | "env": [ # Environment variables set before running this command. |
| 1127 | "A String", |
| 1128 | ], |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 1129 | "id": "A String", # Optional unique identifier for this command, used in wait_for to reference this command as a dependency. |
| 1130 | "args": [ # Command-line arguments used when executing this command. |
| 1131 | "A String", |
| 1132 | ], |
| 1133 | "waitFor": [ # The ID(s) of the command(s) that this command depends on. |
| 1134 | "A String", |
| 1135 | ], |
| 1136 | "dir": "A String", # Working directory (relative to project source root) used when running this command. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 1137 | }, |
| 1138 | ], |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 1139 | "creator": "A String", # 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. |
| 1140 | "builderVersion": "A String", # Version string of the builder at the time this build was executed. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1141 | "sourceProvenance": { # Source describes the location of the source used for the build. # Details of the Source input to the build. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 1142 | "context": { # 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. # If provided, the source code used for the build came from this location. |
| 1143 | "labels": { # Labels with user defined metadata. |
| 1144 | "a_key": "A String", |
| 1145 | }, |
| 1146 | "cloudRepo": { # A CloudRepoSourceContext denotes a particular revision in a Google Cloud Source Repo. # A SourceContext referring to a revision in a Google Cloud Source Repo. |
| 1147 | "aliasContext": { # An alias to a repo revision. # An alias, which may be a branch or tag. |
| 1148 | "kind": "A String", # The alias kind. |
| 1149 | "name": "A String", # The alias name. |
| 1150 | }, |
| 1151 | "revisionId": "A String", # A revision ID. |
| 1152 | "repoId": { # A unique identifier for a Cloud Repo. # The ID of the repo. |
| 1153 | "projectRepoId": { # Selects a repo using a Google Cloud Platform project ID (e.g., winged-cargo-31) and a repo name within that project. # A combination of a project ID and a repo name. |
| 1154 | "repoName": "A String", # The name of the repo. Leave empty for the default repo. |
| 1155 | "projectId": "A String", # The ID of the project. |
| 1156 | }, |
| 1157 | "uid": "A String", # A server-assigned, globally unique identifier. |
| 1158 | }, |
| 1159 | }, |
| 1160 | "git": { # A GitSourceContext denotes a particular revision in a third party Git repository (e.g., GitHub). # A SourceContext referring to any third party Git repo (e.g., GitHub). |
| 1161 | "url": "A String", # Git repository URL. |
| 1162 | "revisionId": "A String", # Git commit hash. |
| 1163 | }, |
| 1164 | "gerrit": { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project. |
| 1165 | "revisionId": "A String", # A revision (commit) ID. |
| 1166 | "hostUri": "A String", # The URI of a running Gerrit instance. |
| 1167 | "aliasContext": { # An alias to a repo revision. # An alias, which may be a branch or tag. |
| 1168 | "kind": "A String", # The alias kind. |
| 1169 | "name": "A String", # The alias name. |
| 1170 | }, |
| 1171 | "gerritProject": "A String", # 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. |
| 1172 | }, |
| 1173 | }, |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 1174 | "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. |
| 1175 | { # 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. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 1176 | "labels": { # Labels with user defined metadata. |
| 1177 | "a_key": "A String", |
| 1178 | }, |
| 1179 | "cloudRepo": { # A CloudRepoSourceContext denotes a particular revision in a Google Cloud Source Repo. # A SourceContext referring to a revision in a Google Cloud Source Repo. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 1180 | "aliasContext": { # An alias to a repo revision. # An alias, which may be a branch or tag. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 1181 | "kind": "A String", # The alias kind. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 1182 | "name": "A String", # The alias name. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 1183 | }, |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1184 | "revisionId": "A String", # A revision ID. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 1185 | "repoId": { # A unique identifier for a Cloud Repo. # The ID of the repo. |
| 1186 | "projectRepoId": { # Selects a repo using a Google Cloud Platform project ID (e.g., winged-cargo-31) and a repo name within that project. # A combination of a project ID and a repo name. |
| 1187 | "repoName": "A String", # The name of the repo. Leave empty for the default repo. |
| 1188 | "projectId": "A String", # The ID of the project. |
| 1189 | }, |
| 1190 | "uid": "A String", # A server-assigned, globally unique identifier. |
| 1191 | }, |
| 1192 | }, |
| 1193 | "git": { # A GitSourceContext denotes a particular revision in a third party Git repository (e.g., GitHub). # A SourceContext referring to any third party Git repo (e.g., GitHub). |
| 1194 | "url": "A String", # Git repository URL. |
| 1195 | "revisionId": "A String", # Git commit hash. |
| 1196 | }, |
| 1197 | "gerrit": { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project. |
| 1198 | "revisionId": "A String", # A revision (commit) ID. |
| 1199 | "hostUri": "A String", # The URI of a running Gerrit instance. |
| 1200 | "aliasContext": { # An alias to a repo revision. # An alias, which may be a branch or tag. |
| 1201 | "kind": "A String", # The alias kind. |
| 1202 | "name": "A String", # The alias name. |
| 1203 | }, |
| 1204 | "gerritProject": "A String", # 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. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 1205 | }, |
| 1206 | }, |
| 1207 | ], |
| 1208 | "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. |
| 1209 | "a_key": { # Container message for hashes of byte content of files, used in source messages to verify integrity of source input to the build. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1210 | "fileHash": [ # Required. Collection of file hashes. |
| 1211 | { # Container message for hash values. |
| 1212 | "type": "A String", # Required. The type of hash that was performed. |
| 1213 | "value": "A String", # Required. The hash value. |
| 1214 | }, |
| 1215 | ], |
| 1216 | }, |
| 1217 | }, |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1218 | "artifactStorageSourceUri": "A String", # If provided, the input binary artifacts for the build came from this location. |
| 1219 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 1220 | "projectId": "A String", # ID of the project. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1221 | "createTime": "A String", # Time at which the build was created. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 1222 | "id": "A String", # Required. Unique identifier of the build. |
| 1223 | "endTime": "A String", # Time at which execution of the build was finished. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1224 | }, |
| 1225 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 1226 | "kind": "A String", # Output only. This explicitly denotes which of the occurrence details are specified. This field can be used as a filter in list requests. |
| 1227 | "createTime": "A String", # Output only. The time this occurrence was created. |
| 1228 | "intoto": { # 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. # Describes a specific in-toto link. |
| 1229 | "signatures": [ |
| 1230 | { # A signature object consists of the KeyID used and the signature itself. |
| 1231 | "keyid": "A String", |
| 1232 | "sig": "A String", |
| 1233 | }, |
| 1234 | ], |
| 1235 | "signed": { # This corresponds to an in-toto link. |
| 1236 | "command": [ # This field contains the full command executed for the step. This can also be empty if links are generated for operations that aren't directly mapped to a specific command. Each term in the command is an independent string in the list. An example of a command in the in-toto metadata field is: "command": ["git", "clone", "https://github.com/in-toto/demo-project.git"] |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1237 | "A String", |
| 1238 | ], |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 1239 | "products": [ # Products are the supply chain artifacts generated as a result of the step. The structure is identical to that of materials. |
| 1240 | { |
| 1241 | "resourceUri": "A String", |
| 1242 | "hashes": { # Defines a hash object for use in Materials and Products. |
| 1243 | "sha256": "A String", |
| 1244 | }, |
| 1245 | }, |
| 1246 | ], |
| 1247 | "environment": { # Defines an object for the environment field in in-toto links. The suggested fields are "variables", "filesystem", and "workdir". # This is a field that can be used to capture information about the environment. It is suggested for this field to contain information that details environment variables, filesystem information, and the present working directory. The recommended structure of this field is: "environment": { "custom_values": { "variables": "", "filesystem": "", "workdir": "", "": "..." } } |
| 1248 | "customValues": { |
| 1249 | "a_key": "A String", |
| 1250 | }, |
| 1251 | }, |
| 1252 | "byproducts": { # Defines an object for the byproducts field in in-toto links. The suggested fields are "stderr", "stdout", and "return-value". # ByProducts are data generated as part of a software supply chain step, but are not the actual result of the step. |
| 1253 | "customValues": { |
| 1254 | "a_key": "A String", |
| 1255 | }, |
| 1256 | }, |
| 1257 | "materials": [ # Materials are the supply chain artifacts that go into the step and are used for the operation performed. The key of the map is the path of the artifact and the structure contains the recorded hash information. An example is: "materials": [ { "resource_uri": "foo/bar", "hashes": { "sha256": "ebebf...", : } } ] |
| 1258 | { |
| 1259 | "resourceUri": "A String", |
| 1260 | "hashes": { # Defines a hash object for use in Materials and Products. |
| 1261 | "sha256": "A String", |
| 1262 | }, |
| 1263 | }, |
| 1264 | ], |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1265 | }, |
| 1266 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 1267 | "noteName": "A String", # Required. Immutable. The analysis note associated with this occurrence, in the form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. This field can be used as a filter in list requests. |
| 1268 | "name": "A String", # Output only. The name of the occurrence in the form of `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. |
| 1269 | "installation": { # Details of a package occurrence. # Describes the installation of a package on the linked resource. |
| 1270 | "installation": { # This represents how a particular software package may be installed on a system. # Required. Where the package was installed. |
| 1271 | "location": [ # Required. All of the places within the filesystem versions of this package have been found. |
| 1272 | { # An occurrence of a particular package installation found within a system's filesystem. E.g., glibc was found in `/var/lib/dpkg/status`. |
| 1273 | "path": "A String", # The path from which we gathered that this package/version is installed. |
| 1274 | "version": { # Version contains structured information about the version of a package. # The version installed at this location. |
| 1275 | "revision": "A String", # The iteration of the package build from the above version. |
| 1276 | "epoch": 42, # Used to correct mistakes in the version numbering scheme. |
| 1277 | "kind": "A String", # Required. Distinguishes between sentinel MIN/MAX versions and normal versions. |
| 1278 | "name": "A String", # Required only when version kind is NORMAL. The main part of the version name. |
| 1279 | }, |
| 1280 | "cpeUri": "A String", # Required. The CPE URI in [CPE format](https://cpe.mitre.org/specification/) denoting the package manager version distributing a package. |
| 1281 | }, |
| 1282 | ], |
| 1283 | "name": "A String", # Output only. The name of the installed package. |
| 1284 | }, |
| 1285 | }, |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1286 | "derivedImage": { # Details of an image occurrence. # Describes how this resource derives from the basis in the associated note. |
| 1287 | "derivedImage": { # Derived describes the derived image portion (Occurrence) of the DockerImage relationship. This image would be produced from a Dockerfile with FROM . # Required. Immutable. The child image derived from the base image. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 1288 | "distance": 42, # Output only. The number of layers by which this image differs from the associated image basis. |
| 1289 | "baseResourceUrl": "A String", # Output only. This contains the base image URL for the derived image occurrence. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1290 | "fingerprint": { # A set of properties that uniquely identify a given Docker image. # Required. The fingerprint of the derived image. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 1291 | "v2Name": "A String", # Output only. The name of the image's v2 blobs computed via: [bottom] := v2_blobbottom := sha256(v2_blob[N] + " " + v2_name[N+1]) Only the name of the final blob is kept. |
| 1292 | "v1Name": "A String", # Required. The layer ID of the final layer in the Docker image's v1 representation. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1293 | "v2Blob": [ # Required. The ordered list of v2 blobs that represent a given image. |
| 1294 | "A String", |
| 1295 | ], |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1296 | }, |
| 1297 | "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. |
| 1298 | { # Layer holds metadata specific to a layer of a Docker image. |
| 1299 | "directive": "A String", # Required. The recovered Dockerfile directive used to construct this layer. |
| 1300 | "arguments": "A String", # The recovered arguments to the Dockerfile directive. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1301 | }, |
| 1302 | ], |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1303 | }, |
| 1304 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 1305 | "updateTime": "A String", # Output only. The time this occurrence was last updated. |
| 1306 | "attestation": { # Details of an attestation occurrence. # Describes an attestation of an artifact. |
| 1307 | "attestation": { # 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). # Required. Attestation for the resource. |
| 1308 | "pgpSignedAttestation": { # 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. # A PGP signed attestation. |
| 1309 | "signature": "A String", # Required. The raw content of the signature, as output by GNU Privacy Guard (GPG) or equivalent. Since this message only supports attached signatures, the payload that was signed must be attached. While the signature format supported is dependent on the verification implementation, currently only ASCII-armored (`--armor` to gpg), non-clearsigned (`--sign` rather than `--clearsign` to gpg) are supported. Concretely, `gpg --sign --armor --output=signature.gpg payload.json` will create the signature content expected in this field in `signature.gpg` for the `payload.json` attestation payload. |
| 1310 | "pgpKeyId": "A String", # The cryptographic fingerprint of the key used to generate the signature, as output by, e.g. `gpg --list-keys`. This should be the version 4, full 160-bit fingerprint, expressed as a 40 character hexidecimal string. See https://tools.ietf.org/html/rfc4880#section-12.2 for details. Implementations may choose to acknowledge "LONG", "SHORT", or other abbreviated key IDs, but only the full fingerprint is guaranteed to work. In gpg, the full fingerprint can be retrieved from the `fpr` field returned when calling --list-keys with --with-colons. For example: ``` gpg --with-colons --with-fingerprint --force-v4-certs \ --list-keys attester@example.com tru::1:1513631572:0:3:1:5 pub:...... fpr:::::::::24FF6481B76AC91E66A00AC657A93A81EF3AE6FB: ``` Above, the fingerprint is `24FF6481B76AC91E66A00AC657A93A81EF3AE6FB`. |
| 1311 | "contentType": "A String", # Type (for example schema) of the attestation payload that was signed. The verifier must ensure that the provided type is one that the verifier supports, and that the attestation payload is a valid instantiation of that type (for example by validating a JSON schema). |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1312 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 1313 | "genericSignedAttestation": { # 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. |
| 1314 | "serializedPayload": "A String", # The serialized payload that is verified by one or more `signatures`. The encoding and semantic meaning of this payload must match what is set in `content_type`. |
| 1315 | "contentType": "A String", # Type (for example schema) of the attestation payload that was signed. The verifier must ensure that the provided type is one that the verifier supports, and that the attestation payload is a valid instantiation of that type (for example by validating a JSON schema). |
| 1316 | "signatures": [ # One or more signatures over `serialized_payload`. Verifier implementations should consider this attestation message verified if at least one `signature` verifies `serialized_payload`. See `Signature` in common.proto for more details on signature structure and verification. |
| 1317 | { # 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). |
| 1318 | "publicKeyId": "A String", # The identifier for the public key that verifies this signature. * The `public_key_id` is required. * The `public_key_id` SHOULD be an RFC3986 conformant URI. * When possible, the `public_key_id` SHOULD be an immutable reference, such as a cryptographic digest. Examples of valid `public_key_id`s: 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" |
| 1319 | "signature": "A String", # 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. |
| 1320 | }, |
| 1321 | ], |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1322 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 1323 | }, |
| 1324 | }, |
| 1325 | "deployment": { # Details of a deployment occurrence. # Describes the deployment of an artifact on a runtime. |
| 1326 | "deployment": { # The period during which some deployable was active in a runtime. # Required. Deployment history for the resource. |
| 1327 | "userEmail": "A String", # Identity of the user that triggered this deployment. |
| 1328 | "address": "A String", # Address of the runtime element hosting this deployment. |
| 1329 | "config": "A String", # Configuration used to create this deployment. |
| 1330 | "resourceUri": [ # Output only. Resource URI for the artifact being deployed taken from the deployable field with the same name. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1331 | "A String", |
| 1332 | ], |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 1333 | "platform": "A String", # Platform hosting this deployment. |
| 1334 | "deployTime": "A String", # Required. Beginning of the lifetime of this deployment. |
| 1335 | "undeployTime": "A String", # End of the lifetime of this deployment. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1336 | }, |
| 1337 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 1338 | "remediation": "A String", # A description of actions that can be taken to remedy the note. |
| 1339 | "resource": { # An entity that can have metadata. For example, a Docker image. # Required. Immutable. The resource for which the occurrence applies. |
| 1340 | "name": "A String", # Deprecated, do not use. Use uri instead. The name of the resource. For example, the name of a Docker image - "Debian". |
| 1341 | "contentHash": { # Container message for hash values. # Deprecated, do not use. Use uri instead. The hash of the resource content. For example, the Docker digest. |
| 1342 | "type": "A String", # Required. The type of hash that was performed. |
| 1343 | "value": "A String", # Required. The hash value. |
| 1344 | }, |
| 1345 | "uri": "A String", # Required. The unique URI of the resource. For example, `https://gcr.io/project/image@sha256:foo` for a Docker image. |
| 1346 | }, |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1347 | "discovered": { # Details of a discovery occurrence. # Describes when a resource was discovered. |
| 1348 | "discovered": { # Provides information about the analysis status of a discovered resource. # Required. Analysis status for the discovered resource. |
| 1349 | "lastAnalysisTime": "A String", # The last time continuous analysis was done for this resource. Deprecated, do not use. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1350 | "continuousAnalysis": "A String", # Whether the resource is continuously analyzed. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 1351 | "analysisStatus": "A String", # The status of discovery for the resource. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1352 | "analysisStatusError": { # 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](https://github.com/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](https://cloud.google.com/apis/design/errors). # 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. |
| 1353 | "details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use. |
| 1354 | { |
| 1355 | "a_key": "", # Properties of the object. Contains field @type with type URL. |
| 1356 | }, |
| 1357 | ], |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1358 | "code": 42, # The status code, which should be an enum value of google.rpc.Code. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 1359 | "message": "A String", # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1360 | }, |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 1361 | }, |
| 1362 | }, |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1363 | }</pre> |
| 1364 | </div> |
| 1365 | |
| 1366 | <div class="method"> |
| 1367 | <code class="details" id="delete">delete(name, x__xgafv=None)</code> |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 1368 | <pre>Deletes the specified occurrence. For example, use this method to delete an occurrence when the occurrence is no longer applicable for the given resource. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1369 | |
| 1370 | Args: |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 1371 | name: string, Required. The name of the occurrence in the form of `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. (required) |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1372 | x__xgafv: string, V1 error format. |
| 1373 | Allowed values |
| 1374 | 1 - v1 error format |
| 1375 | 2 - v2 error format |
| 1376 | |
| 1377 | Returns: |
| 1378 | An object of the form: |
| 1379 | |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 1380 | { # 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 `{}`. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1381 | }</pre> |
| 1382 | </div> |
| 1383 | |
| 1384 | <div class="method"> |
| 1385 | <code class="details" id="get">get(name, x__xgafv=None)</code> |
| 1386 | <pre>Gets the specified occurrence. |
| 1387 | |
| 1388 | Args: |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 1389 | name: string, Required. The name of the occurrence in the form of `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. (required) |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1390 | x__xgafv: string, V1 error format. |
| 1391 | Allowed values |
| 1392 | 1 - v1 error format |
| 1393 | 2 - v2 error format |
| 1394 | |
| 1395 | Returns: |
| 1396 | An object of the form: |
| 1397 | |
| 1398 | { # An instance of an analysis type that has been found on a resource. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1399 | "vulnerability": { # Details of a vulnerability Occurrence. # Describes a security vulnerability. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 1400 | "type": "A String", # The type of package; whether native or non native(ruby gems, node.js packages etc) |
| 1401 | "longDescription": "A String", # Output only. A detailed description of this vulnerability. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 1402 | "packageIssue": [ # Required. The set of affected locations and their fixes (if available) within the associated resource. |
| 1403 | { # This message wraps a location affected by a vulnerability and its associated fix (if one is available). |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 1404 | "affectedLocation": { # The location of the vulnerability. # Required. The location of the vulnerability. |
| 1405 | "version": { # Version contains structured information about the version of a package. # Required. The version of the package being described. |
| 1406 | "revision": "A String", # The iteration of the package build from the above version. |
| 1407 | "epoch": 42, # Used to correct mistakes in the version numbering scheme. |
| 1408 | "kind": "A String", # Required. Distinguishes between sentinel MIN/MAX versions and normal versions. |
| 1409 | "name": "A String", # Required only when version kind is NORMAL. The main part of the version name. |
| 1410 | }, |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1411 | "package": "A String", # Required. The package being described. |
| 1412 | "cpeUri": "A String", # Required. The CPE URI in [cpe format](https://cpe.mitre.org/specification/) format. Examples include distro or storage location for vulnerable jar. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1413 | }, |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 1414 | "severityName": "A String", # Deprecated, use Details.effective_severity instead The severity (e.g., distro assigned severity) for this vulnerability. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 1415 | "fixedLocation": { # The location of the vulnerability. # The location of the available fix for vulnerability. |
| 1416 | "version": { # Version contains structured information about the version of a package. # Required. The version of the package being described. |
| 1417 | "revision": "A String", # The iteration of the package build from the above version. |
| 1418 | "epoch": 42, # Used to correct mistakes in the version numbering scheme. |
| 1419 | "kind": "A String", # Required. Distinguishes between sentinel MIN/MAX versions and normal versions. |
| 1420 | "name": "A String", # Required only when version kind is NORMAL. The main part of the version name. |
| 1421 | }, |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1422 | "package": "A String", # Required. The package being described. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 1423 | "cpeUri": "A String", # Required. The CPE URI in [cpe format](https://cpe.mitre.org/specification/) format. Examples include distro or storage location for vulnerable jar. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 1424 | }, |
| 1425 | }, |
| 1426 | ], |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 1427 | "severity": "A String", # Output only. The note provider assigned Severity of the vulnerability. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1428 | "relatedUrls": [ # Output only. URLs related to this vulnerability. |
| 1429 | { # Metadata for any related URL information. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1430 | "label": "A String", # Label to describe usage of the URL. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1431 | "url": "A String", # Specific URL associated with the resource. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1432 | }, |
| 1433 | ], |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 1434 | "shortDescription": "A String", # Output only. A one sentence description of this vulnerability. |
| 1435 | "effectiveSeverity": "A String", # The distro assigned severity for this vulnerability when it is available, and note provider assigned severity when distro has not yet assigned a severity for this vulnerability. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1436 | "cvssScore": 3.14, # 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. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1437 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1438 | "build": { # Details of a build occurrence. # Describes a verifiable build. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1439 | "provenanceBytes": "A String", # Serialized JSON representation of the provenance, used in generating the build signature in the corresponding build note. After verifying the signature, `provenance_bytes` can be unmarshalled and compared to the provenance to confirm that it is unchanged. A base64-encoded string representation of the provenance bytes is used for the signature in order to interoperate with openssl which expects this format for signature verification. 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. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 1440 | "provenance": { # Provenance of a build. Contains all information needed to verify the full details about the build from source to completion. # Required. The actual provenance for the build. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 1441 | "logsUri": "A String", # URI where any logs for this provenance were written. |
| 1442 | "startTime": "A String", # Time at which execution of the build was started. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1443 | "builtArtifacts": [ # Output of the build. |
| 1444 | { # Artifact describes a build product. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 1445 | "checksum": "A String", # Hash or checksum value of a binary, or Docker Registry 2.0 digest of a container. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1446 | "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 `docker push`. Note that a single Artifact ID can have multiple names, for example if two tags are applied to one image. |
| 1447 | "A String", |
| 1448 | ], |
| 1449 | "id": "A String", # Artifact ID, if any; for container images, this will be a URL by digest like `gcr.io/projectID/imagename@sha256:123456`. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1450 | }, |
| 1451 | ], |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 1452 | "triggerId": "A String", # Trigger identifier if the build was triggered automatically; empty if not. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 1453 | "buildOptions": { # Special options applied to this build. This is a catch-all field where build providers can enter any desired additional details. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1454 | "a_key": "A String", |
| 1455 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1456 | "commands": [ # Commands requested by the build. |
| 1457 | { # Command describes a step performed as part of the build pipeline. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1458 | "name": "A String", # Required. Name of the command, as presented on the command line, or if the command is packaged as a Docker container, as presented to `docker pull`. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1459 | "env": [ # Environment variables set before running this command. |
| 1460 | "A String", |
| 1461 | ], |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 1462 | "id": "A String", # Optional unique identifier for this command, used in wait_for to reference this command as a dependency. |
| 1463 | "args": [ # Command-line arguments used when executing this command. |
| 1464 | "A String", |
| 1465 | ], |
| 1466 | "waitFor": [ # The ID(s) of the command(s) that this command depends on. |
| 1467 | "A String", |
| 1468 | ], |
| 1469 | "dir": "A String", # Working directory (relative to project source root) used when running this command. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 1470 | }, |
| 1471 | ], |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 1472 | "creator": "A String", # 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. |
| 1473 | "builderVersion": "A String", # Version string of the builder at the time this build was executed. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1474 | "sourceProvenance": { # Source describes the location of the source used for the build. # Details of the Source input to the build. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 1475 | "context": { # 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. # If provided, the source code used for the build came from this location. |
| 1476 | "labels": { # Labels with user defined metadata. |
| 1477 | "a_key": "A String", |
| 1478 | }, |
| 1479 | "cloudRepo": { # A CloudRepoSourceContext denotes a particular revision in a Google Cloud Source Repo. # A SourceContext referring to a revision in a Google Cloud Source Repo. |
| 1480 | "aliasContext": { # An alias to a repo revision. # An alias, which may be a branch or tag. |
| 1481 | "kind": "A String", # The alias kind. |
| 1482 | "name": "A String", # The alias name. |
| 1483 | }, |
| 1484 | "revisionId": "A String", # A revision ID. |
| 1485 | "repoId": { # A unique identifier for a Cloud Repo. # The ID of the repo. |
| 1486 | "projectRepoId": { # Selects a repo using a Google Cloud Platform project ID (e.g., winged-cargo-31) and a repo name within that project. # A combination of a project ID and a repo name. |
| 1487 | "repoName": "A String", # The name of the repo. Leave empty for the default repo. |
| 1488 | "projectId": "A String", # The ID of the project. |
| 1489 | }, |
| 1490 | "uid": "A String", # A server-assigned, globally unique identifier. |
| 1491 | }, |
| 1492 | }, |
| 1493 | "git": { # A GitSourceContext denotes a particular revision in a third party Git repository (e.g., GitHub). # A SourceContext referring to any third party Git repo (e.g., GitHub). |
| 1494 | "url": "A String", # Git repository URL. |
| 1495 | "revisionId": "A String", # Git commit hash. |
| 1496 | }, |
| 1497 | "gerrit": { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project. |
| 1498 | "revisionId": "A String", # A revision (commit) ID. |
| 1499 | "hostUri": "A String", # The URI of a running Gerrit instance. |
| 1500 | "aliasContext": { # An alias to a repo revision. # An alias, which may be a branch or tag. |
| 1501 | "kind": "A String", # The alias kind. |
| 1502 | "name": "A String", # The alias name. |
| 1503 | }, |
| 1504 | "gerritProject": "A String", # 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. |
| 1505 | }, |
| 1506 | }, |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 1507 | "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. |
| 1508 | { # 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. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 1509 | "labels": { # Labels with user defined metadata. |
| 1510 | "a_key": "A String", |
| 1511 | }, |
| 1512 | "cloudRepo": { # A CloudRepoSourceContext denotes a particular revision in a Google Cloud Source Repo. # A SourceContext referring to a revision in a Google Cloud Source Repo. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 1513 | "aliasContext": { # An alias to a repo revision. # An alias, which may be a branch or tag. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 1514 | "kind": "A String", # The alias kind. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 1515 | "name": "A String", # The alias name. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 1516 | }, |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1517 | "revisionId": "A String", # A revision ID. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 1518 | "repoId": { # A unique identifier for a Cloud Repo. # The ID of the repo. |
| 1519 | "projectRepoId": { # Selects a repo using a Google Cloud Platform project ID (e.g., winged-cargo-31) and a repo name within that project. # A combination of a project ID and a repo name. |
| 1520 | "repoName": "A String", # The name of the repo. Leave empty for the default repo. |
| 1521 | "projectId": "A String", # The ID of the project. |
| 1522 | }, |
| 1523 | "uid": "A String", # A server-assigned, globally unique identifier. |
| 1524 | }, |
| 1525 | }, |
| 1526 | "git": { # A GitSourceContext denotes a particular revision in a third party Git repository (e.g., GitHub). # A SourceContext referring to any third party Git repo (e.g., GitHub). |
| 1527 | "url": "A String", # Git repository URL. |
| 1528 | "revisionId": "A String", # Git commit hash. |
| 1529 | }, |
| 1530 | "gerrit": { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project. |
| 1531 | "revisionId": "A String", # A revision (commit) ID. |
| 1532 | "hostUri": "A String", # The URI of a running Gerrit instance. |
| 1533 | "aliasContext": { # An alias to a repo revision. # An alias, which may be a branch or tag. |
| 1534 | "kind": "A String", # The alias kind. |
| 1535 | "name": "A String", # The alias name. |
| 1536 | }, |
| 1537 | "gerritProject": "A String", # 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. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 1538 | }, |
| 1539 | }, |
| 1540 | ], |
| 1541 | "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. |
| 1542 | "a_key": { # Container message for hashes of byte content of files, used in source messages to verify integrity of source input to the build. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1543 | "fileHash": [ # Required. Collection of file hashes. |
| 1544 | { # Container message for hash values. |
| 1545 | "type": "A String", # Required. The type of hash that was performed. |
| 1546 | "value": "A String", # Required. The hash value. |
| 1547 | }, |
| 1548 | ], |
| 1549 | }, |
| 1550 | }, |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1551 | "artifactStorageSourceUri": "A String", # If provided, the input binary artifacts for the build came from this location. |
| 1552 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 1553 | "projectId": "A String", # ID of the project. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1554 | "createTime": "A String", # Time at which the build was created. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 1555 | "id": "A String", # Required. Unique identifier of the build. |
| 1556 | "endTime": "A String", # Time at which execution of the build was finished. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1557 | }, |
| 1558 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 1559 | "kind": "A String", # Output only. This explicitly denotes which of the occurrence details are specified. This field can be used as a filter in list requests. |
| 1560 | "createTime": "A String", # Output only. The time this occurrence was created. |
| 1561 | "intoto": { # 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. # Describes a specific in-toto link. |
| 1562 | "signatures": [ |
| 1563 | { # A signature object consists of the KeyID used and the signature itself. |
| 1564 | "keyid": "A String", |
| 1565 | "sig": "A String", |
| 1566 | }, |
| 1567 | ], |
| 1568 | "signed": { # This corresponds to an in-toto link. |
| 1569 | "command": [ # This field contains the full command executed for the step. This can also be empty if links are generated for operations that aren't directly mapped to a specific command. Each term in the command is an independent string in the list. An example of a command in the in-toto metadata field is: "command": ["git", "clone", "https://github.com/in-toto/demo-project.git"] |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1570 | "A String", |
| 1571 | ], |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 1572 | "products": [ # Products are the supply chain artifacts generated as a result of the step. The structure is identical to that of materials. |
| 1573 | { |
| 1574 | "resourceUri": "A String", |
| 1575 | "hashes": { # Defines a hash object for use in Materials and Products. |
| 1576 | "sha256": "A String", |
| 1577 | }, |
| 1578 | }, |
| 1579 | ], |
| 1580 | "environment": { # Defines an object for the environment field in in-toto links. The suggested fields are "variables", "filesystem", and "workdir". # This is a field that can be used to capture information about the environment. It is suggested for this field to contain information that details environment variables, filesystem information, and the present working directory. The recommended structure of this field is: "environment": { "custom_values": { "variables": "", "filesystem": "", "workdir": "", "": "..." } } |
| 1581 | "customValues": { |
| 1582 | "a_key": "A String", |
| 1583 | }, |
| 1584 | }, |
| 1585 | "byproducts": { # Defines an object for the byproducts field in in-toto links. The suggested fields are "stderr", "stdout", and "return-value". # ByProducts are data generated as part of a software supply chain step, but are not the actual result of the step. |
| 1586 | "customValues": { |
| 1587 | "a_key": "A String", |
| 1588 | }, |
| 1589 | }, |
| 1590 | "materials": [ # Materials are the supply chain artifacts that go into the step and are used for the operation performed. The key of the map is the path of the artifact and the structure contains the recorded hash information. An example is: "materials": [ { "resource_uri": "foo/bar", "hashes": { "sha256": "ebebf...", : } } ] |
| 1591 | { |
| 1592 | "resourceUri": "A String", |
| 1593 | "hashes": { # Defines a hash object for use in Materials and Products. |
| 1594 | "sha256": "A String", |
| 1595 | }, |
| 1596 | }, |
| 1597 | ], |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1598 | }, |
| 1599 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 1600 | "noteName": "A String", # Required. Immutable. The analysis note associated with this occurrence, in the form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. This field can be used as a filter in list requests. |
| 1601 | "name": "A String", # Output only. The name of the occurrence in the form of `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. |
| 1602 | "installation": { # Details of a package occurrence. # Describes the installation of a package on the linked resource. |
| 1603 | "installation": { # This represents how a particular software package may be installed on a system. # Required. Where the package was installed. |
| 1604 | "location": [ # Required. All of the places within the filesystem versions of this package have been found. |
| 1605 | { # An occurrence of a particular package installation found within a system's filesystem. E.g., glibc was found in `/var/lib/dpkg/status`. |
| 1606 | "path": "A String", # The path from which we gathered that this package/version is installed. |
| 1607 | "version": { # Version contains structured information about the version of a package. # The version installed at this location. |
| 1608 | "revision": "A String", # The iteration of the package build from the above version. |
| 1609 | "epoch": 42, # Used to correct mistakes in the version numbering scheme. |
| 1610 | "kind": "A String", # Required. Distinguishes between sentinel MIN/MAX versions and normal versions. |
| 1611 | "name": "A String", # Required only when version kind is NORMAL. The main part of the version name. |
| 1612 | }, |
| 1613 | "cpeUri": "A String", # Required. The CPE URI in [CPE format](https://cpe.mitre.org/specification/) denoting the package manager version distributing a package. |
| 1614 | }, |
| 1615 | ], |
| 1616 | "name": "A String", # Output only. The name of the installed package. |
| 1617 | }, |
| 1618 | }, |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1619 | "derivedImage": { # Details of an image occurrence. # Describes how this resource derives from the basis in the associated note. |
| 1620 | "derivedImage": { # Derived describes the derived image portion (Occurrence) of the DockerImage relationship. This image would be produced from a Dockerfile with FROM . # Required. Immutable. The child image derived from the base image. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 1621 | "distance": 42, # Output only. The number of layers by which this image differs from the associated image basis. |
| 1622 | "baseResourceUrl": "A String", # Output only. This contains the base image URL for the derived image occurrence. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1623 | "fingerprint": { # A set of properties that uniquely identify a given Docker image. # Required. The fingerprint of the derived image. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 1624 | "v2Name": "A String", # Output only. The name of the image's v2 blobs computed via: [bottom] := v2_blobbottom := sha256(v2_blob[N] + " " + v2_name[N+1]) Only the name of the final blob is kept. |
| 1625 | "v1Name": "A String", # Required. The layer ID of the final layer in the Docker image's v1 representation. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1626 | "v2Blob": [ # Required. The ordered list of v2 blobs that represent a given image. |
| 1627 | "A String", |
| 1628 | ], |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1629 | }, |
| 1630 | "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. |
| 1631 | { # Layer holds metadata specific to a layer of a Docker image. |
| 1632 | "directive": "A String", # Required. The recovered Dockerfile directive used to construct this layer. |
| 1633 | "arguments": "A String", # The recovered arguments to the Dockerfile directive. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1634 | }, |
| 1635 | ], |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1636 | }, |
| 1637 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 1638 | "updateTime": "A String", # Output only. The time this occurrence was last updated. |
| 1639 | "attestation": { # Details of an attestation occurrence. # Describes an attestation of an artifact. |
| 1640 | "attestation": { # 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). # Required. Attestation for the resource. |
| 1641 | "pgpSignedAttestation": { # 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. # A PGP signed attestation. |
| 1642 | "signature": "A String", # Required. The raw content of the signature, as output by GNU Privacy Guard (GPG) or equivalent. Since this message only supports attached signatures, the payload that was signed must be attached. While the signature format supported is dependent on the verification implementation, currently only ASCII-armored (`--armor` to gpg), non-clearsigned (`--sign` rather than `--clearsign` to gpg) are supported. Concretely, `gpg --sign --armor --output=signature.gpg payload.json` will create the signature content expected in this field in `signature.gpg` for the `payload.json` attestation payload. |
| 1643 | "pgpKeyId": "A String", # The cryptographic fingerprint of the key used to generate the signature, as output by, e.g. `gpg --list-keys`. This should be the version 4, full 160-bit fingerprint, expressed as a 40 character hexidecimal string. See https://tools.ietf.org/html/rfc4880#section-12.2 for details. Implementations may choose to acknowledge "LONG", "SHORT", or other abbreviated key IDs, but only the full fingerprint is guaranteed to work. In gpg, the full fingerprint can be retrieved from the `fpr` field returned when calling --list-keys with --with-colons. For example: ``` gpg --with-colons --with-fingerprint --force-v4-certs \ --list-keys attester@example.com tru::1:1513631572:0:3:1:5 pub:...... fpr:::::::::24FF6481B76AC91E66A00AC657A93A81EF3AE6FB: ``` Above, the fingerprint is `24FF6481B76AC91E66A00AC657A93A81EF3AE6FB`. |
| 1644 | "contentType": "A String", # Type (for example schema) of the attestation payload that was signed. The verifier must ensure that the provided type is one that the verifier supports, and that the attestation payload is a valid instantiation of that type (for example by validating a JSON schema). |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1645 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 1646 | "genericSignedAttestation": { # 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. |
| 1647 | "serializedPayload": "A String", # The serialized payload that is verified by one or more `signatures`. The encoding and semantic meaning of this payload must match what is set in `content_type`. |
| 1648 | "contentType": "A String", # Type (for example schema) of the attestation payload that was signed. The verifier must ensure that the provided type is one that the verifier supports, and that the attestation payload is a valid instantiation of that type (for example by validating a JSON schema). |
| 1649 | "signatures": [ # One or more signatures over `serialized_payload`. Verifier implementations should consider this attestation message verified if at least one `signature` verifies `serialized_payload`. See `Signature` in common.proto for more details on signature structure and verification. |
| 1650 | { # 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). |
| 1651 | "publicKeyId": "A String", # The identifier for the public key that verifies this signature. * The `public_key_id` is required. * The `public_key_id` SHOULD be an RFC3986 conformant URI. * When possible, the `public_key_id` SHOULD be an immutable reference, such as a cryptographic digest. Examples of valid `public_key_id`s: 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" |
| 1652 | "signature": "A String", # 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. |
| 1653 | }, |
| 1654 | ], |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1655 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 1656 | }, |
| 1657 | }, |
| 1658 | "deployment": { # Details of a deployment occurrence. # Describes the deployment of an artifact on a runtime. |
| 1659 | "deployment": { # The period during which some deployable was active in a runtime. # Required. Deployment history for the resource. |
| 1660 | "userEmail": "A String", # Identity of the user that triggered this deployment. |
| 1661 | "address": "A String", # Address of the runtime element hosting this deployment. |
| 1662 | "config": "A String", # Configuration used to create this deployment. |
| 1663 | "resourceUri": [ # Output only. Resource URI for the artifact being deployed taken from the deployable field with the same name. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1664 | "A String", |
| 1665 | ], |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 1666 | "platform": "A String", # Platform hosting this deployment. |
| 1667 | "deployTime": "A String", # Required. Beginning of the lifetime of this deployment. |
| 1668 | "undeployTime": "A String", # End of the lifetime of this deployment. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1669 | }, |
| 1670 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 1671 | "remediation": "A String", # A description of actions that can be taken to remedy the note. |
| 1672 | "resource": { # An entity that can have metadata. For example, a Docker image. # Required. Immutable. The resource for which the occurrence applies. |
| 1673 | "name": "A String", # Deprecated, do not use. Use uri instead. The name of the resource. For example, the name of a Docker image - "Debian". |
| 1674 | "contentHash": { # Container message for hash values. # Deprecated, do not use. Use uri instead. The hash of the resource content. For example, the Docker digest. |
| 1675 | "type": "A String", # Required. The type of hash that was performed. |
| 1676 | "value": "A String", # Required. The hash value. |
| 1677 | }, |
| 1678 | "uri": "A String", # Required. The unique URI of the resource. For example, `https://gcr.io/project/image@sha256:foo` for a Docker image. |
| 1679 | }, |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1680 | "discovered": { # Details of a discovery occurrence. # Describes when a resource was discovered. |
| 1681 | "discovered": { # Provides information about the analysis status of a discovered resource. # Required. Analysis status for the discovered resource. |
| 1682 | "lastAnalysisTime": "A String", # The last time continuous analysis was done for this resource. Deprecated, do not use. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1683 | "continuousAnalysis": "A String", # Whether the resource is continuously analyzed. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 1684 | "analysisStatus": "A String", # The status of discovery for the resource. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1685 | "analysisStatusError": { # 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](https://github.com/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](https://cloud.google.com/apis/design/errors). # 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. |
| 1686 | "details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use. |
| 1687 | { |
| 1688 | "a_key": "", # Properties of the object. Contains field @type with type URL. |
| 1689 | }, |
| 1690 | ], |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1691 | "code": 42, # The status code, which should be an enum value of google.rpc.Code. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 1692 | "message": "A String", # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1693 | }, |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 1694 | }, |
| 1695 | }, |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1696 | }</pre> |
| 1697 | </div> |
| 1698 | |
| 1699 | <div class="method"> |
| 1700 | <code class="details" id="getIamPolicy">getIamPolicy(resource, body=None, x__xgafv=None)</code> |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 1701 | <pre>Gets the access control policy for a note or an occurrence resource. Requires `containeranalysis.notes.setIamPolicy` or `containeranalysis.occurrences.setIamPolicy` permission if the resource is a note or occurrence, respectively. The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for occurrences. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1702 | |
| 1703 | Args: |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 1704 | resource: string, REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field. (required) |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1705 | body: object, The request body. |
| 1706 | The object takes the form of: |
| 1707 | |
| 1708 | { # Request message for `GetIamPolicy` method. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 1709 | "options": { # Encapsulates settings provided to GetIamPolicy. # OPTIONAL: A `GetPolicyOptions` object for specifying options to `GetIamPolicy`. |
| 1710 | "requestedPolicyVersion": 42, # Optional. The policy format version to be returned. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional bindings must specify version 3. Policies without any conditional bindings may specify any valid value or leave the field unset. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 1711 | }, |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1712 | } |
| 1713 | |
| 1714 | x__xgafv: string, V1 error format. |
| 1715 | Allowed values |
| 1716 | 1 - v1 error format |
| 1717 | 2 - v2 error format |
| 1718 | |
| 1719 | Returns: |
| 1720 | An object of the form: |
| 1721 | |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 1722 | { # 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](https://cloud.google.com/iam/help/conditions/resource-policies). **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](https://cloud.google.com/iam/docs/). |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1723 | "version": 42, # Specifies the format of the policy. Valid values are `0`, `1`, and `3`. Requests that specify an invalid value are rejected. Any operation that affects conditional role bindings must specify version `3`. This requirement applies to the following operations: * Getting a policy that includes a conditional role binding * Adding a conditional role binding to a policy * Changing a conditional role binding in a policy * Removing any role binding, with or without a condition, from a policy that includes conditions **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost. If a policy does not include any conditions, operations on that policy may specify any valid version or leave the field unset. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 1724 | "etag": "A String", # `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 1725 | "bindings": [ # Associates a list of `members` to a `role`. Optionally, may specify a `condition` that determines how and when the `bindings` are applied. Each of the `bindings` must contain at least one member. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1726 | { # Associates `members` with a `role`. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 1727 | "condition": { # 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. # The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the members in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). |
| 1728 | "title": "A String", # Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 1729 | "location": "A String", # Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file. |
| 1730 | "description": "A String", # Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 1731 | "expression": "A String", # Textual representation of an expression in Common Expression Language syntax. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 1732 | }, |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1733 | "role": "A String", # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`, or `roles/owner`. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 1734 | "members": [ # Specifies the identities requesting access for a Cloud Platform resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. |
| 1735 | "A String", |
| 1736 | ], |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1737 | }, |
| 1738 | ], |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1739 | }</pre> |
| 1740 | </div> |
| 1741 | |
| 1742 | <div class="method"> |
| 1743 | <code class="details" id="getNotes">getNotes(name, x__xgafv=None)</code> |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 1744 | <pre>Gets the note attached to the specified occurrence. Consumer projects can use this method to get a note that belongs to a provider project. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1745 | |
| 1746 | Args: |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 1747 | name: string, Required. The name of the occurrence in the form of `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. (required) |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1748 | x__xgafv: string, V1 error format. |
| 1749 | Allowed values |
| 1750 | 1 - v1 error format |
| 1751 | 2 - v2 error format |
| 1752 | |
| 1753 | Returns: |
| 1754 | An object of the form: |
| 1755 | |
| 1756 | { # A type of analysis that can be done for a resource. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 1757 | "attestationAuthority": { # 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. # A note describing an attestation role. |
| 1758 | "hint": { # 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. # Hint hints at the purpose of the attestation authority. |
| 1759 | "humanReadableName": "A String", # Required. The human readable name of this attestation authority, for example "qa". |
| 1760 | }, |
| 1761 | }, |
| 1762 | "deployable": { # An artifact that can be deployed in some runtime. # A note describing something that can be deployed. |
| 1763 | "resourceUri": [ # Required. Resource URI for the artifact being deployed. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1764 | "A String", |
| 1765 | ], |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 1766 | }, |
| 1767 | "expirationTime": "A String", # Time of expiration for this note. Empty if note does not expire. |
| 1768 | "vulnerability": { # Vulnerability provides metadata about a security vulnerability in a Note. # A note describing a package vulnerability. |
| 1769 | "sourceUpdateTime": "A String", # The time this information was last changed at the source. This is an upstream timestamp from the underlying information source - e.g. Ubuntu security tracker. |
| 1770 | "cvssV3": { # Common Vulnerability Scoring System version 3. For details, see https://www.first.org/cvss/specification-document # The full description of the CVSSv3. |
| 1771 | "scope": "A String", |
| 1772 | "confidentialityImpact": "A String", |
| 1773 | "privilegesRequired": "A String", |
| 1774 | "integrityImpact": "A String", |
| 1775 | "impactScore": 3.14, |
| 1776 | "baseScore": 3.14, # The base score is a function of the base metric scores. |
| 1777 | "exploitabilityScore": 3.14, |
| 1778 | "attackComplexity": "A String", |
| 1779 | "availabilityImpact": "A String", |
| 1780 | "userInteraction": "A String", |
| 1781 | "attackVector": "A String", # Base Metrics Represents the intrinsic characteristics of a vulnerability that are constant over time and across user environments. |
| 1782 | }, |
| 1783 | "windowsDetails": [ # Windows details get their own format because the information format and model don't match a normal detail. Specifically Windows updates are done as patches, thus Windows vulnerabilities really are a missing package, rather than a package being at an incorrect version. |
| 1784 | { |
| 1785 | "name": "A String", # Required. The name of the vulnerability. |
| 1786 | "description": "A String", # The description of the vulnerability. |
| 1787 | "fixingKbs": [ # 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. |
| 1788 | { |
| 1789 | "name": "A String", # The KB name (generally of the form KB[0-9]+ i.e. KB123456). |
| 1790 | "url": "A String", # A link to the KB in the Windows update catalog - https://www.catalog.update.microsoft.com/ |
| 1791 | }, |
| 1792 | ], |
| 1793 | "cpeUri": "A String", # Required. The CPE URI in [cpe format](https://cpe.mitre.org/specification/) in which the vulnerability manifests. Examples include distro or storage location for vulnerable jar. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1794 | }, |
| 1795 | ], |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 1796 | "details": [ # All information about the package to specifically identify this vulnerability. One entry per (version range and cpe_uri) the package vulnerability has manifested in. |
| 1797 | { # 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 |
| 1798 | "fixedLocation": { # The location of the vulnerability. # The fix for this specific package version. |
| 1799 | "version": { # Version contains structured information about the version of a package. # Required. The version of the package being described. |
| 1800 | "revision": "A String", # The iteration of the package build from the above version. |
| 1801 | "epoch": 42, # Used to correct mistakes in the version numbering scheme. |
| 1802 | "kind": "A String", # Required. Distinguishes between sentinel MIN/MAX versions and normal versions. |
| 1803 | "name": "A String", # Required only when version kind is NORMAL. The main part of the version name. |
| 1804 | }, |
| 1805 | "package": "A String", # Required. The package being described. |
| 1806 | "cpeUri": "A String", # Required. The CPE URI in [cpe format](https://cpe.mitre.org/specification/) format. Examples include distro or storage location for vulnerable jar. |
| 1807 | }, |
| 1808 | "minAffectedVersion": { # Version contains structured information about the version of a package. # The min version of the package in which the vulnerability exists. |
| 1809 | "revision": "A String", # The iteration of the package build from the above version. |
| 1810 | "epoch": 42, # Used to correct mistakes in the version numbering scheme. |
| 1811 | "kind": "A String", # Required. Distinguishes between sentinel MIN/MAX versions and normal versions. |
| 1812 | "name": "A String", # Required only when version kind is NORMAL. The main part of the version name. |
| 1813 | }, |
| 1814 | "description": "A String", # A vendor-specific description of this note. |
| 1815 | "severityName": "A String", # The severity (eg: distro assigned severity) for this vulnerability. |
| 1816 | "package": "A String", # Required. The name of the package where the vulnerability was found. |
| 1817 | "packageType": "A String", # The type of package; whether native or non native(ruby gems, node.js packages etc). |
| 1818 | "sourceUpdateTime": "A String", # The time this information was last changed at the source. This is an upstream timestamp from the underlying information source - e.g. Ubuntu security tracker. |
| 1819 | "isObsolete": True or False, # Whether this detail is obsolete. Occurrences are expected not to point to obsolete details. |
| 1820 | "cpeUri": "A String", # Required. The CPE URI in [cpe format](https://cpe.mitre.org/specification/) in which the vulnerability manifests. Examples include distro or storage location for vulnerable jar. |
| 1821 | "maxAffectedVersion": { # Version contains structured information about the version of a package. # The max version of the package in which the vulnerability exists. |
| 1822 | "revision": "A String", # The iteration of the package build from the above version. |
| 1823 | "epoch": 42, # Used to correct mistakes in the version numbering scheme. |
| 1824 | "kind": "A String", # Required. Distinguishes between sentinel MIN/MAX versions and normal versions. |
| 1825 | "name": "A String", # Required only when version kind is NORMAL. The main part of the version name. |
| 1826 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1827 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 1828 | ], |
| 1829 | "cvssScore": 3.14, # The CVSS score for this vulnerability. |
| 1830 | "severity": "A String", # Note provider assigned impact of the vulnerability. |
| 1831 | }, |
| 1832 | "relatedNoteNames": [ # Other notes related to this note. |
| 1833 | "A String", |
| 1834 | ], |
| 1835 | "relatedUrl": [ # URLs associated with this note. |
| 1836 | { # Metadata for any related URL information. |
| 1837 | "label": "A String", # Label to describe usage of the URL. |
| 1838 | "url": "A String", # Specific URL associated with the resource. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 1839 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 1840 | ], |
| 1841 | "intoto": { # 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. # A note describing an in-toto link. |
| 1842 | "signingKeys": [ # This field contains the public keys that can be used to verify the signatures on the step metadata. |
| 1843 | { # 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. |
| 1844 | "publicKeyValue": "A String", # This field contains the actual public key. |
| 1845 | "keyId": "A String", # key_id is an identifier for the signing key. |
| 1846 | "keyType": "A String", # This field identifies the specific signing method. Eg: "rsa", "ed25519", and "ecdsa". |
| 1847 | "keyScheme": "A String", # This field contains the corresponding signature scheme. Eg: "rsassa-pss-sha256". |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 1848 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 1849 | ], |
| 1850 | "stepName": "A String", # This field identifies the name of the step in the supply chain. |
| 1851 | "expectedCommand": [ # This field contains the expected command used to perform the step. |
| 1852 | "A String", |
| 1853 | ], |
| 1854 | "expectedProducts": [ |
| 1855 | { # Defines an object to declare an in-toto artifact rule |
| 1856 | "artifactRule": [ |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1857 | "A String", |
| 1858 | ], |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1859 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 1860 | ], |
| 1861 | "threshold": "A String", # This field contains a value that indicates the minimum number of keys that need to be used to sign the step's in-toto link. |
| 1862 | "expectedMaterials": [ # The following fields contain in-toto artifact rules identifying the artifacts that enter this supply chain step, and exit the supply chain step, i.e. materials and products of the step. |
| 1863 | { # Defines an object to declare an in-toto artifact rule |
| 1864 | "artifactRule": [ |
| 1865 | "A String", |
| 1866 | ], |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1867 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 1868 | ], |
| 1869 | }, |
| 1870 | "shortDescription": "A String", # A one sentence description of this note. |
| 1871 | "longDescription": "A String", # A detailed description of this note. |
| 1872 | "createTime": "A String", # Output only. The time this note was created. This field can be used as a filter in list requests. |
| 1873 | "name": "A String", # Output only. The name of the note in the form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. |
| 1874 | "package": { # This represents a particular package that is distributed over various channels. E.g., glibc (aka libc6) is distributed by many, at various versions. # A note describing a package hosted by various package managers. |
| 1875 | "distribution": [ # The various channels by which a package is distributed. |
| 1876 | { # This represents a particular channel of distribution for a given package. E.g., Debian's jessie-backports dpkg mirror. |
| 1877 | "cpeUri": "A String", # Required. The cpe_uri in [CPE format](https://cpe.mitre.org/specification/) denoting the package manager version distributing a package. |
| 1878 | "maintainer": "A String", # A freeform string denoting the maintainer of this package. |
| 1879 | "url": "A String", # The distribution channel-specific homepage for this package. |
| 1880 | "architecture": "A String", # The CPU architecture for which packages in this distribution channel were built. |
| 1881 | "description": "A String", # The distribution channel-specific description of this package. |
| 1882 | "latestVersion": { # Version contains structured information about the version of a package. # The latest available version of this package in this distribution channel. |
| 1883 | "revision": "A String", # The iteration of the package build from the above version. |
| 1884 | "epoch": 42, # Used to correct mistakes in the version numbering scheme. |
| 1885 | "kind": "A String", # Required. Distinguishes between sentinel MIN/MAX versions and normal versions. |
| 1886 | "name": "A String", # Required only when version kind is NORMAL. The main part of the version name. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1887 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 1888 | }, |
| 1889 | ], |
| 1890 | "name": "A String", # Required. Immutable. The name of the package. |
| 1891 | }, |
| 1892 | "kind": "A String", # Output only. The type of analysis. This field can be used as a filter in list requests. |
| 1893 | "updateTime": "A String", # Output only. The time this note was last updated. This field can be used as a filter in list requests. |
| 1894 | "discovery": { # 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. # A note describing the initial analysis of a resource. |
| 1895 | "analysisKind": "A String", # Required. Immutable. The kind of analysis that is handled by this discovery. |
| 1896 | }, |
| 1897 | "baseImage": { # 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. # A note describing a base image. |
| 1898 | "fingerprint": { # A set of properties that uniquely identify a given Docker image. # Required. Immutable. The fingerprint of the base image. |
| 1899 | "v2Name": "A String", # Output only. The name of the image's v2 blobs computed via: [bottom] := v2_blobbottom := sha256(v2_blob[N] + " " + v2_name[N+1]) Only the name of the final blob is kept. |
| 1900 | "v1Name": "A String", # Required. The layer ID of the final layer in the Docker image's v1 representation. |
| 1901 | "v2Blob": [ # Required. The ordered list of v2 blobs that represent a given image. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1902 | "A String", |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 1903 | ], |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 1904 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 1905 | "resourceUrl": "A String", # Required. Immutable. The resource_url for the resource representing the basis of associated occurrence images. |
| 1906 | }, |
| 1907 | "build": { # Note holding the version of the provider's builder and the signature of the provenance message in the build details occurrence. # A note describing build provenance for a verifiable build. |
| 1908 | "builderVersion": "A String", # Required. Immutable. Version of the builder which produced this build. |
| 1909 | "signature": { # Message encapsulating the signature of the verified build. # Signature of the build in occurrences pointing to this build note containing build details. |
| 1910 | "keyType": "A String", # The type of the key, either stored in `public_key` or referenced in `key_id`. |
| 1911 | "signature": "A String", # Required. Signature of the related `BuildProvenance`. In JSON, this is base-64 encoded. |
| 1912 | "publicKey": "A String", # Public key of the builder which can be used to verify that the related findings are valid and unchanged. If `key_type` is empty, this defaults to PEM encoded public keys. This field may be empty if `key_id` references an external key. For Cloud Build based signatures, this is a PEM encoded public key. To verify the Cloud Build signature, place the contents of this field into a file (public.pem). The signature field is base64-decoded into its binary representation in signature.bin, and the provenance bytes from `BuildDetails` are base64-decoded into a binary representation in signed.bin. OpenSSL can then verify the signature: `openssl sha256 -verify public.pem -signature signature.bin signed.bin` |
| 1913 | "keyId": "A String", # An ID for the key used to sign. This could be either an ID for the key stored in `public_key` (such as the ID or fingerprint for a PGP key, or the CN for a cert), or a reference to an external key (such as a reference to a key in Cloud Key Management Service). |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1914 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 1915 | }, |
| 1916 | }</pre> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1917 | </div> |
| 1918 | |
| 1919 | <div class="method"> |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1920 | <code class="details" id="getVulnerabilitySummary">getVulnerabilitySummary(parent, filter=None, x__xgafv=None)</code> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1921 | <pre>Gets a summary of the number and severity of occurrences. |
| 1922 | |
| 1923 | Args: |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 1924 | parent: string, Required. The name of the project to get a vulnerability summary for in the form of `projects/[PROJECT_ID]`. (required) |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1925 | filter: string, The filter expression. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1926 | x__xgafv: string, V1 error format. |
| 1927 | Allowed values |
| 1928 | 1 - v1 error format |
| 1929 | 2 - v2 error format |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1930 | |
| 1931 | Returns: |
| 1932 | An object of the form: |
| 1933 | |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 1934 | { # A summary of how many vulnerability occurrences there are per resource and severity type. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1935 | "counts": [ # A listing by resource of the number of fixable and total vulnerabilities. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1936 | { # Per resource and severity counts of fixable and total vulnerabilities. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 1937 | "totalCount": "A String", # The total number of vulnerabilities associated with this resource. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1938 | "severity": "A String", # The severity for this count. SEVERITY_UNSPECIFIED indicates total across all severities. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1939 | "fixableCount": "A String", # The number of fixable vulnerabilities associated with this resource. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1940 | "resource": { # An entity that can have metadata. For example, a Docker image. # The affected resource. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 1941 | "name": "A String", # Deprecated, do not use. Use uri instead. The name of the resource. For example, the name of a Docker image - "Debian". |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 1942 | "contentHash": { # Container message for hash values. # Deprecated, do not use. Use uri instead. The hash of the resource content. For example, the Docker digest. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1943 | "type": "A String", # Required. The type of hash that was performed. |
| 1944 | "value": "A String", # Required. The hash value. |
| 1945 | }, |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1946 | "uri": "A String", # Required. The unique URI of the resource. For example, `https://gcr.io/project/image@sha256:foo` for a Docker image. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1947 | }, |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1948 | }, |
| 1949 | ], |
| 1950 | }</pre> |
| 1951 | </div> |
| 1952 | |
| 1953 | <div class="method"> |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 1954 | <code class="details" id="list">list(parent, filter=None, pageToken=None, pageSize=None, x__xgafv=None)</code> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1955 | <pre>Lists occurrences for the specified project. |
| 1956 | |
| 1957 | Args: |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 1958 | parent: string, Required. The name of the project to list occurrences for in the form of `projects/[PROJECT_ID]`. (required) |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 1959 | filter: string, The filter expression. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1960 | pageToken: string, Token to provide to skip to a particular spot in the list. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1961 | pageSize: integer, Number of occurrences to return in the list. Must be positive. Max allowed page size is 1000. If not specified, page size defaults to 20. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1962 | x__xgafv: string, V1 error format. |
| 1963 | Allowed values |
| 1964 | 1 - v1 error format |
| 1965 | 2 - v2 error format |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1966 | |
| 1967 | Returns: |
| 1968 | An object of the form: |
| 1969 | |
| 1970 | { # Response for listing occurrences. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 1971 | "nextPageToken": "A String", # The next pagination token in the list response. It should be used as `page_token` for the following request. An empty value means no more results. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1972 | "occurrences": [ # The occurrences requested. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1973 | { # An instance of an analysis type that has been found on a resource. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1974 | "vulnerability": { # Details of a vulnerability Occurrence. # Describes a security vulnerability. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 1975 | "type": "A String", # The type of package; whether native or non native(ruby gems, node.js packages etc) |
| 1976 | "longDescription": "A String", # Output only. A detailed description of this vulnerability. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 1977 | "packageIssue": [ # Required. The set of affected locations and their fixes (if available) within the associated resource. |
| 1978 | { # This message wraps a location affected by a vulnerability and its associated fix (if one is available). |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 1979 | "affectedLocation": { # The location of the vulnerability. # Required. The location of the vulnerability. |
| 1980 | "version": { # Version contains structured information about the version of a package. # Required. The version of the package being described. |
| 1981 | "revision": "A String", # The iteration of the package build from the above version. |
| 1982 | "epoch": 42, # Used to correct mistakes in the version numbering scheme. |
| 1983 | "kind": "A String", # Required. Distinguishes between sentinel MIN/MAX versions and normal versions. |
| 1984 | "name": "A String", # Required only when version kind is NORMAL. The main part of the version name. |
| 1985 | }, |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1986 | "package": "A String", # Required. The package being described. |
| 1987 | "cpeUri": "A String", # Required. The CPE URI in [cpe format](https://cpe.mitre.org/specification/) format. Examples include distro or storage location for vulnerable jar. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1988 | }, |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 1989 | "severityName": "A String", # Deprecated, use Details.effective_severity instead The severity (e.g., distro assigned severity) for this vulnerability. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 1990 | "fixedLocation": { # The location of the vulnerability. # The location of the available fix for vulnerability. |
| 1991 | "version": { # Version contains structured information about the version of a package. # Required. The version of the package being described. |
| 1992 | "revision": "A String", # The iteration of the package build from the above version. |
| 1993 | "epoch": 42, # Used to correct mistakes in the version numbering scheme. |
| 1994 | "kind": "A String", # Required. Distinguishes between sentinel MIN/MAX versions and normal versions. |
| 1995 | "name": "A String", # Required only when version kind is NORMAL. The main part of the version name. |
| 1996 | }, |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1997 | "package": "A String", # Required. The package being described. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 1998 | "cpeUri": "A String", # Required. The CPE URI in [cpe format](https://cpe.mitre.org/specification/) format. Examples include distro or storage location for vulnerable jar. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 1999 | }, |
| 2000 | }, |
| 2001 | ], |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 2002 | "severity": "A String", # Output only. The note provider assigned Severity of the vulnerability. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 2003 | "relatedUrls": [ # Output only. URLs related to this vulnerability. |
| 2004 | { # Metadata for any related URL information. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 2005 | "label": "A String", # Label to describe usage of the URL. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 2006 | "url": "A String", # Specific URL associated with the resource. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 2007 | }, |
| 2008 | ], |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 2009 | "shortDescription": "A String", # Output only. A one sentence description of this vulnerability. |
| 2010 | "effectiveSeverity": "A String", # The distro assigned severity for this vulnerability when it is available, and note provider assigned severity when distro has not yet assigned a severity for this vulnerability. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 2011 | "cvssScore": 3.14, # 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. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 2012 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 2013 | "build": { # Details of a build occurrence. # Describes a verifiable build. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 2014 | "provenanceBytes": "A String", # Serialized JSON representation of the provenance, used in generating the build signature in the corresponding build note. After verifying the signature, `provenance_bytes` can be unmarshalled and compared to the provenance to confirm that it is unchanged. A base64-encoded string representation of the provenance bytes is used for the signature in order to interoperate with openssl which expects this format for signature verification. 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. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 2015 | "provenance": { # Provenance of a build. Contains all information needed to verify the full details about the build from source to completion. # Required. The actual provenance for the build. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 2016 | "logsUri": "A String", # URI where any logs for this provenance were written. |
| 2017 | "startTime": "A String", # Time at which execution of the build was started. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 2018 | "builtArtifacts": [ # Output of the build. |
| 2019 | { # Artifact describes a build product. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 2020 | "checksum": "A String", # Hash or checksum value of a binary, or Docker Registry 2.0 digest of a container. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 2021 | "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 `docker push`. Note that a single Artifact ID can have multiple names, for example if two tags are applied to one image. |
| 2022 | "A String", |
| 2023 | ], |
| 2024 | "id": "A String", # Artifact ID, if any; for container images, this will be a URL by digest like `gcr.io/projectID/imagename@sha256:123456`. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 2025 | }, |
| 2026 | ], |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 2027 | "triggerId": "A String", # Trigger identifier if the build was triggered automatically; empty if not. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 2028 | "buildOptions": { # Special options applied to this build. This is a catch-all field where build providers can enter any desired additional details. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 2029 | "a_key": "A String", |
| 2030 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 2031 | "commands": [ # Commands requested by the build. |
| 2032 | { # Command describes a step performed as part of the build pipeline. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 2033 | "name": "A String", # Required. Name of the command, as presented on the command line, or if the command is packaged as a Docker container, as presented to `docker pull`. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 2034 | "env": [ # Environment variables set before running this command. |
| 2035 | "A String", |
| 2036 | ], |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 2037 | "id": "A String", # Optional unique identifier for this command, used in wait_for to reference this command as a dependency. |
| 2038 | "args": [ # Command-line arguments used when executing this command. |
| 2039 | "A String", |
| 2040 | ], |
| 2041 | "waitFor": [ # The ID(s) of the command(s) that this command depends on. |
| 2042 | "A String", |
| 2043 | ], |
| 2044 | "dir": "A String", # Working directory (relative to project source root) used when running this command. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 2045 | }, |
| 2046 | ], |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 2047 | "creator": "A String", # 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. |
| 2048 | "builderVersion": "A String", # Version string of the builder at the time this build was executed. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 2049 | "sourceProvenance": { # Source describes the location of the source used for the build. # Details of the Source input to the build. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 2050 | "context": { # 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. # If provided, the source code used for the build came from this location. |
| 2051 | "labels": { # Labels with user defined metadata. |
| 2052 | "a_key": "A String", |
| 2053 | }, |
| 2054 | "cloudRepo": { # A CloudRepoSourceContext denotes a particular revision in a Google Cloud Source Repo. # A SourceContext referring to a revision in a Google Cloud Source Repo. |
| 2055 | "aliasContext": { # An alias to a repo revision. # An alias, which may be a branch or tag. |
| 2056 | "kind": "A String", # The alias kind. |
| 2057 | "name": "A String", # The alias name. |
| 2058 | }, |
| 2059 | "revisionId": "A String", # A revision ID. |
| 2060 | "repoId": { # A unique identifier for a Cloud Repo. # The ID of the repo. |
| 2061 | "projectRepoId": { # Selects a repo using a Google Cloud Platform project ID (e.g., winged-cargo-31) and a repo name within that project. # A combination of a project ID and a repo name. |
| 2062 | "repoName": "A String", # The name of the repo. Leave empty for the default repo. |
| 2063 | "projectId": "A String", # The ID of the project. |
| 2064 | }, |
| 2065 | "uid": "A String", # A server-assigned, globally unique identifier. |
| 2066 | }, |
| 2067 | }, |
| 2068 | "git": { # A GitSourceContext denotes a particular revision in a third party Git repository (e.g., GitHub). # A SourceContext referring to any third party Git repo (e.g., GitHub). |
| 2069 | "url": "A String", # Git repository URL. |
| 2070 | "revisionId": "A String", # Git commit hash. |
| 2071 | }, |
| 2072 | "gerrit": { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project. |
| 2073 | "revisionId": "A String", # A revision (commit) ID. |
| 2074 | "hostUri": "A String", # The URI of a running Gerrit instance. |
| 2075 | "aliasContext": { # An alias to a repo revision. # An alias, which may be a branch or tag. |
| 2076 | "kind": "A String", # The alias kind. |
| 2077 | "name": "A String", # The alias name. |
| 2078 | }, |
| 2079 | "gerritProject": "A String", # 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. |
| 2080 | }, |
| 2081 | }, |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 2082 | "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. |
| 2083 | { # 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. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 2084 | "labels": { # Labels with user defined metadata. |
| 2085 | "a_key": "A String", |
| 2086 | }, |
| 2087 | "cloudRepo": { # A CloudRepoSourceContext denotes a particular revision in a Google Cloud Source Repo. # A SourceContext referring to a revision in a Google Cloud Source Repo. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 2088 | "aliasContext": { # An alias to a repo revision. # An alias, which may be a branch or tag. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 2089 | "kind": "A String", # The alias kind. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 2090 | "name": "A String", # The alias name. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 2091 | }, |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 2092 | "revisionId": "A String", # A revision ID. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 2093 | "repoId": { # A unique identifier for a Cloud Repo. # The ID of the repo. |
| 2094 | "projectRepoId": { # Selects a repo using a Google Cloud Platform project ID (e.g., winged-cargo-31) and a repo name within that project. # A combination of a project ID and a repo name. |
| 2095 | "repoName": "A String", # The name of the repo. Leave empty for the default repo. |
| 2096 | "projectId": "A String", # The ID of the project. |
| 2097 | }, |
| 2098 | "uid": "A String", # A server-assigned, globally unique identifier. |
| 2099 | }, |
| 2100 | }, |
| 2101 | "git": { # A GitSourceContext denotes a particular revision in a third party Git repository (e.g., GitHub). # A SourceContext referring to any third party Git repo (e.g., GitHub). |
| 2102 | "url": "A String", # Git repository URL. |
| 2103 | "revisionId": "A String", # Git commit hash. |
| 2104 | }, |
| 2105 | "gerrit": { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project. |
| 2106 | "revisionId": "A String", # A revision (commit) ID. |
| 2107 | "hostUri": "A String", # The URI of a running Gerrit instance. |
| 2108 | "aliasContext": { # An alias to a repo revision. # An alias, which may be a branch or tag. |
| 2109 | "kind": "A String", # The alias kind. |
| 2110 | "name": "A String", # The alias name. |
| 2111 | }, |
| 2112 | "gerritProject": "A String", # 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. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 2113 | }, |
| 2114 | }, |
| 2115 | ], |
| 2116 | "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. |
| 2117 | "a_key": { # Container message for hashes of byte content of files, used in source messages to verify integrity of source input to the build. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 2118 | "fileHash": [ # Required. Collection of file hashes. |
| 2119 | { # Container message for hash values. |
| 2120 | "type": "A String", # Required. The type of hash that was performed. |
| 2121 | "value": "A String", # Required. The hash value. |
| 2122 | }, |
| 2123 | ], |
| 2124 | }, |
| 2125 | }, |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 2126 | "artifactStorageSourceUri": "A String", # If provided, the input binary artifacts for the build came from this location. |
| 2127 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 2128 | "projectId": "A String", # ID of the project. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 2129 | "createTime": "A String", # Time at which the build was created. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 2130 | "id": "A String", # Required. Unique identifier of the build. |
| 2131 | "endTime": "A String", # Time at which execution of the build was finished. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 2132 | }, |
| 2133 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 2134 | "kind": "A String", # Output only. This explicitly denotes which of the occurrence details are specified. This field can be used as a filter in list requests. |
| 2135 | "createTime": "A String", # Output only. The time this occurrence was created. |
| 2136 | "intoto": { # 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. # Describes a specific in-toto link. |
| 2137 | "signatures": [ |
| 2138 | { # A signature object consists of the KeyID used and the signature itself. |
| 2139 | "keyid": "A String", |
| 2140 | "sig": "A String", |
| 2141 | }, |
| 2142 | ], |
| 2143 | "signed": { # This corresponds to an in-toto link. |
| 2144 | "command": [ # This field contains the full command executed for the step. This can also be empty if links are generated for operations that aren't directly mapped to a specific command. Each term in the command is an independent string in the list. An example of a command in the in-toto metadata field is: "command": ["git", "clone", "https://github.com/in-toto/demo-project.git"] |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 2145 | "A String", |
| 2146 | ], |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 2147 | "products": [ # Products are the supply chain artifacts generated as a result of the step. The structure is identical to that of materials. |
| 2148 | { |
| 2149 | "resourceUri": "A String", |
| 2150 | "hashes": { # Defines a hash object for use in Materials and Products. |
| 2151 | "sha256": "A String", |
| 2152 | }, |
| 2153 | }, |
| 2154 | ], |
| 2155 | "environment": { # Defines an object for the environment field in in-toto links. The suggested fields are "variables", "filesystem", and "workdir". # This is a field that can be used to capture information about the environment. It is suggested for this field to contain information that details environment variables, filesystem information, and the present working directory. The recommended structure of this field is: "environment": { "custom_values": { "variables": "", "filesystem": "", "workdir": "", "": "..." } } |
| 2156 | "customValues": { |
| 2157 | "a_key": "A String", |
| 2158 | }, |
| 2159 | }, |
| 2160 | "byproducts": { # Defines an object for the byproducts field in in-toto links. The suggested fields are "stderr", "stdout", and "return-value". # ByProducts are data generated as part of a software supply chain step, but are not the actual result of the step. |
| 2161 | "customValues": { |
| 2162 | "a_key": "A String", |
| 2163 | }, |
| 2164 | }, |
| 2165 | "materials": [ # Materials are the supply chain artifacts that go into the step and are used for the operation performed. The key of the map is the path of the artifact and the structure contains the recorded hash information. An example is: "materials": [ { "resource_uri": "foo/bar", "hashes": { "sha256": "ebebf...", : } } ] |
| 2166 | { |
| 2167 | "resourceUri": "A String", |
| 2168 | "hashes": { # Defines a hash object for use in Materials and Products. |
| 2169 | "sha256": "A String", |
| 2170 | }, |
| 2171 | }, |
| 2172 | ], |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 2173 | }, |
| 2174 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 2175 | "noteName": "A String", # Required. Immutable. The analysis note associated with this occurrence, in the form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. This field can be used as a filter in list requests. |
| 2176 | "name": "A String", # Output only. The name of the occurrence in the form of `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. |
| 2177 | "installation": { # Details of a package occurrence. # Describes the installation of a package on the linked resource. |
| 2178 | "installation": { # This represents how a particular software package may be installed on a system. # Required. Where the package was installed. |
| 2179 | "location": [ # Required. All of the places within the filesystem versions of this package have been found. |
| 2180 | { # An occurrence of a particular package installation found within a system's filesystem. E.g., glibc was found in `/var/lib/dpkg/status`. |
| 2181 | "path": "A String", # The path from which we gathered that this package/version is installed. |
| 2182 | "version": { # Version contains structured information about the version of a package. # The version installed at this location. |
| 2183 | "revision": "A String", # The iteration of the package build from the above version. |
| 2184 | "epoch": 42, # Used to correct mistakes in the version numbering scheme. |
| 2185 | "kind": "A String", # Required. Distinguishes between sentinel MIN/MAX versions and normal versions. |
| 2186 | "name": "A String", # Required only when version kind is NORMAL. The main part of the version name. |
| 2187 | }, |
| 2188 | "cpeUri": "A String", # Required. The CPE URI in [CPE format](https://cpe.mitre.org/specification/) denoting the package manager version distributing a package. |
| 2189 | }, |
| 2190 | ], |
| 2191 | "name": "A String", # Output only. The name of the installed package. |
| 2192 | }, |
| 2193 | }, |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 2194 | "derivedImage": { # Details of an image occurrence. # Describes how this resource derives from the basis in the associated note. |
| 2195 | "derivedImage": { # Derived describes the derived image portion (Occurrence) of the DockerImage relationship. This image would be produced from a Dockerfile with FROM . # Required. Immutable. The child image derived from the base image. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 2196 | "distance": 42, # Output only. The number of layers by which this image differs from the associated image basis. |
| 2197 | "baseResourceUrl": "A String", # Output only. This contains the base image URL for the derived image occurrence. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 2198 | "fingerprint": { # A set of properties that uniquely identify a given Docker image. # Required. The fingerprint of the derived image. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 2199 | "v2Name": "A String", # Output only. The name of the image's v2 blobs computed via: [bottom] := v2_blobbottom := sha256(v2_blob[N] + " " + v2_name[N+1]) Only the name of the final blob is kept. |
| 2200 | "v1Name": "A String", # Required. The layer ID of the final layer in the Docker image's v1 representation. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 2201 | "v2Blob": [ # Required. The ordered list of v2 blobs that represent a given image. |
| 2202 | "A String", |
| 2203 | ], |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 2204 | }, |
| 2205 | "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. |
| 2206 | { # Layer holds metadata specific to a layer of a Docker image. |
| 2207 | "directive": "A String", # Required. The recovered Dockerfile directive used to construct this layer. |
| 2208 | "arguments": "A String", # The recovered arguments to the Dockerfile directive. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 2209 | }, |
| 2210 | ], |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 2211 | }, |
| 2212 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 2213 | "updateTime": "A String", # Output only. The time this occurrence was last updated. |
| 2214 | "attestation": { # Details of an attestation occurrence. # Describes an attestation of an artifact. |
| 2215 | "attestation": { # 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). # Required. Attestation for the resource. |
| 2216 | "pgpSignedAttestation": { # 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. # A PGP signed attestation. |
| 2217 | "signature": "A String", # Required. The raw content of the signature, as output by GNU Privacy Guard (GPG) or equivalent. Since this message only supports attached signatures, the payload that was signed must be attached. While the signature format supported is dependent on the verification implementation, currently only ASCII-armored (`--armor` to gpg), non-clearsigned (`--sign` rather than `--clearsign` to gpg) are supported. Concretely, `gpg --sign --armor --output=signature.gpg payload.json` will create the signature content expected in this field in `signature.gpg` for the `payload.json` attestation payload. |
| 2218 | "pgpKeyId": "A String", # The cryptographic fingerprint of the key used to generate the signature, as output by, e.g. `gpg --list-keys`. This should be the version 4, full 160-bit fingerprint, expressed as a 40 character hexidecimal string. See https://tools.ietf.org/html/rfc4880#section-12.2 for details. Implementations may choose to acknowledge "LONG", "SHORT", or other abbreviated key IDs, but only the full fingerprint is guaranteed to work. In gpg, the full fingerprint can be retrieved from the `fpr` field returned when calling --list-keys with --with-colons. For example: ``` gpg --with-colons --with-fingerprint --force-v4-certs \ --list-keys attester@example.com tru::1:1513631572:0:3:1:5 pub:...... fpr:::::::::24FF6481B76AC91E66A00AC657A93A81EF3AE6FB: ``` Above, the fingerprint is `24FF6481B76AC91E66A00AC657A93A81EF3AE6FB`. |
| 2219 | "contentType": "A String", # Type (for example schema) of the attestation payload that was signed. The verifier must ensure that the provided type is one that the verifier supports, and that the attestation payload is a valid instantiation of that type (for example by validating a JSON schema). |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 2220 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 2221 | "genericSignedAttestation": { # 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. |
| 2222 | "serializedPayload": "A String", # The serialized payload that is verified by one or more `signatures`. The encoding and semantic meaning of this payload must match what is set in `content_type`. |
| 2223 | "contentType": "A String", # Type (for example schema) of the attestation payload that was signed. The verifier must ensure that the provided type is one that the verifier supports, and that the attestation payload is a valid instantiation of that type (for example by validating a JSON schema). |
| 2224 | "signatures": [ # One or more signatures over `serialized_payload`. Verifier implementations should consider this attestation message verified if at least one `signature` verifies `serialized_payload`. See `Signature` in common.proto for more details on signature structure and verification. |
| 2225 | { # 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). |
| 2226 | "publicKeyId": "A String", # The identifier for the public key that verifies this signature. * The `public_key_id` is required. * The `public_key_id` SHOULD be an RFC3986 conformant URI. * When possible, the `public_key_id` SHOULD be an immutable reference, such as a cryptographic digest. Examples of valid `public_key_id`s: 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" |
| 2227 | "signature": "A String", # 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. |
| 2228 | }, |
| 2229 | ], |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 2230 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 2231 | }, |
| 2232 | }, |
| 2233 | "deployment": { # Details of a deployment occurrence. # Describes the deployment of an artifact on a runtime. |
| 2234 | "deployment": { # The period during which some deployable was active in a runtime. # Required. Deployment history for the resource. |
| 2235 | "userEmail": "A String", # Identity of the user that triggered this deployment. |
| 2236 | "address": "A String", # Address of the runtime element hosting this deployment. |
| 2237 | "config": "A String", # Configuration used to create this deployment. |
| 2238 | "resourceUri": [ # Output only. Resource URI for the artifact being deployed taken from the deployable field with the same name. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 2239 | "A String", |
| 2240 | ], |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 2241 | "platform": "A String", # Platform hosting this deployment. |
| 2242 | "deployTime": "A String", # Required. Beginning of the lifetime of this deployment. |
| 2243 | "undeployTime": "A String", # End of the lifetime of this deployment. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 2244 | }, |
| 2245 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 2246 | "remediation": "A String", # A description of actions that can be taken to remedy the note. |
| 2247 | "resource": { # An entity that can have metadata. For example, a Docker image. # Required. Immutable. The resource for which the occurrence applies. |
| 2248 | "name": "A String", # Deprecated, do not use. Use uri instead. The name of the resource. For example, the name of a Docker image - "Debian". |
| 2249 | "contentHash": { # Container message for hash values. # Deprecated, do not use. Use uri instead. The hash of the resource content. For example, the Docker digest. |
| 2250 | "type": "A String", # Required. The type of hash that was performed. |
| 2251 | "value": "A String", # Required. The hash value. |
| 2252 | }, |
| 2253 | "uri": "A String", # Required. The unique URI of the resource. For example, `https://gcr.io/project/image@sha256:foo` for a Docker image. |
| 2254 | }, |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 2255 | "discovered": { # Details of a discovery occurrence. # Describes when a resource was discovered. |
| 2256 | "discovered": { # Provides information about the analysis status of a discovered resource. # Required. Analysis status for the discovered resource. |
| 2257 | "lastAnalysisTime": "A String", # The last time continuous analysis was done for this resource. Deprecated, do not use. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 2258 | "continuousAnalysis": "A String", # Whether the resource is continuously analyzed. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 2259 | "analysisStatus": "A String", # The status of discovery for the resource. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 2260 | "analysisStatusError": { # 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](https://github.com/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](https://cloud.google.com/apis/design/errors). # 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. |
| 2261 | "details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use. |
| 2262 | { |
| 2263 | "a_key": "", # Properties of the object. Contains field @type with type URL. |
| 2264 | }, |
| 2265 | ], |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 2266 | "code": 42, # The status code, which should be an enum value of google.rpc.Code. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 2267 | "message": "A String", # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 2268 | }, |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 2269 | }, |
| 2270 | }, |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 2271 | }, |
| 2272 | ], |
| 2273 | }</pre> |
| 2274 | </div> |
| 2275 | |
| 2276 | <div class="method"> |
| 2277 | <code class="details" id="list_next">list_next(previous_request, previous_response)</code> |
| 2278 | <pre>Retrieves the next page of results. |
| 2279 | |
| 2280 | Args: |
| 2281 | previous_request: The request for the previous page. (required) |
| 2282 | previous_response: The response from the request for the previous page. (required) |
| 2283 | |
| 2284 | Returns: |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 2285 | A request object that you can call 'execute()' on to request the next |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 2286 | page. Returns None if there are no more items in the collection. |
| 2287 | </pre> |
| 2288 | </div> |
| 2289 | |
| 2290 | <div class="method"> |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 2291 | <code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 2292 | <pre>Updates the specified occurrence. |
| 2293 | |
| 2294 | Args: |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 2295 | name: string, Required. The name of the occurrence in the form of `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. (required) |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 2296 | body: object, The request body. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 2297 | The object takes the form of: |
| 2298 | |
| 2299 | { # An instance of an analysis type that has been found on a resource. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 2300 | "vulnerability": { # Details of a vulnerability Occurrence. # Describes a security vulnerability. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 2301 | "type": "A String", # The type of package; whether native or non native(ruby gems, node.js packages etc) |
| 2302 | "longDescription": "A String", # Output only. A detailed description of this vulnerability. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 2303 | "packageIssue": [ # Required. The set of affected locations and their fixes (if available) within the associated resource. |
| 2304 | { # This message wraps a location affected by a vulnerability and its associated fix (if one is available). |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 2305 | "affectedLocation": { # The location of the vulnerability. # Required. The location of the vulnerability. |
| 2306 | "version": { # Version contains structured information about the version of a package. # Required. The version of the package being described. |
| 2307 | "revision": "A String", # The iteration of the package build from the above version. |
| 2308 | "epoch": 42, # Used to correct mistakes in the version numbering scheme. |
| 2309 | "kind": "A String", # Required. Distinguishes between sentinel MIN/MAX versions and normal versions. |
| 2310 | "name": "A String", # Required only when version kind is NORMAL. The main part of the version name. |
| 2311 | }, |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 2312 | "package": "A String", # Required. The package being described. |
| 2313 | "cpeUri": "A String", # Required. The CPE URI in [cpe format](https://cpe.mitre.org/specification/) format. Examples include distro or storage location for vulnerable jar. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 2314 | }, |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 2315 | "severityName": "A String", # Deprecated, use Details.effective_severity instead The severity (e.g., distro assigned severity) for this vulnerability. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 2316 | "fixedLocation": { # The location of the vulnerability. # The location of the available fix for vulnerability. |
| 2317 | "version": { # Version contains structured information about the version of a package. # Required. The version of the package being described. |
| 2318 | "revision": "A String", # The iteration of the package build from the above version. |
| 2319 | "epoch": 42, # Used to correct mistakes in the version numbering scheme. |
| 2320 | "kind": "A String", # Required. Distinguishes between sentinel MIN/MAX versions and normal versions. |
| 2321 | "name": "A String", # Required only when version kind is NORMAL. The main part of the version name. |
| 2322 | }, |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 2323 | "package": "A String", # Required. The package being described. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 2324 | "cpeUri": "A String", # Required. The CPE URI in [cpe format](https://cpe.mitre.org/specification/) format. Examples include distro or storage location for vulnerable jar. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 2325 | }, |
| 2326 | }, |
| 2327 | ], |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 2328 | "severity": "A String", # Output only. The note provider assigned Severity of the vulnerability. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 2329 | "relatedUrls": [ # Output only. URLs related to this vulnerability. |
| 2330 | { # Metadata for any related URL information. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 2331 | "label": "A String", # Label to describe usage of the URL. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 2332 | "url": "A String", # Specific URL associated with the resource. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 2333 | }, |
| 2334 | ], |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 2335 | "shortDescription": "A String", # Output only. A one sentence description of this vulnerability. |
| 2336 | "effectiveSeverity": "A String", # The distro assigned severity for this vulnerability when it is available, and note provider assigned severity when distro has not yet assigned a severity for this vulnerability. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 2337 | "cvssScore": 3.14, # 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. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 2338 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 2339 | "build": { # Details of a build occurrence. # Describes a verifiable build. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 2340 | "provenanceBytes": "A String", # Serialized JSON representation of the provenance, used in generating the build signature in the corresponding build note. After verifying the signature, `provenance_bytes` can be unmarshalled and compared to the provenance to confirm that it is unchanged. A base64-encoded string representation of the provenance bytes is used for the signature in order to interoperate with openssl which expects this format for signature verification. 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. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 2341 | "provenance": { # Provenance of a build. Contains all information needed to verify the full details about the build from source to completion. # Required. The actual provenance for the build. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 2342 | "logsUri": "A String", # URI where any logs for this provenance were written. |
| 2343 | "startTime": "A String", # Time at which execution of the build was started. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 2344 | "builtArtifacts": [ # Output of the build. |
| 2345 | { # Artifact describes a build product. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 2346 | "checksum": "A String", # Hash or checksum value of a binary, or Docker Registry 2.0 digest of a container. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 2347 | "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 `docker push`. Note that a single Artifact ID can have multiple names, for example if two tags are applied to one image. |
| 2348 | "A String", |
| 2349 | ], |
| 2350 | "id": "A String", # Artifact ID, if any; for container images, this will be a URL by digest like `gcr.io/projectID/imagename@sha256:123456`. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 2351 | }, |
| 2352 | ], |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 2353 | "triggerId": "A String", # Trigger identifier if the build was triggered automatically; empty if not. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 2354 | "buildOptions": { # Special options applied to this build. This is a catch-all field where build providers can enter any desired additional details. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 2355 | "a_key": "A String", |
| 2356 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 2357 | "commands": [ # Commands requested by the build. |
| 2358 | { # Command describes a step performed as part of the build pipeline. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 2359 | "name": "A String", # Required. Name of the command, as presented on the command line, or if the command is packaged as a Docker container, as presented to `docker pull`. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 2360 | "env": [ # Environment variables set before running this command. |
| 2361 | "A String", |
| 2362 | ], |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 2363 | "id": "A String", # Optional unique identifier for this command, used in wait_for to reference this command as a dependency. |
| 2364 | "args": [ # Command-line arguments used when executing this command. |
| 2365 | "A String", |
| 2366 | ], |
| 2367 | "waitFor": [ # The ID(s) of the command(s) that this command depends on. |
| 2368 | "A String", |
| 2369 | ], |
| 2370 | "dir": "A String", # Working directory (relative to project source root) used when running this command. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 2371 | }, |
| 2372 | ], |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 2373 | "creator": "A String", # 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. |
| 2374 | "builderVersion": "A String", # Version string of the builder at the time this build was executed. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 2375 | "sourceProvenance": { # Source describes the location of the source used for the build. # Details of the Source input to the build. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 2376 | "context": { # 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. # If provided, the source code used for the build came from this location. |
| 2377 | "labels": { # Labels with user defined metadata. |
| 2378 | "a_key": "A String", |
| 2379 | }, |
| 2380 | "cloudRepo": { # A CloudRepoSourceContext denotes a particular revision in a Google Cloud Source Repo. # A SourceContext referring to a revision in a Google Cloud Source Repo. |
| 2381 | "aliasContext": { # An alias to a repo revision. # An alias, which may be a branch or tag. |
| 2382 | "kind": "A String", # The alias kind. |
| 2383 | "name": "A String", # The alias name. |
| 2384 | }, |
| 2385 | "revisionId": "A String", # A revision ID. |
| 2386 | "repoId": { # A unique identifier for a Cloud Repo. # The ID of the repo. |
| 2387 | "projectRepoId": { # Selects a repo using a Google Cloud Platform project ID (e.g., winged-cargo-31) and a repo name within that project. # A combination of a project ID and a repo name. |
| 2388 | "repoName": "A String", # The name of the repo. Leave empty for the default repo. |
| 2389 | "projectId": "A String", # The ID of the project. |
| 2390 | }, |
| 2391 | "uid": "A String", # A server-assigned, globally unique identifier. |
| 2392 | }, |
| 2393 | }, |
| 2394 | "git": { # A GitSourceContext denotes a particular revision in a third party Git repository (e.g., GitHub). # A SourceContext referring to any third party Git repo (e.g., GitHub). |
| 2395 | "url": "A String", # Git repository URL. |
| 2396 | "revisionId": "A String", # Git commit hash. |
| 2397 | }, |
| 2398 | "gerrit": { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project. |
| 2399 | "revisionId": "A String", # A revision (commit) ID. |
| 2400 | "hostUri": "A String", # The URI of a running Gerrit instance. |
| 2401 | "aliasContext": { # An alias to a repo revision. # An alias, which may be a branch or tag. |
| 2402 | "kind": "A String", # The alias kind. |
| 2403 | "name": "A String", # The alias name. |
| 2404 | }, |
| 2405 | "gerritProject": "A String", # 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. |
| 2406 | }, |
| 2407 | }, |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 2408 | "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. |
| 2409 | { # 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. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 2410 | "labels": { # Labels with user defined metadata. |
| 2411 | "a_key": "A String", |
| 2412 | }, |
| 2413 | "cloudRepo": { # A CloudRepoSourceContext denotes a particular revision in a Google Cloud Source Repo. # A SourceContext referring to a revision in a Google Cloud Source Repo. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 2414 | "aliasContext": { # An alias to a repo revision. # An alias, which may be a branch or tag. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 2415 | "kind": "A String", # The alias kind. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 2416 | "name": "A String", # The alias name. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 2417 | }, |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 2418 | "revisionId": "A String", # A revision ID. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 2419 | "repoId": { # A unique identifier for a Cloud Repo. # The ID of the repo. |
| 2420 | "projectRepoId": { # Selects a repo using a Google Cloud Platform project ID (e.g., winged-cargo-31) and a repo name within that project. # A combination of a project ID and a repo name. |
| 2421 | "repoName": "A String", # The name of the repo. Leave empty for the default repo. |
| 2422 | "projectId": "A String", # The ID of the project. |
| 2423 | }, |
| 2424 | "uid": "A String", # A server-assigned, globally unique identifier. |
| 2425 | }, |
| 2426 | }, |
| 2427 | "git": { # A GitSourceContext denotes a particular revision in a third party Git repository (e.g., GitHub). # A SourceContext referring to any third party Git repo (e.g., GitHub). |
| 2428 | "url": "A String", # Git repository URL. |
| 2429 | "revisionId": "A String", # Git commit hash. |
| 2430 | }, |
| 2431 | "gerrit": { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project. |
| 2432 | "revisionId": "A String", # A revision (commit) ID. |
| 2433 | "hostUri": "A String", # The URI of a running Gerrit instance. |
| 2434 | "aliasContext": { # An alias to a repo revision. # An alias, which may be a branch or tag. |
| 2435 | "kind": "A String", # The alias kind. |
| 2436 | "name": "A String", # The alias name. |
| 2437 | }, |
| 2438 | "gerritProject": "A String", # 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. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 2439 | }, |
| 2440 | }, |
| 2441 | ], |
| 2442 | "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. |
| 2443 | "a_key": { # Container message for hashes of byte content of files, used in source messages to verify integrity of source input to the build. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 2444 | "fileHash": [ # Required. Collection of file hashes. |
| 2445 | { # Container message for hash values. |
| 2446 | "type": "A String", # Required. The type of hash that was performed. |
| 2447 | "value": "A String", # Required. The hash value. |
| 2448 | }, |
| 2449 | ], |
| 2450 | }, |
| 2451 | }, |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 2452 | "artifactStorageSourceUri": "A String", # If provided, the input binary artifacts for the build came from this location. |
| 2453 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 2454 | "projectId": "A String", # ID of the project. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 2455 | "createTime": "A String", # Time at which the build was created. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 2456 | "id": "A String", # Required. Unique identifier of the build. |
| 2457 | "endTime": "A String", # Time at which execution of the build was finished. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 2458 | }, |
| 2459 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 2460 | "kind": "A String", # Output only. This explicitly denotes which of the occurrence details are specified. This field can be used as a filter in list requests. |
| 2461 | "createTime": "A String", # Output only. The time this occurrence was created. |
| 2462 | "intoto": { # 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. # Describes a specific in-toto link. |
| 2463 | "signatures": [ |
| 2464 | { # A signature object consists of the KeyID used and the signature itself. |
| 2465 | "keyid": "A String", |
| 2466 | "sig": "A String", |
| 2467 | }, |
| 2468 | ], |
| 2469 | "signed": { # This corresponds to an in-toto link. |
| 2470 | "command": [ # This field contains the full command executed for the step. This can also be empty if links are generated for operations that aren't directly mapped to a specific command. Each term in the command is an independent string in the list. An example of a command in the in-toto metadata field is: "command": ["git", "clone", "https://github.com/in-toto/demo-project.git"] |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 2471 | "A String", |
| 2472 | ], |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 2473 | "products": [ # Products are the supply chain artifacts generated as a result of the step. The structure is identical to that of materials. |
| 2474 | { |
| 2475 | "resourceUri": "A String", |
| 2476 | "hashes": { # Defines a hash object for use in Materials and Products. |
| 2477 | "sha256": "A String", |
| 2478 | }, |
| 2479 | }, |
| 2480 | ], |
| 2481 | "environment": { # Defines an object for the environment field in in-toto links. The suggested fields are "variables", "filesystem", and "workdir". # This is a field that can be used to capture information about the environment. It is suggested for this field to contain information that details environment variables, filesystem information, and the present working directory. The recommended structure of this field is: "environment": { "custom_values": { "variables": "", "filesystem": "", "workdir": "", "": "..." } } |
| 2482 | "customValues": { |
| 2483 | "a_key": "A String", |
| 2484 | }, |
| 2485 | }, |
| 2486 | "byproducts": { # Defines an object for the byproducts field in in-toto links. The suggested fields are "stderr", "stdout", and "return-value". # ByProducts are data generated as part of a software supply chain step, but are not the actual result of the step. |
| 2487 | "customValues": { |
| 2488 | "a_key": "A String", |
| 2489 | }, |
| 2490 | }, |
| 2491 | "materials": [ # Materials are the supply chain artifacts that go into the step and are used for the operation performed. The key of the map is the path of the artifact and the structure contains the recorded hash information. An example is: "materials": [ { "resource_uri": "foo/bar", "hashes": { "sha256": "ebebf...", : } } ] |
| 2492 | { |
| 2493 | "resourceUri": "A String", |
| 2494 | "hashes": { # Defines a hash object for use in Materials and Products. |
| 2495 | "sha256": "A String", |
| 2496 | }, |
| 2497 | }, |
| 2498 | ], |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 2499 | }, |
| 2500 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 2501 | "noteName": "A String", # Required. Immutable. The analysis note associated with this occurrence, in the form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. This field can be used as a filter in list requests. |
| 2502 | "name": "A String", # Output only. The name of the occurrence in the form of `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. |
| 2503 | "installation": { # Details of a package occurrence. # Describes the installation of a package on the linked resource. |
| 2504 | "installation": { # This represents how a particular software package may be installed on a system. # Required. Where the package was installed. |
| 2505 | "location": [ # Required. All of the places within the filesystem versions of this package have been found. |
| 2506 | { # An occurrence of a particular package installation found within a system's filesystem. E.g., glibc was found in `/var/lib/dpkg/status`. |
| 2507 | "path": "A String", # The path from which we gathered that this package/version is installed. |
| 2508 | "version": { # Version contains structured information about the version of a package. # The version installed at this location. |
| 2509 | "revision": "A String", # The iteration of the package build from the above version. |
| 2510 | "epoch": 42, # Used to correct mistakes in the version numbering scheme. |
| 2511 | "kind": "A String", # Required. Distinguishes between sentinel MIN/MAX versions and normal versions. |
| 2512 | "name": "A String", # Required only when version kind is NORMAL. The main part of the version name. |
| 2513 | }, |
| 2514 | "cpeUri": "A String", # Required. The CPE URI in [CPE format](https://cpe.mitre.org/specification/) denoting the package manager version distributing a package. |
| 2515 | }, |
| 2516 | ], |
| 2517 | "name": "A String", # Output only. The name of the installed package. |
| 2518 | }, |
| 2519 | }, |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 2520 | "derivedImage": { # Details of an image occurrence. # Describes how this resource derives from the basis in the associated note. |
| 2521 | "derivedImage": { # Derived describes the derived image portion (Occurrence) of the DockerImage relationship. This image would be produced from a Dockerfile with FROM . # Required. Immutable. The child image derived from the base image. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 2522 | "distance": 42, # Output only. The number of layers by which this image differs from the associated image basis. |
| 2523 | "baseResourceUrl": "A String", # Output only. This contains the base image URL for the derived image occurrence. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 2524 | "fingerprint": { # A set of properties that uniquely identify a given Docker image. # Required. The fingerprint of the derived image. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 2525 | "v2Name": "A String", # Output only. The name of the image's v2 blobs computed via: [bottom] := v2_blobbottom := sha256(v2_blob[N] + " " + v2_name[N+1]) Only the name of the final blob is kept. |
| 2526 | "v1Name": "A String", # Required. The layer ID of the final layer in the Docker image's v1 representation. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 2527 | "v2Blob": [ # Required. The ordered list of v2 blobs that represent a given image. |
| 2528 | "A String", |
| 2529 | ], |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 2530 | }, |
| 2531 | "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. |
| 2532 | { # Layer holds metadata specific to a layer of a Docker image. |
| 2533 | "directive": "A String", # Required. The recovered Dockerfile directive used to construct this layer. |
| 2534 | "arguments": "A String", # The recovered arguments to the Dockerfile directive. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 2535 | }, |
| 2536 | ], |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 2537 | }, |
| 2538 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 2539 | "updateTime": "A String", # Output only. The time this occurrence was last updated. |
| 2540 | "attestation": { # Details of an attestation occurrence. # Describes an attestation of an artifact. |
| 2541 | "attestation": { # 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). # Required. Attestation for the resource. |
| 2542 | "pgpSignedAttestation": { # 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. # A PGP signed attestation. |
| 2543 | "signature": "A String", # Required. The raw content of the signature, as output by GNU Privacy Guard (GPG) or equivalent. Since this message only supports attached signatures, the payload that was signed must be attached. While the signature format supported is dependent on the verification implementation, currently only ASCII-armored (`--armor` to gpg), non-clearsigned (`--sign` rather than `--clearsign` to gpg) are supported. Concretely, `gpg --sign --armor --output=signature.gpg payload.json` will create the signature content expected in this field in `signature.gpg` for the `payload.json` attestation payload. |
| 2544 | "pgpKeyId": "A String", # The cryptographic fingerprint of the key used to generate the signature, as output by, e.g. `gpg --list-keys`. This should be the version 4, full 160-bit fingerprint, expressed as a 40 character hexidecimal string. See https://tools.ietf.org/html/rfc4880#section-12.2 for details. Implementations may choose to acknowledge "LONG", "SHORT", or other abbreviated key IDs, but only the full fingerprint is guaranteed to work. In gpg, the full fingerprint can be retrieved from the `fpr` field returned when calling --list-keys with --with-colons. For example: ``` gpg --with-colons --with-fingerprint --force-v4-certs \ --list-keys attester@example.com tru::1:1513631572:0:3:1:5 pub:...... fpr:::::::::24FF6481B76AC91E66A00AC657A93A81EF3AE6FB: ``` Above, the fingerprint is `24FF6481B76AC91E66A00AC657A93A81EF3AE6FB`. |
| 2545 | "contentType": "A String", # Type (for example schema) of the attestation payload that was signed. The verifier must ensure that the provided type is one that the verifier supports, and that the attestation payload is a valid instantiation of that type (for example by validating a JSON schema). |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 2546 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 2547 | "genericSignedAttestation": { # 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. |
| 2548 | "serializedPayload": "A String", # The serialized payload that is verified by one or more `signatures`. The encoding and semantic meaning of this payload must match what is set in `content_type`. |
| 2549 | "contentType": "A String", # Type (for example schema) of the attestation payload that was signed. The verifier must ensure that the provided type is one that the verifier supports, and that the attestation payload is a valid instantiation of that type (for example by validating a JSON schema). |
| 2550 | "signatures": [ # One or more signatures over `serialized_payload`. Verifier implementations should consider this attestation message verified if at least one `signature` verifies `serialized_payload`. See `Signature` in common.proto for more details on signature structure and verification. |
| 2551 | { # 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). |
| 2552 | "publicKeyId": "A String", # The identifier for the public key that verifies this signature. * The `public_key_id` is required. * The `public_key_id` SHOULD be an RFC3986 conformant URI. * When possible, the `public_key_id` SHOULD be an immutable reference, such as a cryptographic digest. Examples of valid `public_key_id`s: 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" |
| 2553 | "signature": "A String", # 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. |
| 2554 | }, |
| 2555 | ], |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 2556 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 2557 | }, |
| 2558 | }, |
| 2559 | "deployment": { # Details of a deployment occurrence. # Describes the deployment of an artifact on a runtime. |
| 2560 | "deployment": { # The period during which some deployable was active in a runtime. # Required. Deployment history for the resource. |
| 2561 | "userEmail": "A String", # Identity of the user that triggered this deployment. |
| 2562 | "address": "A String", # Address of the runtime element hosting this deployment. |
| 2563 | "config": "A String", # Configuration used to create this deployment. |
| 2564 | "resourceUri": [ # Output only. Resource URI for the artifact being deployed taken from the deployable field with the same name. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 2565 | "A String", |
| 2566 | ], |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 2567 | "platform": "A String", # Platform hosting this deployment. |
| 2568 | "deployTime": "A String", # Required. Beginning of the lifetime of this deployment. |
| 2569 | "undeployTime": "A String", # End of the lifetime of this deployment. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 2570 | }, |
| 2571 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 2572 | "remediation": "A String", # A description of actions that can be taken to remedy the note. |
| 2573 | "resource": { # An entity that can have metadata. For example, a Docker image. # Required. Immutable. The resource for which the occurrence applies. |
| 2574 | "name": "A String", # Deprecated, do not use. Use uri instead. The name of the resource. For example, the name of a Docker image - "Debian". |
| 2575 | "contentHash": { # Container message for hash values. # Deprecated, do not use. Use uri instead. The hash of the resource content. For example, the Docker digest. |
| 2576 | "type": "A String", # Required. The type of hash that was performed. |
| 2577 | "value": "A String", # Required. The hash value. |
| 2578 | }, |
| 2579 | "uri": "A String", # Required. The unique URI of the resource. For example, `https://gcr.io/project/image@sha256:foo` for a Docker image. |
| 2580 | }, |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 2581 | "discovered": { # Details of a discovery occurrence. # Describes when a resource was discovered. |
| 2582 | "discovered": { # Provides information about the analysis status of a discovered resource. # Required. Analysis status for the discovered resource. |
| 2583 | "lastAnalysisTime": "A String", # The last time continuous analysis was done for this resource. Deprecated, do not use. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 2584 | "continuousAnalysis": "A String", # Whether the resource is continuously analyzed. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 2585 | "analysisStatus": "A String", # The status of discovery for the resource. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 2586 | "analysisStatusError": { # 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](https://github.com/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](https://cloud.google.com/apis/design/errors). # 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. |
| 2587 | "details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use. |
| 2588 | { |
| 2589 | "a_key": "", # Properties of the object. Contains field @type with type URL. |
| 2590 | }, |
| 2591 | ], |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 2592 | "code": 42, # The status code, which should be an enum value of google.rpc.Code. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 2593 | "message": "A String", # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 2594 | }, |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 2595 | }, |
| 2596 | }, |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 2597 | } |
| 2598 | |
| 2599 | updateMask: string, The fields to update. |
| 2600 | x__xgafv: string, V1 error format. |
| 2601 | Allowed values |
| 2602 | 1 - v1 error format |
| 2603 | 2 - v2 error format |
| 2604 | |
| 2605 | Returns: |
| 2606 | An object of the form: |
| 2607 | |
| 2608 | { # An instance of an analysis type that has been found on a resource. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 2609 | "vulnerability": { # Details of a vulnerability Occurrence. # Describes a security vulnerability. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 2610 | "type": "A String", # The type of package; whether native or non native(ruby gems, node.js packages etc) |
| 2611 | "longDescription": "A String", # Output only. A detailed description of this vulnerability. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 2612 | "packageIssue": [ # Required. The set of affected locations and their fixes (if available) within the associated resource. |
| 2613 | { # This message wraps a location affected by a vulnerability and its associated fix (if one is available). |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 2614 | "affectedLocation": { # The location of the vulnerability. # Required. The location of the vulnerability. |
| 2615 | "version": { # Version contains structured information about the version of a package. # Required. The version of the package being described. |
| 2616 | "revision": "A String", # The iteration of the package build from the above version. |
| 2617 | "epoch": 42, # Used to correct mistakes in the version numbering scheme. |
| 2618 | "kind": "A String", # Required. Distinguishes between sentinel MIN/MAX versions and normal versions. |
| 2619 | "name": "A String", # Required only when version kind is NORMAL. The main part of the version name. |
| 2620 | }, |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 2621 | "package": "A String", # Required. The package being described. |
| 2622 | "cpeUri": "A String", # Required. The CPE URI in [cpe format](https://cpe.mitre.org/specification/) format. Examples include distro or storage location for vulnerable jar. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 2623 | }, |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 2624 | "severityName": "A String", # Deprecated, use Details.effective_severity instead The severity (e.g., distro assigned severity) for this vulnerability. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 2625 | "fixedLocation": { # The location of the vulnerability. # The location of the available fix for vulnerability. |
| 2626 | "version": { # Version contains structured information about the version of a package. # Required. The version of the package being described. |
| 2627 | "revision": "A String", # The iteration of the package build from the above version. |
| 2628 | "epoch": 42, # Used to correct mistakes in the version numbering scheme. |
| 2629 | "kind": "A String", # Required. Distinguishes between sentinel MIN/MAX versions and normal versions. |
| 2630 | "name": "A String", # Required only when version kind is NORMAL. The main part of the version name. |
| 2631 | }, |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 2632 | "package": "A String", # Required. The package being described. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 2633 | "cpeUri": "A String", # Required. The CPE URI in [cpe format](https://cpe.mitre.org/specification/) format. Examples include distro or storage location for vulnerable jar. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 2634 | }, |
| 2635 | }, |
| 2636 | ], |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 2637 | "severity": "A String", # Output only. The note provider assigned Severity of the vulnerability. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 2638 | "relatedUrls": [ # Output only. URLs related to this vulnerability. |
| 2639 | { # Metadata for any related URL information. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 2640 | "label": "A String", # Label to describe usage of the URL. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 2641 | "url": "A String", # Specific URL associated with the resource. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 2642 | }, |
| 2643 | ], |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 2644 | "shortDescription": "A String", # Output only. A one sentence description of this vulnerability. |
| 2645 | "effectiveSeverity": "A String", # The distro assigned severity for this vulnerability when it is available, and note provider assigned severity when distro has not yet assigned a severity for this vulnerability. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 2646 | "cvssScore": 3.14, # 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. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 2647 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 2648 | "build": { # Details of a build occurrence. # Describes a verifiable build. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 2649 | "provenanceBytes": "A String", # Serialized JSON representation of the provenance, used in generating the build signature in the corresponding build note. After verifying the signature, `provenance_bytes` can be unmarshalled and compared to the provenance to confirm that it is unchanged. A base64-encoded string representation of the provenance bytes is used for the signature in order to interoperate with openssl which expects this format for signature verification. 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. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 2650 | "provenance": { # Provenance of a build. Contains all information needed to verify the full details about the build from source to completion. # Required. The actual provenance for the build. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 2651 | "logsUri": "A String", # URI where any logs for this provenance were written. |
| 2652 | "startTime": "A String", # Time at which execution of the build was started. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 2653 | "builtArtifacts": [ # Output of the build. |
| 2654 | { # Artifact describes a build product. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 2655 | "checksum": "A String", # Hash or checksum value of a binary, or Docker Registry 2.0 digest of a container. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 2656 | "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 `docker push`. Note that a single Artifact ID can have multiple names, for example if two tags are applied to one image. |
| 2657 | "A String", |
| 2658 | ], |
| 2659 | "id": "A String", # Artifact ID, if any; for container images, this will be a URL by digest like `gcr.io/projectID/imagename@sha256:123456`. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 2660 | }, |
| 2661 | ], |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 2662 | "triggerId": "A String", # Trigger identifier if the build was triggered automatically; empty if not. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 2663 | "buildOptions": { # Special options applied to this build. This is a catch-all field where build providers can enter any desired additional details. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 2664 | "a_key": "A String", |
| 2665 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 2666 | "commands": [ # Commands requested by the build. |
| 2667 | { # Command describes a step performed as part of the build pipeline. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 2668 | "name": "A String", # Required. Name of the command, as presented on the command line, or if the command is packaged as a Docker container, as presented to `docker pull`. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 2669 | "env": [ # Environment variables set before running this command. |
| 2670 | "A String", |
| 2671 | ], |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 2672 | "id": "A String", # Optional unique identifier for this command, used in wait_for to reference this command as a dependency. |
| 2673 | "args": [ # Command-line arguments used when executing this command. |
| 2674 | "A String", |
| 2675 | ], |
| 2676 | "waitFor": [ # The ID(s) of the command(s) that this command depends on. |
| 2677 | "A String", |
| 2678 | ], |
| 2679 | "dir": "A String", # Working directory (relative to project source root) used when running this command. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 2680 | }, |
| 2681 | ], |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 2682 | "creator": "A String", # 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. |
| 2683 | "builderVersion": "A String", # Version string of the builder at the time this build was executed. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 2684 | "sourceProvenance": { # Source describes the location of the source used for the build. # Details of the Source input to the build. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 2685 | "context": { # 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. # If provided, the source code used for the build came from this location. |
| 2686 | "labels": { # Labels with user defined metadata. |
| 2687 | "a_key": "A String", |
| 2688 | }, |
| 2689 | "cloudRepo": { # A CloudRepoSourceContext denotes a particular revision in a Google Cloud Source Repo. # A SourceContext referring to a revision in a Google Cloud Source Repo. |
| 2690 | "aliasContext": { # An alias to a repo revision. # An alias, which may be a branch or tag. |
| 2691 | "kind": "A String", # The alias kind. |
| 2692 | "name": "A String", # The alias name. |
| 2693 | }, |
| 2694 | "revisionId": "A String", # A revision ID. |
| 2695 | "repoId": { # A unique identifier for a Cloud Repo. # The ID of the repo. |
| 2696 | "projectRepoId": { # Selects a repo using a Google Cloud Platform project ID (e.g., winged-cargo-31) and a repo name within that project. # A combination of a project ID and a repo name. |
| 2697 | "repoName": "A String", # The name of the repo. Leave empty for the default repo. |
| 2698 | "projectId": "A String", # The ID of the project. |
| 2699 | }, |
| 2700 | "uid": "A String", # A server-assigned, globally unique identifier. |
| 2701 | }, |
| 2702 | }, |
| 2703 | "git": { # A GitSourceContext denotes a particular revision in a third party Git repository (e.g., GitHub). # A SourceContext referring to any third party Git repo (e.g., GitHub). |
| 2704 | "url": "A String", # Git repository URL. |
| 2705 | "revisionId": "A String", # Git commit hash. |
| 2706 | }, |
| 2707 | "gerrit": { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project. |
| 2708 | "revisionId": "A String", # A revision (commit) ID. |
| 2709 | "hostUri": "A String", # The URI of a running Gerrit instance. |
| 2710 | "aliasContext": { # An alias to a repo revision. # An alias, which may be a branch or tag. |
| 2711 | "kind": "A String", # The alias kind. |
| 2712 | "name": "A String", # The alias name. |
| 2713 | }, |
| 2714 | "gerritProject": "A String", # 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. |
| 2715 | }, |
| 2716 | }, |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 2717 | "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. |
| 2718 | { # 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. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 2719 | "labels": { # Labels with user defined metadata. |
| 2720 | "a_key": "A String", |
| 2721 | }, |
| 2722 | "cloudRepo": { # A CloudRepoSourceContext denotes a particular revision in a Google Cloud Source Repo. # A SourceContext referring to a revision in a Google Cloud Source Repo. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 2723 | "aliasContext": { # An alias to a repo revision. # An alias, which may be a branch or tag. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 2724 | "kind": "A String", # The alias kind. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 2725 | "name": "A String", # The alias name. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 2726 | }, |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 2727 | "revisionId": "A String", # A revision ID. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 2728 | "repoId": { # A unique identifier for a Cloud Repo. # The ID of the repo. |
| 2729 | "projectRepoId": { # Selects a repo using a Google Cloud Platform project ID (e.g., winged-cargo-31) and a repo name within that project. # A combination of a project ID and a repo name. |
| 2730 | "repoName": "A String", # The name of the repo. Leave empty for the default repo. |
| 2731 | "projectId": "A String", # The ID of the project. |
| 2732 | }, |
| 2733 | "uid": "A String", # A server-assigned, globally unique identifier. |
| 2734 | }, |
| 2735 | }, |
| 2736 | "git": { # A GitSourceContext denotes a particular revision in a third party Git repository (e.g., GitHub). # A SourceContext referring to any third party Git repo (e.g., GitHub). |
| 2737 | "url": "A String", # Git repository URL. |
| 2738 | "revisionId": "A String", # Git commit hash. |
| 2739 | }, |
| 2740 | "gerrit": { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project. |
| 2741 | "revisionId": "A String", # A revision (commit) ID. |
| 2742 | "hostUri": "A String", # The URI of a running Gerrit instance. |
| 2743 | "aliasContext": { # An alias to a repo revision. # An alias, which may be a branch or tag. |
| 2744 | "kind": "A String", # The alias kind. |
| 2745 | "name": "A String", # The alias name. |
| 2746 | }, |
| 2747 | "gerritProject": "A String", # 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. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 2748 | }, |
| 2749 | }, |
| 2750 | ], |
| 2751 | "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. |
| 2752 | "a_key": { # Container message for hashes of byte content of files, used in source messages to verify integrity of source input to the build. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 2753 | "fileHash": [ # Required. Collection of file hashes. |
| 2754 | { # Container message for hash values. |
| 2755 | "type": "A String", # Required. The type of hash that was performed. |
| 2756 | "value": "A String", # Required. The hash value. |
| 2757 | }, |
| 2758 | ], |
| 2759 | }, |
| 2760 | }, |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 2761 | "artifactStorageSourceUri": "A String", # If provided, the input binary artifacts for the build came from this location. |
| 2762 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 2763 | "projectId": "A String", # ID of the project. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 2764 | "createTime": "A String", # Time at which the build was created. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 2765 | "id": "A String", # Required. Unique identifier of the build. |
| 2766 | "endTime": "A String", # Time at which execution of the build was finished. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 2767 | }, |
| 2768 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 2769 | "kind": "A String", # Output only. This explicitly denotes which of the occurrence details are specified. This field can be used as a filter in list requests. |
| 2770 | "createTime": "A String", # Output only. The time this occurrence was created. |
| 2771 | "intoto": { # 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. # Describes a specific in-toto link. |
| 2772 | "signatures": [ |
| 2773 | { # A signature object consists of the KeyID used and the signature itself. |
| 2774 | "keyid": "A String", |
| 2775 | "sig": "A String", |
| 2776 | }, |
| 2777 | ], |
| 2778 | "signed": { # This corresponds to an in-toto link. |
| 2779 | "command": [ # This field contains the full command executed for the step. This can also be empty if links are generated for operations that aren't directly mapped to a specific command. Each term in the command is an independent string in the list. An example of a command in the in-toto metadata field is: "command": ["git", "clone", "https://github.com/in-toto/demo-project.git"] |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 2780 | "A String", |
| 2781 | ], |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 2782 | "products": [ # Products are the supply chain artifacts generated as a result of the step. The structure is identical to that of materials. |
| 2783 | { |
| 2784 | "resourceUri": "A String", |
| 2785 | "hashes": { # Defines a hash object for use in Materials and Products. |
| 2786 | "sha256": "A String", |
| 2787 | }, |
| 2788 | }, |
| 2789 | ], |
| 2790 | "environment": { # Defines an object for the environment field in in-toto links. The suggested fields are "variables", "filesystem", and "workdir". # This is a field that can be used to capture information about the environment. It is suggested for this field to contain information that details environment variables, filesystem information, and the present working directory. The recommended structure of this field is: "environment": { "custom_values": { "variables": "", "filesystem": "", "workdir": "", "": "..." } } |
| 2791 | "customValues": { |
| 2792 | "a_key": "A String", |
| 2793 | }, |
| 2794 | }, |
| 2795 | "byproducts": { # Defines an object for the byproducts field in in-toto links. The suggested fields are "stderr", "stdout", and "return-value". # ByProducts are data generated as part of a software supply chain step, but are not the actual result of the step. |
| 2796 | "customValues": { |
| 2797 | "a_key": "A String", |
| 2798 | }, |
| 2799 | }, |
| 2800 | "materials": [ # Materials are the supply chain artifacts that go into the step and are used for the operation performed. The key of the map is the path of the artifact and the structure contains the recorded hash information. An example is: "materials": [ { "resource_uri": "foo/bar", "hashes": { "sha256": "ebebf...", : } } ] |
| 2801 | { |
| 2802 | "resourceUri": "A String", |
| 2803 | "hashes": { # Defines a hash object for use in Materials and Products. |
| 2804 | "sha256": "A String", |
| 2805 | }, |
| 2806 | }, |
| 2807 | ], |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 2808 | }, |
| 2809 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 2810 | "noteName": "A String", # Required. Immutable. The analysis note associated with this occurrence, in the form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. This field can be used as a filter in list requests. |
| 2811 | "name": "A String", # Output only. The name of the occurrence in the form of `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. |
| 2812 | "installation": { # Details of a package occurrence. # Describes the installation of a package on the linked resource. |
| 2813 | "installation": { # This represents how a particular software package may be installed on a system. # Required. Where the package was installed. |
| 2814 | "location": [ # Required. All of the places within the filesystem versions of this package have been found. |
| 2815 | { # An occurrence of a particular package installation found within a system's filesystem. E.g., glibc was found in `/var/lib/dpkg/status`. |
| 2816 | "path": "A String", # The path from which we gathered that this package/version is installed. |
| 2817 | "version": { # Version contains structured information about the version of a package. # The version installed at this location. |
| 2818 | "revision": "A String", # The iteration of the package build from the above version. |
| 2819 | "epoch": 42, # Used to correct mistakes in the version numbering scheme. |
| 2820 | "kind": "A String", # Required. Distinguishes between sentinel MIN/MAX versions and normal versions. |
| 2821 | "name": "A String", # Required only when version kind is NORMAL. The main part of the version name. |
| 2822 | }, |
| 2823 | "cpeUri": "A String", # Required. The CPE URI in [CPE format](https://cpe.mitre.org/specification/) denoting the package manager version distributing a package. |
| 2824 | }, |
| 2825 | ], |
| 2826 | "name": "A String", # Output only. The name of the installed package. |
| 2827 | }, |
| 2828 | }, |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 2829 | "derivedImage": { # Details of an image occurrence. # Describes how this resource derives from the basis in the associated note. |
| 2830 | "derivedImage": { # Derived describes the derived image portion (Occurrence) of the DockerImage relationship. This image would be produced from a Dockerfile with FROM . # Required. Immutable. The child image derived from the base image. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 2831 | "distance": 42, # Output only. The number of layers by which this image differs from the associated image basis. |
| 2832 | "baseResourceUrl": "A String", # Output only. This contains the base image URL for the derived image occurrence. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 2833 | "fingerprint": { # A set of properties that uniquely identify a given Docker image. # Required. The fingerprint of the derived image. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 2834 | "v2Name": "A String", # Output only. The name of the image's v2 blobs computed via: [bottom] := v2_blobbottom := sha256(v2_blob[N] + " " + v2_name[N+1]) Only the name of the final blob is kept. |
| 2835 | "v1Name": "A String", # Required. The layer ID of the final layer in the Docker image's v1 representation. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 2836 | "v2Blob": [ # Required. The ordered list of v2 blobs that represent a given image. |
| 2837 | "A String", |
| 2838 | ], |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 2839 | }, |
| 2840 | "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. |
| 2841 | { # Layer holds metadata specific to a layer of a Docker image. |
| 2842 | "directive": "A String", # Required. The recovered Dockerfile directive used to construct this layer. |
| 2843 | "arguments": "A String", # The recovered arguments to the Dockerfile directive. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 2844 | }, |
| 2845 | ], |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 2846 | }, |
| 2847 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 2848 | "updateTime": "A String", # Output only. The time this occurrence was last updated. |
| 2849 | "attestation": { # Details of an attestation occurrence. # Describes an attestation of an artifact. |
| 2850 | "attestation": { # 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). # Required. Attestation for the resource. |
| 2851 | "pgpSignedAttestation": { # 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. # A PGP signed attestation. |
| 2852 | "signature": "A String", # Required. The raw content of the signature, as output by GNU Privacy Guard (GPG) or equivalent. Since this message only supports attached signatures, the payload that was signed must be attached. While the signature format supported is dependent on the verification implementation, currently only ASCII-armored (`--armor` to gpg), non-clearsigned (`--sign` rather than `--clearsign` to gpg) are supported. Concretely, `gpg --sign --armor --output=signature.gpg payload.json` will create the signature content expected in this field in `signature.gpg` for the `payload.json` attestation payload. |
| 2853 | "pgpKeyId": "A String", # The cryptographic fingerprint of the key used to generate the signature, as output by, e.g. `gpg --list-keys`. This should be the version 4, full 160-bit fingerprint, expressed as a 40 character hexidecimal string. See https://tools.ietf.org/html/rfc4880#section-12.2 for details. Implementations may choose to acknowledge "LONG", "SHORT", or other abbreviated key IDs, but only the full fingerprint is guaranteed to work. In gpg, the full fingerprint can be retrieved from the `fpr` field returned when calling --list-keys with --with-colons. For example: ``` gpg --with-colons --with-fingerprint --force-v4-certs \ --list-keys attester@example.com tru::1:1513631572:0:3:1:5 pub:...... fpr:::::::::24FF6481B76AC91E66A00AC657A93A81EF3AE6FB: ``` Above, the fingerprint is `24FF6481B76AC91E66A00AC657A93A81EF3AE6FB`. |
| 2854 | "contentType": "A String", # Type (for example schema) of the attestation payload that was signed. The verifier must ensure that the provided type is one that the verifier supports, and that the attestation payload is a valid instantiation of that type (for example by validating a JSON schema). |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 2855 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 2856 | "genericSignedAttestation": { # 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. |
| 2857 | "serializedPayload": "A String", # The serialized payload that is verified by one or more `signatures`. The encoding and semantic meaning of this payload must match what is set in `content_type`. |
| 2858 | "contentType": "A String", # Type (for example schema) of the attestation payload that was signed. The verifier must ensure that the provided type is one that the verifier supports, and that the attestation payload is a valid instantiation of that type (for example by validating a JSON schema). |
| 2859 | "signatures": [ # One or more signatures over `serialized_payload`. Verifier implementations should consider this attestation message verified if at least one `signature` verifies `serialized_payload`. See `Signature` in common.proto for more details on signature structure and verification. |
| 2860 | { # 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). |
| 2861 | "publicKeyId": "A String", # The identifier for the public key that verifies this signature. * The `public_key_id` is required. * The `public_key_id` SHOULD be an RFC3986 conformant URI. * When possible, the `public_key_id` SHOULD be an immutable reference, such as a cryptographic digest. Examples of valid `public_key_id`s: 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" |
| 2862 | "signature": "A String", # 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. |
| 2863 | }, |
| 2864 | ], |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 2865 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 2866 | }, |
| 2867 | }, |
| 2868 | "deployment": { # Details of a deployment occurrence. # Describes the deployment of an artifact on a runtime. |
| 2869 | "deployment": { # The period during which some deployable was active in a runtime. # Required. Deployment history for the resource. |
| 2870 | "userEmail": "A String", # Identity of the user that triggered this deployment. |
| 2871 | "address": "A String", # Address of the runtime element hosting this deployment. |
| 2872 | "config": "A String", # Configuration used to create this deployment. |
| 2873 | "resourceUri": [ # Output only. Resource URI for the artifact being deployed taken from the deployable field with the same name. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 2874 | "A String", |
| 2875 | ], |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 2876 | "platform": "A String", # Platform hosting this deployment. |
| 2877 | "deployTime": "A String", # Required. Beginning of the lifetime of this deployment. |
| 2878 | "undeployTime": "A String", # End of the lifetime of this deployment. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 2879 | }, |
| 2880 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 2881 | "remediation": "A String", # A description of actions that can be taken to remedy the note. |
| 2882 | "resource": { # An entity that can have metadata. For example, a Docker image. # Required. Immutable. The resource for which the occurrence applies. |
| 2883 | "name": "A String", # Deprecated, do not use. Use uri instead. The name of the resource. For example, the name of a Docker image - "Debian". |
| 2884 | "contentHash": { # Container message for hash values. # Deprecated, do not use. Use uri instead. The hash of the resource content. For example, the Docker digest. |
| 2885 | "type": "A String", # Required. The type of hash that was performed. |
| 2886 | "value": "A String", # Required. The hash value. |
| 2887 | }, |
| 2888 | "uri": "A String", # Required. The unique URI of the resource. For example, `https://gcr.io/project/image@sha256:foo` for a Docker image. |
| 2889 | }, |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 2890 | "discovered": { # Details of a discovery occurrence. # Describes when a resource was discovered. |
| 2891 | "discovered": { # Provides information about the analysis status of a discovered resource. # Required. Analysis status for the discovered resource. |
| 2892 | "lastAnalysisTime": "A String", # The last time continuous analysis was done for this resource. Deprecated, do not use. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 2893 | "continuousAnalysis": "A String", # Whether the resource is continuously analyzed. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 2894 | "analysisStatus": "A String", # The status of discovery for the resource. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 2895 | "analysisStatusError": { # 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](https://github.com/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](https://cloud.google.com/apis/design/errors). # 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. |
| 2896 | "details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use. |
| 2897 | { |
| 2898 | "a_key": "", # Properties of the object. Contains field @type with type URL. |
| 2899 | }, |
| 2900 | ], |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 2901 | "code": 42, # The status code, which should be an enum value of google.rpc.Code. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 2902 | "message": "A String", # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 2903 | }, |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 2904 | }, |
| 2905 | }, |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 2906 | }</pre> |
| 2907 | </div> |
| 2908 | |
| 2909 | <div class="method"> |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 2910 | <code class="details" id="setIamPolicy">setIamPolicy(resource, body=None, x__xgafv=None)</code> |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 2911 | <pre>Sets the access control policy on the specified note or occurrence. Requires `containeranalysis.notes.setIamPolicy` or `containeranalysis.occurrences.setIamPolicy` permission if the resource is a note or an occurrence, respectively. The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for occurrences. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 2912 | |
| 2913 | Args: |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 2914 | resource: string, REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field. (required) |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 2915 | body: object, The request body. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 2916 | The object takes the form of: |
| 2917 | |
| 2918 | { # Request message for `SetIamPolicy` method. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 2919 | "policy": { # 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](https://cloud.google.com/iam/help/conditions/resource-policies). **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](https://cloud.google.com/iam/docs/). # REQUIRED: The complete policy to be applied to the `resource`. The size of the policy is limited to a few 10s of KB. An empty policy is a valid policy but certain Cloud Platform services (such as Projects) might reject them. |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 2920 | "version": 42, # Specifies the format of the policy. Valid values are `0`, `1`, and `3`. Requests that specify an invalid value are rejected. Any operation that affects conditional role bindings must specify version `3`. This requirement applies to the following operations: * Getting a policy that includes a conditional role binding * Adding a conditional role binding to a policy * Changing a conditional role binding in a policy * Removing any role binding, with or without a condition, from a policy that includes conditions **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost. If a policy does not include any conditions, operations on that policy may specify any valid version or leave the field unset. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 2921 | "etag": "A String", # `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 2922 | "bindings": [ # Associates a list of `members` to a `role`. Optionally, may specify a `condition` that determines how and when the `bindings` are applied. Each of the `bindings` must contain at least one member. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 2923 | { # Associates `members` with a `role`. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 2924 | "condition": { # 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. # The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the members in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). |
| 2925 | "title": "A String", # Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 2926 | "location": "A String", # Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file. |
| 2927 | "description": "A String", # Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 2928 | "expression": "A String", # Textual representation of an expression in Common Expression Language syntax. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 2929 | }, |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 2930 | "role": "A String", # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`, or `roles/owner`. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 2931 | "members": [ # Specifies the identities requesting access for a Cloud Platform resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. |
| 2932 | "A String", |
| 2933 | ], |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 2934 | }, |
| 2935 | ], |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 2936 | }, |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 2937 | } |
| 2938 | |
| 2939 | x__xgafv: string, V1 error format. |
| 2940 | Allowed values |
| 2941 | 1 - v1 error format |
| 2942 | 2 - v2 error format |
| 2943 | |
| 2944 | Returns: |
| 2945 | An object of the form: |
| 2946 | |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 2947 | { # 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](https://cloud.google.com/iam/help/conditions/resource-policies). **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](https://cloud.google.com/iam/docs/). |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 2948 | "version": 42, # Specifies the format of the policy. Valid values are `0`, `1`, and `3`. Requests that specify an invalid value are rejected. Any operation that affects conditional role bindings must specify version `3`. This requirement applies to the following operations: * Getting a policy that includes a conditional role binding * Adding a conditional role binding to a policy * Changing a conditional role binding in a policy * Removing any role binding, with or without a condition, from a policy that includes conditions **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost. If a policy does not include any conditions, operations on that policy may specify any valid version or leave the field unset. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 2949 | "etag": "A String", # `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 2950 | "bindings": [ # Associates a list of `members` to a `role`. Optionally, may specify a `condition` that determines how and when the `bindings` are applied. Each of the `bindings` must contain at least one member. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 2951 | { # Associates `members` with a `role`. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 2952 | "condition": { # 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. # The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the members in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). |
| 2953 | "title": "A String", # Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 2954 | "location": "A String", # Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file. |
| 2955 | "description": "A String", # Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 2956 | "expression": "A String", # Textual representation of an expression in Common Expression Language syntax. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 2957 | }, |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 2958 | "role": "A String", # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`, or `roles/owner`. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame^] | 2959 | "members": [ # Specifies the identities requesting access for a Cloud Platform resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`. |
| 2960 | "A String", |
| 2961 | ], |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 2962 | }, |
| 2963 | ], |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 2964 | }</pre> |
| 2965 | </div> |
| 2966 | |
| 2967 | <div class="method"> |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 2968 | <code class="details" id="testIamPermissions">testIamPermissions(resource, body=None, x__xgafv=None)</code> |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 2969 | <pre>Returns the permissions that a caller has on the specified note or occurrence. Requires list permission on the project (for example, `containeranalysis.notes.list`). The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for occurrences. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 2970 | |
| 2971 | Args: |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 2972 | resource: string, REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field. (required) |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 2973 | body: object, The request body. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 2974 | The object takes the form of: |
| 2975 | |
| 2976 | { # Request message for `TestIamPermissions` method. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 2977 | "permissions": [ # The set of permissions to check for the `resource`. Permissions with wildcards (such as '*' or 'storage.*') are not allowed. For more information see [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 2978 | "A String", |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 2979 | ], |
| 2980 | } |
| 2981 | |
| 2982 | x__xgafv: string, V1 error format. |
| 2983 | Allowed values |
| 2984 | 1 - v1 error format |
| 2985 | 2 - v2 error format |
| 2986 | |
| 2987 | Returns: |
| 2988 | An object of the form: |
| 2989 | |
| 2990 | { # Response message for `TestIamPermissions` method. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 2991 | "permissions": [ # A subset of `TestPermissionsRequest.permissions` that the caller is allowed. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 2992 | "A String", |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 2993 | ], |
| 2994 | }</pre> |
| 2995 | </div> |
| 2996 | |
| 2997 | </body></html> |