Skip to content

Commit 50fc834

Browse files
Google APIscopybara-github
authored andcommitted
feat: Add connection and description field to finding's list of attributes
PiperOrigin-RevId: 442589635
1 parent 740f072 commit 50fc834

4 files changed

Lines changed: 189 additions & 102 deletions

File tree

google/cloud/securitycenter/v1/BUILD.bazel

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,12 @@ proto_library(
5454
"access.proto",
5555
"asset.proto",
5656
"bigquery_export.proto",
57+
"connection.proto",
5758
"external_system.proto",
5859
"finding.proto",
5960
"folder.proto",
60-
"indicator.proto",
6161
"iam_binding.proto",
62+
"indicator.proto",
6263
"mitre_attack.proto",
6364
"mute_config.proto",
6465
"notification_config.proto",
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
// Copyright 2022 Google LLC
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 google.cloud.securitycenter.v1;
18+
19+
option csharp_namespace = "Google.Cloud.SecurityCenter.V1";
20+
option go_package = "google.golang.org/genproto/googleapis/cloud/securitycenter/v1;securitycenter";
21+
option java_multiple_files = true;
22+
option java_outer_classname = "ConnectionProto";
23+
option java_package = "com.google.cloud.securitycenter.v1";
24+
option php_namespace = "Google\\Cloud\\SecurityCenter\\V1";
25+
option ruby_package = "Google::Cloud::SecurityCenter::V1";
26+
27+
// Contains information about the IP connection associated with the finding.
28+
message Connection {
29+
// IANA Internet Protocol Number such as TCP(6) and UDP(17).
30+
enum Protocol {
31+
// Unspecified protocol (not HOPOPT).
32+
PROTOCOL_UNSPECIFIED = 0;
33+
34+
// Internet Control Message Protocol.
35+
ICMP = 1;
36+
37+
// Transmission Control Protocol.
38+
TCP = 6;
39+
40+
// User Datagram Protocol.
41+
UDP = 17;
42+
43+
// Generic Routing Encapsulation.
44+
GRE = 47;
45+
46+
// Encap Security Payload.
47+
ESP = 50;
48+
}
49+
50+
// Destination IP address. Not present for sockets that are listening and not
51+
// connected.
52+
string destination_ip = 1;
53+
54+
// Destination port. Not present for sockets that are listening and not
55+
// connected.
56+
int32 destination_port = 2;
57+
58+
// Source IP address.
59+
string source_ip = 3;
60+
61+
// Source port.
62+
int32 source_port = 4;
63+
64+
// IANA Internet Protocol Number such as TCP(6) and UDP(17).
65+
Protocol protocol = 5;
66+
}

google/cloud/securitycenter/v1/finding.proto

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ package google.cloud.securitycenter.v1;
1919
import "google/api/field_behavior.proto";
2020
import "google/api/resource.proto";
2121
import "google/cloud/securitycenter/v1/access.proto";
22+
import "google/cloud/securitycenter/v1/connection.proto";
2223
import "google/cloud/securitycenter/v1/external_system.proto";
2324
import "google/cloud/securitycenter/v1/iam_binding.proto";
2425
import "google/cloud/securitycenter/v1/indicator.proto";
@@ -264,12 +265,18 @@ message Finding {
264265
// caller, which method was accessed, from where, etc.
265266
Access access = 26;
266267

268+
// Contains information about the IP connection associated with the finding.
269+
repeated Connection connections = 31;
270+
267271
// First known as mute_annotation. Records additional information about the
268272
// mute operation e.g. mute config that muted the finding, user who muted the
269273
// finding, etc. Unlike other attributes of a finding, a finding provider
270274
// shouldn't set the value of mute.
271275
string mute_initiator = 28;
272276

277+
// Contains more detail about the finding.
278+
string description = 37;
279+
273280
// Represents IAM bindings associated with the Finding.
274281
repeated IamBinding iam_bindings = 39;
275282

0 commit comments

Comments
 (0)