@google-cloud/containeranalysis 4.4.1 → 4.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/README.md +49 -70
- package/build/protos/google/devtools/containeranalysis/v1beta1/containeranalysis.proto +10 -120
- package/build/protos/grafeas/v1/common.proto +2 -0
- package/build/protos/grafeas/v1/grafeas.proto +3 -0
- package/build/protos/grafeas/v1/vex.proto +203 -0
- package/build/protos/grafeas/v1/vulnerability.proto +48 -2
- package/build/protos/protos.d.ts +8235 -6337
- package/build/protos/protos.js +17150 -11876
- package/build/protos/protos.json +1 -6679
- package/build/src/index.d.ts +2 -5
- package/build/src/index.js +3 -5
- package/build/src/index.js.map +1 -1
- package/build/src/v1/container_analysis_client.d.ts +4 -4
- package/build/src/v1/container_analysis_client.js +3 -1
- package/build/src/v1/container_analysis_client.js.map +1 -1
- package/build/src/v1/grafeas_client.d.ts +764 -0
- package/build/src/v1/grafeas_client.js +928 -0
- package/build/src/v1/grafeas_client.js.map +1 -0
- package/build/src/v1/grafeas_client_config.json +82 -0
- package/build/src/v1/index.js +1 -1
- package/build/src/v1beta1/container_analysis_v1_beta1_client.d.ts +5 -190
- package/build/src/v1beta1/container_analysis_v1_beta1_client.js +5 -224
- package/build/src/v1beta1/container_analysis_v1_beta1_client.js.map +1 -1
- package/build/src/v1beta1/container_analysis_v1_beta1_client_config.json +0 -12
- package/build/src/v1beta1/grafeas_v1_beta1_client.d.ts +21 -48
- package/build/src/v1beta1/grafeas_v1_beta1_client.js +9 -51
- package/build/src/v1beta1/grafeas_v1_beta1_client.js.map +1 -1
- package/build/src/v1beta1/index.js +1 -1
- package/package.json +41 -41
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
// Copyright 2023 The Grafeas Authors. All rights reserved.
|
|
2
|
+
//
|
|
3
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
// you may not use this file except in compliance with the License.
|
|
5
|
+
// You may obtain a copy of the License at
|
|
6
|
+
//
|
|
7
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
//
|
|
9
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
+
// See the License for the specific language governing permissions and
|
|
13
|
+
// limitations under the License.
|
|
14
|
+
|
|
15
|
+
syntax = "proto3";
|
|
16
|
+
|
|
17
|
+
package grafeas.v1;
|
|
18
|
+
|
|
19
|
+
import "grafeas/v1/common.proto";
|
|
20
|
+
|
|
21
|
+
option go_package = "google.golang.org/genproto/googleapis/grafeas/v1;grafeas";
|
|
22
|
+
option java_multiple_files = true;
|
|
23
|
+
option java_package = "io.grafeas.v1";
|
|
24
|
+
option objc_class_prefix = "GRA";
|
|
25
|
+
|
|
26
|
+
// A single VulnerabilityAssessmentNote represents
|
|
27
|
+
// one particular product's vulnerability assessment for one CVE.
|
|
28
|
+
message VulnerabilityAssessmentNote {
|
|
29
|
+
// The title of the note. E.g. `Vex-Debian-11.4`
|
|
30
|
+
string title = 1;
|
|
31
|
+
|
|
32
|
+
// A one sentence description of this Vex.
|
|
33
|
+
string short_description = 2;
|
|
34
|
+
|
|
35
|
+
// A detailed description of this Vex.
|
|
36
|
+
string long_description = 3;
|
|
37
|
+
|
|
38
|
+
// Identifies the language used by this document,
|
|
39
|
+
// corresponding to IETF BCP 47 / RFC 5646.
|
|
40
|
+
string language_code = 4;
|
|
41
|
+
|
|
42
|
+
// Publisher contains information about the publisher of
|
|
43
|
+
// this Note.
|
|
44
|
+
// (-- api-linter: core::0123::resource-annotation=disabled
|
|
45
|
+
// aip.dev/not-precedent: Publisher is not a separate resource. --)
|
|
46
|
+
message Publisher {
|
|
47
|
+
// Name of the publisher.
|
|
48
|
+
// Examples: 'Google', 'Google Cloud Platform'.
|
|
49
|
+
string name = 1;
|
|
50
|
+
|
|
51
|
+
// Provides information about the authority of the issuing party to
|
|
52
|
+
// release the document, in particular, the party's constituency and
|
|
53
|
+
// responsibilities or other obligations.
|
|
54
|
+
string issuing_authority = 2;
|
|
55
|
+
|
|
56
|
+
// The context or namespace.
|
|
57
|
+
// Contains a URL which is under control of the issuing party and can
|
|
58
|
+
// be used as a globally unique identifier for that issuing party.
|
|
59
|
+
// Example: https://csaf.io
|
|
60
|
+
string publisher_namespace = 3;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
// Publisher details of this Note.
|
|
64
|
+
Publisher publisher = 5;
|
|
65
|
+
|
|
66
|
+
// Product contains information about a product and how to uniquely identify
|
|
67
|
+
// it.
|
|
68
|
+
// (-- api-linter: core::0123::resource-annotation=disabled
|
|
69
|
+
// aip.dev/not-precedent: Product is not a separate resource. --)
|
|
70
|
+
message Product {
|
|
71
|
+
// Name of the product.
|
|
72
|
+
string name = 1;
|
|
73
|
+
|
|
74
|
+
// Token that identifies a product so that it can be referred to from other
|
|
75
|
+
// parts in the document. There is no predefined format as long as it
|
|
76
|
+
// uniquely identifies a group in the context of the current document.
|
|
77
|
+
string id = 2;
|
|
78
|
+
|
|
79
|
+
oneof identifier {
|
|
80
|
+
// Contains a URI which is vendor-specific.
|
|
81
|
+
// Example: The artifact repository URL of an image.
|
|
82
|
+
string generic_uri = 3;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
// The product affected by this vex.
|
|
87
|
+
Product product = 6;
|
|
88
|
+
|
|
89
|
+
// Assessment provides all information that is related to a single
|
|
90
|
+
// vulnerability for this product.
|
|
91
|
+
message Assessment {
|
|
92
|
+
// Holds the MITRE standard Common Vulnerabilities and Exposures (CVE)
|
|
93
|
+
// tracking number for the vulnerability.
|
|
94
|
+
string cve = 1;
|
|
95
|
+
|
|
96
|
+
// A one sentence description of this Vex.
|
|
97
|
+
string short_description = 2;
|
|
98
|
+
|
|
99
|
+
// A detailed description of this Vex.
|
|
100
|
+
string long_description = 3;
|
|
101
|
+
|
|
102
|
+
// Holds a list of references associated with this vulnerability item and
|
|
103
|
+
// assessment. These uris have additional information about the
|
|
104
|
+
// vulnerability and the assessment itself. E.g. Link to a document which
|
|
105
|
+
// details how this assessment concluded the state of this vulnerability.
|
|
106
|
+
repeated grafeas.v1.RelatedUrl related_uris = 4;
|
|
107
|
+
|
|
108
|
+
// Provides the state of this Vulnerability assessment.
|
|
109
|
+
enum State {
|
|
110
|
+
// No state is specified.
|
|
111
|
+
STATE_UNSPECIFIED = 0;
|
|
112
|
+
// This product is known to be affected by this vulnerability.
|
|
113
|
+
AFFECTED = 1;
|
|
114
|
+
// This product is known to be not affected by this vulnerability.
|
|
115
|
+
NOT_AFFECTED = 2;
|
|
116
|
+
// This product contains a fix for this vulnerability.
|
|
117
|
+
FIXED = 3;
|
|
118
|
+
// It is not known yet whether these versions are or are not affected
|
|
119
|
+
// by the vulnerability. However, it is still under investigation.
|
|
120
|
+
UNDER_INVESTIGATION = 4;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
// Provides the state of this Vulnerability assessment.
|
|
124
|
+
State state = 5;
|
|
125
|
+
|
|
126
|
+
// Contains information about the impact of this vulnerability,
|
|
127
|
+
// this will change with time.
|
|
128
|
+
repeated string impacts = 6;
|
|
129
|
+
|
|
130
|
+
// Justification provides the justification when the state of the
|
|
131
|
+
// assessment if NOT_AFFECTED.
|
|
132
|
+
message Justification {
|
|
133
|
+
// Provides the type of justification.
|
|
134
|
+
enum JustificationType {
|
|
135
|
+
// JUSTIFICATION_TYPE_UNSPECIFIED.
|
|
136
|
+
JUSTIFICATION_TYPE_UNSPECIFIED = 0;
|
|
137
|
+
// The vulnerable component is not present in the product.
|
|
138
|
+
COMPONENT_NOT_PRESENT = 1;
|
|
139
|
+
// The vulnerable code is not present. Typically this case
|
|
140
|
+
// occurs when source code is configured or built in a way that excludes
|
|
141
|
+
// the vulnerable code.
|
|
142
|
+
VULNERABLE_CODE_NOT_PRESENT = 2;
|
|
143
|
+
// The vulnerable code can not be executed.
|
|
144
|
+
// Typically this case occurs when the product includes the vulnerable
|
|
145
|
+
// code but does not call or use the vulnerable code.
|
|
146
|
+
VULNERABLE_CODE_NOT_IN_EXECUTE_PATH = 3;
|
|
147
|
+
// The vulnerable code cannot be controlled by an attacker to exploit
|
|
148
|
+
// the vulnerability.
|
|
149
|
+
VULNERABLE_CODE_CANNOT_BE_CONTROLLED_BY_ADVERSARY = 4;
|
|
150
|
+
// The product includes built-in protections or features that prevent
|
|
151
|
+
// exploitation of the vulnerability. These built-in protections cannot
|
|
152
|
+
// be subverted by the attacker and cannot be configured or disabled by
|
|
153
|
+
// the user. These mitigations completely prevent exploitation based on
|
|
154
|
+
// known attack vectors.
|
|
155
|
+
INLINE_MITIGATIONS_ALREADY_EXIST = 5;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
// The justification type for this vulnerability.
|
|
159
|
+
JustificationType justification_type = 1;
|
|
160
|
+
|
|
161
|
+
// Additional details on why this justification was chosen.
|
|
162
|
+
string details = 2;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
// Justification provides the justification when the state of the
|
|
166
|
+
// assessment if NOT_AFFECTED.
|
|
167
|
+
Justification justification = 7;
|
|
168
|
+
|
|
169
|
+
// Specifies details on how to handle (and presumably, fix) a vulnerability.
|
|
170
|
+
message Remediation {
|
|
171
|
+
// The type of remediation that can be applied.
|
|
172
|
+
enum RemediationType {
|
|
173
|
+
// No remediation type specified.
|
|
174
|
+
REMEDIATION_TYPE_UNSPECIFIED = 0;
|
|
175
|
+
// A MITIGATION is available.
|
|
176
|
+
MITIGATION = 1;
|
|
177
|
+
// No fix is planned.
|
|
178
|
+
NO_FIX_PLANNED = 2;
|
|
179
|
+
// Not available.
|
|
180
|
+
NONE_AVAILABLE = 3;
|
|
181
|
+
// A vendor fix is available.
|
|
182
|
+
VENDOR_FIX = 4;
|
|
183
|
+
// A workaround is available.
|
|
184
|
+
WORKAROUND = 5;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
// The type of remediation that can be applied.
|
|
188
|
+
RemediationType remediation_type = 1;
|
|
189
|
+
|
|
190
|
+
// Contains a comprehensive human-readable discussion of the remediation.
|
|
191
|
+
string details = 2;
|
|
192
|
+
|
|
193
|
+
// Contains the URL where to obtain the remediation.
|
|
194
|
+
grafeas.v1.RelatedUrl remediation_uri = 3;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
// Specifies details on how to handle (and presumably, fix) a vulnerability.
|
|
198
|
+
repeated Remediation remediations = 8;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
// Represents a vulnerability assessment for the product.
|
|
202
|
+
Assessment assessment = 7;
|
|
203
|
+
}
|
|
@@ -22,6 +22,7 @@ import "grafeas/v1/common.proto";
|
|
|
22
22
|
import "grafeas/v1/cvss.proto";
|
|
23
23
|
import "grafeas/v1/package.proto";
|
|
24
24
|
import "grafeas/v1/severity.proto";
|
|
25
|
+
import "grafeas/v1/vex.proto";
|
|
25
26
|
|
|
26
27
|
option go_package = "google.golang.org/genproto/googleapis/grafeas/v1;grafeas";
|
|
27
28
|
option java_multiple_files = true;
|
|
@@ -152,7 +153,10 @@ message VulnerabilityNote {
|
|
|
152
153
|
// CVSS version used to populate cvss_score and severity.
|
|
153
154
|
grafeas.v1.CVSSVersion cvss_version = 7;
|
|
154
155
|
|
|
155
|
-
//
|
|
156
|
+
// The full description of the v2 CVSS for this vulnerability.
|
|
157
|
+
CVSS cvss_v2 = 8;
|
|
158
|
+
|
|
159
|
+
// Next free ID is 9.
|
|
156
160
|
}
|
|
157
161
|
|
|
158
162
|
// An occurrence of a severity vulnerability on a resource.
|
|
@@ -247,5 +251,47 @@ message VulnerabilityOccurrence {
|
|
|
247
251
|
// Output only. CVSS version used to populate cvss_score and severity.
|
|
248
252
|
grafeas.v1.CVSSVersion cvss_version = 11;
|
|
249
253
|
|
|
250
|
-
//
|
|
254
|
+
// The cvss v2 score for the vulnerability.
|
|
255
|
+
CVSS cvss_v2 = 12;
|
|
256
|
+
|
|
257
|
+
// VexAssessment provides all publisher provided Vex information that is
|
|
258
|
+
// related to this vulnerability.
|
|
259
|
+
message VexAssessment {
|
|
260
|
+
// Holds the MITRE standard Common Vulnerabilities and Exposures (CVE)
|
|
261
|
+
// tracking number for the vulnerability.
|
|
262
|
+
string cve = 1;
|
|
263
|
+
|
|
264
|
+
// Holds a list of references associated with this vulnerability item and
|
|
265
|
+
// assessment.
|
|
266
|
+
repeated grafeas.v1.RelatedUrl related_uris = 2;
|
|
267
|
+
|
|
268
|
+
// The VulnerabilityAssessment note from which this VexAssessment was
|
|
269
|
+
// generated.
|
|
270
|
+
// This will be of the form: `projects/[PROJECT_ID]/notes/[NOTE_ID]`.
|
|
271
|
+
// (-- api-linter: core::0122::name-suffix=disabled
|
|
272
|
+
// aip.dev/not-precedent: The suffix is kept for consistency. --)
|
|
273
|
+
string note_name = 3;
|
|
274
|
+
|
|
275
|
+
// Provides the state of this Vulnerability assessment.
|
|
276
|
+
grafeas.v1.VulnerabilityAssessmentNote.Assessment.State state = 4;
|
|
277
|
+
|
|
278
|
+
// Contains information about the impact of this vulnerability,
|
|
279
|
+
// this will change with time.
|
|
280
|
+
repeated string impacts = 5;
|
|
281
|
+
|
|
282
|
+
// Specifies details on how to handle (and presumably, fix) a vulnerability.
|
|
283
|
+
repeated grafeas.v1.VulnerabilityAssessmentNote.Assessment.Remediation
|
|
284
|
+
remediations = 6;
|
|
285
|
+
|
|
286
|
+
// Justification provides the justification when the state of the
|
|
287
|
+
// assessment if NOT_AFFECTED.
|
|
288
|
+
grafeas.v1.VulnerabilityAssessmentNote.Assessment.Justification
|
|
289
|
+
justification = 7;
|
|
290
|
+
|
|
291
|
+
// Next ID: 8
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
VexAssessment vex_assessment = 13;
|
|
295
|
+
|
|
296
|
+
// Next free ID is 14.
|
|
251
297
|
}
|