@google-cloud/containeranalysis 4.4.2 → 4.6.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/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 +4949 -4647
- package/build/protos/protos.js +5929 -4749
- package/build/protos/protos.json +1 -1
- package/build/src/v1beta1/container_analysis_v1_beta1_client.d.ts +2 -187
- package/build/src/v1beta1/container_analysis_v1_beta1_client.js +2 -223
- 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 +0 -27
- package/build/src/v1beta1/grafeas_v1_beta1_client.js +0 -44
- package/build/src/v1beta1/grafeas_v1_beta1_client.js.map +1 -1
- package/package.json +1 -1
- package/CHANGELOG.md +0 -414
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Copyright
|
|
1
|
+
// Copyright 2023 Google LLC
|
|
2
2
|
//
|
|
3
3
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
4
|
// you may not use this file except in compliance with the License.
|
|
@@ -11,7 +11,6 @@
|
|
|
11
11
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
12
|
// See the License for the specific language governing permissions and
|
|
13
13
|
// limitations under the License.
|
|
14
|
-
//
|
|
15
14
|
|
|
16
15
|
syntax = "proto3";
|
|
17
16
|
|
|
@@ -20,10 +19,8 @@ package google.devtools.containeranalysis.v1beta1;
|
|
|
20
19
|
import "google/api/annotations.proto";
|
|
21
20
|
import "google/api/client.proto";
|
|
22
21
|
import "google/api/field_behavior.proto";
|
|
23
|
-
import "google/api/resource.proto";
|
|
24
22
|
import "google/iam/v1/iam_policy.proto";
|
|
25
23
|
import "google/iam/v1/policy.proto";
|
|
26
|
-
import "google/protobuf/timestamp.proto";
|
|
27
24
|
|
|
28
25
|
option go_package = "google.golang.org/genproto/googleapis/devtools/containeranalysis/v1beta1;containeranalysis";
|
|
29
26
|
option java_multiple_files = true;
|
|
@@ -32,7 +29,7 @@ option objc_class_prefix = "GCA";
|
|
|
32
29
|
|
|
33
30
|
// Retrieves analysis results of Cloud components such as Docker container
|
|
34
31
|
// images. The Container Analysis API is an implementation of the
|
|
35
|
-
// [Grafeas](grafeas.io) API.
|
|
32
|
+
// [Grafeas](https://grafeas.io) API.
|
|
36
33
|
//
|
|
37
34
|
// Analysis results are stored as a series of occurrences. An `Occurrence`
|
|
38
35
|
// contains information about a specific analysis instance on a resource. An
|
|
@@ -45,7 +42,8 @@ option objc_class_prefix = "GCA";
|
|
|
45
42
|
// image with the vulnerability referring to that note.
|
|
46
43
|
service ContainerAnalysisV1Beta1 {
|
|
47
44
|
option (google.api.default_host) = "containeranalysis.googleapis.com";
|
|
48
|
-
option (google.api.oauth_scopes) =
|
|
45
|
+
option (google.api.oauth_scopes) =
|
|
46
|
+
"https://www.googleapis.com/auth/cloud-platform";
|
|
49
47
|
|
|
50
48
|
// Sets the access control policy on the specified note or occurrence.
|
|
51
49
|
// Requires `containeranalysis.notes.setIamPolicy` or
|
|
@@ -55,7 +53,8 @@ service ContainerAnalysisV1Beta1 {
|
|
|
55
53
|
// The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for
|
|
56
54
|
// notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for
|
|
57
55
|
// occurrences.
|
|
58
|
-
rpc SetIamPolicy(google.iam.v1.SetIamPolicyRequest)
|
|
56
|
+
rpc SetIamPolicy(google.iam.v1.SetIamPolicyRequest)
|
|
57
|
+
returns (google.iam.v1.Policy) {
|
|
59
58
|
option (google.api.http) = {
|
|
60
59
|
post: "/v1beta1/{resource=projects/*/notes/*}:setIamPolicy"
|
|
61
60
|
body: "*"
|
|
@@ -75,7 +74,8 @@ service ContainerAnalysisV1Beta1 {
|
|
|
75
74
|
// The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for
|
|
76
75
|
// notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for
|
|
77
76
|
// occurrences.
|
|
78
|
-
rpc GetIamPolicy(google.iam.v1.GetIamPolicyRequest)
|
|
77
|
+
rpc GetIamPolicy(google.iam.v1.GetIamPolicyRequest)
|
|
78
|
+
returns (google.iam.v1.Policy) {
|
|
79
79
|
option (google.api.http) = {
|
|
80
80
|
post: "/v1beta1/{resource=projects/*/notes/*}:getIamPolicy"
|
|
81
81
|
body: "*"
|
|
@@ -94,7 +94,8 @@ service ContainerAnalysisV1Beta1 {
|
|
|
94
94
|
// The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for
|
|
95
95
|
// notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for
|
|
96
96
|
// occurrences.
|
|
97
|
-
rpc TestIamPermissions(google.iam.v1.TestIamPermissionsRequest)
|
|
97
|
+
rpc TestIamPermissions(google.iam.v1.TestIamPermissionsRequest)
|
|
98
|
+
returns (google.iam.v1.TestIamPermissionsResponse) {
|
|
98
99
|
option (google.api.http) = {
|
|
99
100
|
post: "/v1beta1/{resource=projects/*/notes/*}:testIamPermissions"
|
|
100
101
|
body: "*"
|
|
@@ -105,115 +106,4 @@ service ContainerAnalysisV1Beta1 {
|
|
|
105
106
|
};
|
|
106
107
|
option (google.api.method_signature) = "resource,permissions";
|
|
107
108
|
}
|
|
108
|
-
|
|
109
|
-
// Gets the specified scan configuration.
|
|
110
|
-
rpc GetScanConfig(GetScanConfigRequest) returns (ScanConfig) {
|
|
111
|
-
option (google.api.http) = {
|
|
112
|
-
get: "/v1beta1/{name=projects/*/scanConfigs/*}"
|
|
113
|
-
};
|
|
114
|
-
option (google.api.method_signature) = "name";
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
// Lists scan configurations for the specified project.
|
|
118
|
-
rpc ListScanConfigs(ListScanConfigsRequest) returns (ListScanConfigsResponse) {
|
|
119
|
-
option (google.api.http) = {
|
|
120
|
-
get: "/v1beta1/{parent=projects/*}/scanConfigs"
|
|
121
|
-
};
|
|
122
|
-
option (google.api.method_signature) = "parent,filter";
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
// Updates the specified scan configuration.
|
|
126
|
-
rpc UpdateScanConfig(UpdateScanConfigRequest) returns (ScanConfig) {
|
|
127
|
-
option (google.api.http) = {
|
|
128
|
-
put: "/v1beta1/{name=projects/*/scanConfigs/*}"
|
|
129
|
-
body: "scan_config"
|
|
130
|
-
};
|
|
131
|
-
option (google.api.method_signature) = "name,scan_config";
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
// A scan configuration specifies whether Cloud components in a project have a
|
|
136
|
-
// particular type of analysis being run. For example, it can configure whether
|
|
137
|
-
// vulnerability scanning is being done on Docker images or not.
|
|
138
|
-
message ScanConfig {
|
|
139
|
-
option (google.api.resource) = {
|
|
140
|
-
type: "containeranalysis.googleapis.com/ScanConfig"
|
|
141
|
-
pattern: "projects/{project}/scanConfigs/{scan_config}"
|
|
142
|
-
};
|
|
143
|
-
|
|
144
|
-
// Output only. The name of the scan configuration in the form of
|
|
145
|
-
// `projects/[PROJECT_ID]/scanConfigs/[SCAN_CONFIG_ID]`.
|
|
146
|
-
string name = 1;
|
|
147
|
-
|
|
148
|
-
// Output only. A human-readable description of what the scan configuration
|
|
149
|
-
// does.
|
|
150
|
-
string description = 2;
|
|
151
|
-
|
|
152
|
-
// Whether the scan is enabled.
|
|
153
|
-
bool enabled = 3;
|
|
154
|
-
|
|
155
|
-
// Output only. The time this scan config was created.
|
|
156
|
-
google.protobuf.Timestamp create_time = 4;
|
|
157
|
-
|
|
158
|
-
// Output only. The time this scan config was last updated.
|
|
159
|
-
google.protobuf.Timestamp update_time = 5;
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
// Request to get a scan configuration.
|
|
163
|
-
message GetScanConfigRequest {
|
|
164
|
-
// Required. The name of the scan configuration in the form of
|
|
165
|
-
// `projects/[PROJECT_ID]/scanConfigs/[SCAN_CONFIG_ID]`.
|
|
166
|
-
string name = 1 [
|
|
167
|
-
(google.api.field_behavior) = REQUIRED,
|
|
168
|
-
(google.api.resource_reference) = {
|
|
169
|
-
type: "containeranalysis.googleapis.com/ScanConfig"
|
|
170
|
-
}
|
|
171
|
-
];
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
// Request to list scan configurations.
|
|
175
|
-
message ListScanConfigsRequest {
|
|
176
|
-
// Required. The name of the project to list scan configurations for in the form of
|
|
177
|
-
// `projects/[PROJECT_ID]`.
|
|
178
|
-
string parent = 1 [
|
|
179
|
-
(google.api.field_behavior) = REQUIRED,
|
|
180
|
-
(google.api.resource_reference) = {
|
|
181
|
-
type: "cloudresourcemanager.googleapis.com/Project"
|
|
182
|
-
}
|
|
183
|
-
];
|
|
184
|
-
|
|
185
|
-
// Required. The filter expression.
|
|
186
|
-
string filter = 2 [(google.api.field_behavior) = REQUIRED];
|
|
187
|
-
|
|
188
|
-
// The number of scan configs to return in the list.
|
|
189
|
-
int32 page_size = 3;
|
|
190
|
-
|
|
191
|
-
// Token to provide to skip to a particular spot in the list.
|
|
192
|
-
string page_token = 4;
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
// Response for listing scan configurations.
|
|
196
|
-
message ListScanConfigsResponse {
|
|
197
|
-
// The scan configurations requested.
|
|
198
|
-
repeated ScanConfig scan_configs = 1;
|
|
199
|
-
|
|
200
|
-
// The next pagination token in the list response. It should be used as
|
|
201
|
-
// `page_token` for the following request. An empty value means no more
|
|
202
|
-
// results.
|
|
203
|
-
string next_page_token = 2;
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
// A request to update a scan configuration.
|
|
207
|
-
message UpdateScanConfigRequest {
|
|
208
|
-
// Required. The name of the scan configuration in the form of
|
|
209
|
-
// `projects/[PROJECT_ID]/scanConfigs/[SCAN_CONFIG_ID]`.
|
|
210
|
-
string name = 1 [
|
|
211
|
-
(google.api.field_behavior) = REQUIRED,
|
|
212
|
-
(google.api.resource_reference) = {
|
|
213
|
-
type: "containeranalysis.googleapis.com/ScanConfig"
|
|
214
|
-
}
|
|
215
|
-
];
|
|
216
|
-
|
|
217
|
-
// Required. The updated scan configuration.
|
|
218
|
-
ScanConfig scan_config = 2 [(google.api.field_behavior) = REQUIRED];
|
|
219
109
|
}
|
|
@@ -33,6 +33,7 @@ import "grafeas/v1/dsse_attestation.proto";
|
|
|
33
33
|
import "grafeas/v1/image.proto";
|
|
34
34
|
import "grafeas/v1/package.proto";
|
|
35
35
|
import "grafeas/v1/upgrade.proto";
|
|
36
|
+
import "grafeas/v1/vex.proto";
|
|
36
37
|
import "grafeas/v1/vulnerability.proto";
|
|
37
38
|
|
|
38
39
|
option go_package = "google.golang.org/genproto/googleapis/grafeas/v1;grafeas";
|
|
@@ -314,6 +315,8 @@ message Note {
|
|
|
314
315
|
grafeas.v1.ComplianceNote compliance = 18;
|
|
315
316
|
// A note describing a dsse attestation note.
|
|
316
317
|
grafeas.v1.DSSEAttestationNote dsse_attestation = 19;
|
|
318
|
+
// A note describing a vulnerability assessment.
|
|
319
|
+
grafeas.v1.VulnerabilityAssessmentNote vulnerability_assessment = 20;
|
|
317
320
|
}
|
|
318
321
|
}
|
|
319
322
|
|
|
@@ -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
|
}
|