Skip to content

Commit

Permalink
feat: Add connection and description field to finding's list of attri…
Browse files Browse the repository at this point in the history
…butes (#479)

* feat: Add connection and description field to finding's list of attributes

PiperOrigin-RevId: 442589635

Source-Link: googleapis/googleapis@50fc834

Source-Link: googleapis/googleapis-gen@86cc920
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiODZjYzkyMDUyOWIwODc3YmE4MTIxNmI1MmQ5OTVjZTRkZDJmOGI0ZiJ9

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
  • Loading branch information
gcf-owl-bot[bot] and gcf-owl-bot[bot] authored Apr 20, 2022
1 parent 77f24ae commit a43b6fc
Show file tree
Hide file tree
Showing 21 changed files with 851 additions and 185 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
// Copyright 2022 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

syntax = "proto3";

package google.cloud.securitycenter.v1;

option csharp_namespace = "Google.Cloud.SecurityCenter.V1";
option go_package = "google.golang.org/genproto/googleapis/cloud/securitycenter/v1;securitycenter";
option java_multiple_files = true;
option java_outer_classname = "ConnectionProto";
option java_package = "com.google.cloud.securitycenter.v1";
option php_namespace = "Google\\Cloud\\SecurityCenter\\V1";
option ruby_package = "Google::Cloud::SecurityCenter::V1";

// Contains information about the IP connection associated with the finding.
message Connection {
// IANA Internet Protocol Number such as TCP(6) and UDP(17).
enum Protocol {
// Unspecified protocol (not HOPOPT).
PROTOCOL_UNSPECIFIED = 0;

// Internet Control Message Protocol.
ICMP = 1;

// Transmission Control Protocol.
TCP = 6;

// User Datagram Protocol.
UDP = 17;

// Generic Routing Encapsulation.
GRE = 47;

// Encap Security Payload.
ESP = 50;
}

// Destination IP address. Not present for sockets that are listening and not
// connected.
string destination_ip = 1;

// Destination port. Not present for sockets that are listening and not
// connected.
int32 destination_port = 2;

// Source IP address.
string source_ip = 3;

// Source port.
int32 source_port = 4;

// IANA Internet Protocol Number such as TCP(6) and UDP(17).
Protocol protocol = 5;
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ package google.cloud.securitycenter.v1;
import "google/api/field_behavior.proto";
import "google/api/resource.proto";
import "google/cloud/securitycenter/v1/access.proto";
import "google/cloud/securitycenter/v1/connection.proto";
import "google/cloud/securitycenter/v1/external_system.proto";
import "google/cloud/securitycenter/v1/iam_binding.proto";
import "google/cloud/securitycenter/v1/indicator.proto";
Expand Down Expand Up @@ -264,12 +265,18 @@ message Finding {
// caller, which method was accessed, from where, etc.
Access access = 26;

// Contains information about the IP connection associated with the finding.
repeated Connection connections = 31;

// First known as mute_annotation. Records additional information about the
// mute operation e.g. mute config that muted the finding, user who muted the
// finding, etc. Unlike other attributes of a finding, a finding provider
// shouldn't set the value of mute.
string mute_initiator = 28;

// Contains more detail about the finding.
string description = 37;

// Represents IAM bindings associated with the Finding.
repeated IamBinding iam_bindings = 39;

Expand Down
Loading

0 comments on commit a43b6fc

Please sign in to comment.