Skip to content

Commit 934c300

Browse files
feat: [securitycenter] Add Backup DR field to finding's list of attributes (#5047)
* feat: Add application field to finding's list of attributes PiperOrigin-RevId: 606675743 Source-Link: googleapis/googleapis@8e7f6bb Source-Link: googleapis/googleapis-gen@e65f14e Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXNlY3VyaXR5Y2VudGVyLy5Pd2xCb3QueWFtbCIsImgiOiJlNjVmMTRlNDkxOTgyYTFhZWYyZWNmYzQxOTQwYjA0YjlkZTc4MDY5In0= * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * feat: Add Backup DR field to finding's list of attributes PiperOrigin-RevId: 609040971 Source-Link: googleapis/googleapis@698ad3d Source-Link: googleapis/googleapis-gen@d1aef24 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXNlY3VyaXR5Y2VudGVyLy5Pd2xCb3QueWFtbCIsImgiOiJkMWFlZjI0MDYzNjliNzBlNTU1Y2MwYTk5ZTZlNzgzYWI1ZTg5OGRjIn0= * 🦉 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>
1 parent 63db144 commit 934c300

7 files changed

Lines changed: 1216 additions & 0 deletions

File tree

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+
}
Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
// Copyright 2024 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+
import "google/protobuf/timestamp.proto";
20+
21+
option csharp_namespace = "Google.Cloud.SecurityCenter.V1";
22+
option go_package = "cloud.google.com/go/securitycenter/apiv1/securitycenterpb;securitycenterpb";
23+
option java_multiple_files = true;
24+
option java_outer_classname = "BackupDisasterRecoveryProto";
25+
option java_package = "com.google.cloud.securitycenter.v1";
26+
option php_namespace = "Google\\Cloud\\SecurityCenter\\V1";
27+
option ruby_package = "Google::Cloud::SecurityCenter::V1";
28+
29+
// Information related to Google Cloud Backup and DR Service findings.
30+
message BackupDisasterRecovery {
31+
// The name of a Backup and DR template which comprises one or more backup
32+
// policies. See the [Backup and DR
33+
// documentation](https://cloud.google.com/backup-disaster-recovery/docs/concepts/backup-plan#temp)
34+
// for more information. For example, `snap-ov`.
35+
string backup_template = 1;
36+
37+
// The names of Backup and DR policies that are associated with a template
38+
// and that define when to run a backup, how frequently to run a backup, and
39+
// how long to retain the backup image. For example, `onvaults`.
40+
repeated string policies = 2;
41+
42+
// The name of a Backup and DR host, which is managed by the backup and
43+
// recovery appliance and known to the management console. The host can be of
44+
// type Generic (for example, Compute Engine, SQL Server, Oracle DB, SMB file
45+
// system, etc.), vCenter, or an ESX server. See the [Backup and DR
46+
// documentation on
47+
// hosts](https://cloud.google.com/backup-disaster-recovery/docs/configuration/manage-hosts-and-their-applications)
48+
// for more information. For example, `centos7-01`.
49+
string host = 3;
50+
51+
// The names of Backup and DR applications. An application is a VM, database,
52+
// or file system on a managed host monitored by a backup and recovery
53+
// appliance. For example, `centos7-01-vol00`, `centos7-01-vol01`,
54+
// `centos7-01-vol02`.
55+
repeated string applications = 4;
56+
57+
// The name of the Backup and DR storage pool that the backup and recovery
58+
// appliance is storing data in. The storage pool could be of type Cloud,
59+
// Primary, Snapshot, or OnVault. See the [Backup and DR documentation on
60+
// storage
61+
// pools](https://cloud.google.com/backup-disaster-recovery/docs/concepts/storage-pools).
62+
// For example, `DiskPoolOne`.
63+
string storage_pool = 5;
64+
65+
// The names of Backup and DR advanced policy options of a policy applying to
66+
// an application. See the [Backup and DR documentation on policy
67+
// options](https://cloud.google.com/backup-disaster-recovery/docs/create-plan/policy-settings).
68+
// For example, `skipofflineappsincongrp, nounmap`.
69+
repeated string policy_options = 6;
70+
71+
// The name of the Backup and DR resource profile that specifies the storage
72+
// media for backups of application and VM data. See the [Backup and DR
73+
// documentation on
74+
// profiles](https://cloud.google.com/backup-disaster-recovery/docs/concepts/backup-plan#profile).
75+
// For example, `GCP`.
76+
string profile = 7;
77+
78+
// The name of the Backup and DR appliance that captures, moves, and manages
79+
// the lifecycle of backup data. For example, `backup-server-57137`.
80+
string appliance = 8;
81+
82+
// The backup type of the Backup and DR image.
83+
// For example, `Snapshot`, `Remote Snapshot`, `OnVault`.
84+
string backup_type = 9;
85+
86+
// The timestamp at which the Backup and DR backup was created.
87+
google.protobuf.Timestamp backup_create_time = 10;
88+
}

packages/google-cloud-securitycenter/protos/google/cloud/securitycenter/v1/finding.proto

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ 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";
23+
import "google/cloud/securitycenter/v1/backup_disaster_recovery.proto";
2224
import "google/cloud/securitycenter/v1/cloud_dlp_data_profile.proto";
2325
import "google/cloud/securitycenter/v1/cloud_dlp_inspection.proto";
2426
import "google/cloud/securitycenter/v1/compliance.proto";
@@ -359,4 +361,10 @@ message Finding {
359361

360362
// Signature of the kernel rootkit.
361363
KernelRootkit kernel_rootkit = 50;
364+
365+
// Represents an application associated with the finding.
366+
Application application = 53;
367+
368+
// Fields related to Backup and DR findings.
369+
BackupDisasterRecovery backup_disaster_recovery = 55;
362370
}

0 commit comments

Comments
 (0)