Add support for security command center mute rules in module organization, folder and project (#3694)
This commit is contained in:
committed by
GitHub
parent
0e760c3015
commit
2af44b0651
34
tests/modules/folder/examples/scc-mute-configs.yaml
Normal file
34
tests/modules/folder/examples/scc-mute-configs.yaml
Normal file
@@ -0,0 +1,34 @@
|
||||
# Copyright 2025 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.
|
||||
|
||||
|
||||
values:
|
||||
module.folder.google_folder.folder[0]:
|
||||
deletion_protection: false
|
||||
display_name: Folder name
|
||||
parent: folders/1122334455
|
||||
tags: null
|
||||
timeouts: null
|
||||
module.folder.google_scc_v2_folder_mute_config.scc_mute_configs["muteHighSeverity"]:
|
||||
description: Mute high severity findings
|
||||
filter: severity="HIGH"
|
||||
location: global
|
||||
mute_config_id: muteHighSeverity
|
||||
type: DYNAMIC
|
||||
|
||||
counts:
|
||||
google_folder: 1
|
||||
google_scc_v2_folder_mute_config: 1
|
||||
modules: 1
|
||||
resources: 2
|
||||
27
tests/modules/organization/examples/scc-mute-configs.yaml
Normal file
27
tests/modules/organization/examples/scc-mute-configs.yaml
Normal file
@@ -0,0 +1,27 @@
|
||||
# Copyright 2025 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.
|
||||
|
||||
values:
|
||||
module.org.google_scc_v2_organization_mute_config.scc_mute_configs["muteHighSeverity"]:
|
||||
description: Mute high severity findings
|
||||
filter: severity="HIGH"
|
||||
location: global
|
||||
mute_config_id: muteHighSeverity
|
||||
organization: '1122334455'
|
||||
type: DYNAMIC
|
||||
|
||||
counts:
|
||||
google_scc_v2_organization_mute_config: 1
|
||||
modules: 1
|
||||
resources: 1
|
||||
44
tests/modules/project/examples/scc-mute-configs.yaml
Normal file
44
tests/modules/project/examples/scc-mute-configs.yaml
Normal file
@@ -0,0 +1,44 @@
|
||||
# Copyright 2025 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.
|
||||
|
||||
values:
|
||||
module.project.google_project.project[0]:
|
||||
auto_create_network: false
|
||||
billing_account: 123456-123456-123456
|
||||
deletion_policy: DELETE
|
||||
effective_labels:
|
||||
goog-terraform-provisioned: 'true'
|
||||
folder_id: '1122334455'
|
||||
labels: null
|
||||
name: test-project
|
||||
org_id: null
|
||||
project_id: test-project
|
||||
tags: null
|
||||
terraform_labels:
|
||||
goog-terraform-provisioned: 'true'
|
||||
timeouts: null
|
||||
module.project.google_scc_v2_project_mute_config.scc_mute_configs["muteHighSeverity"]:
|
||||
description: Mute high severity findings
|
||||
filter: severity="HIGH"
|
||||
location: global
|
||||
mute_config_id: muteHighSeverity
|
||||
project: test-project
|
||||
timeouts: null
|
||||
type: DYNAMIC
|
||||
|
||||
counts:
|
||||
google_project: 1
|
||||
google_scc_v2_project_mute_config: 1
|
||||
modules: 1
|
||||
resources: 2
|
||||
Reference in New Issue
Block a user