Skip to content

Commit 8e7f6bb

Browse files
Google APIscopybara-github
authored andcommitted
feat: Add application field to finding's list of attributes
PiperOrigin-RevId: 606675743
1 parent 3d8fdcc commit 8e7f6bb

3 files changed

Lines changed: 41 additions & 0 deletions

File tree

google/cloud/securitycenter/v1/BUILD.bazel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ proto_library(
2222
name = "securitycenter_proto",
2323
srcs = [
2424
"access.proto",
25+
"application.proto",
2526
"asset.proto",
2627
"bigquery_export.proto",
2728
"cloud_dlp_data_profile.proto",
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
// Copyright 2023 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 = "cloud.google.com/go/securitycenter/apiv1/securitycenterpb;securitycenterpb";
21+
option java_multiple_files = true;
22+
option java_outer_classname = "ApplicationProto";
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+
// Represents an application associated with a finding.
28+
message Application {
29+
// The base URI that identifies the network location of the application in
30+
// which the vulnerability was detected. For example, `http://example.com`.
31+
string base_uri = 1;
32+
33+
// The full URI with payload that can be used to reproduce the
34+
// vulnerability. For example, `http://example.com?p=aMmYgI6H`.
35+
string full_uri = 2;
36+
}

google/cloud/securitycenter/v1/finding.proto

Lines changed: 4 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/application.proto";
2223
import "google/cloud/securitycenter/v1/cloud_dlp_data_profile.proto";
2324
import "google/cloud/securitycenter/v1/cloud_dlp_inspection.proto";
2425
import "google/cloud/securitycenter/v1/compliance.proto";
@@ -359,4 +360,7 @@ message Finding {
359360

360361
// Signature of the kernel rootkit.
361362
KernelRootkit kernel_rootkit = 50;
363+
364+
// Represents an application associated with the finding.
365+
Application application = 53;
362366
}

0 commit comments

Comments
 (0)