Files
hunfabric/tests/modules/vpc_sc/examples/factory.yaml
karpok78 07a70eedb5 Add perimeter factory to modules/vpc-sc (#2919)
* Add perimeter factory

Proposal to allow the management of perimeters in yaml factory.
Project discovery is extended to multiple perimeters with query filtering.

Doc clean uo

* default perimeters desc to null

* linting

* Revert changes to FAST

* Remove test and schema from FAST

* Align vars and perimeter factory

* Interpolate resource_sets in more places

* Silence linter

* Update README.md

---------

Co-authored-by: Julio Castillo <jccb@google.com>
Co-authored-by: Ludovico Magnocavallo <ludo@qix.it>
2025-02-22 07:49:05 +01:00

129 lines
3.9 KiB
YAML

# 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.test.google_access_context_manager_access_level.basic["geo-it"]:
basic:
- combining_function: AND
conditions:
- device_policy: []
ip_subnetworks: []
members: []
negate: null
regions:
- IT
required_access_levels: []
vpc_network_sources: []
custom: []
description: null
name: accessPolicies/12345678/accessLevels/geo-it
parent: accessPolicies/12345678
timeouts: null
title: geo-it
module.test.google_access_context_manager_access_level.basic["identity-user1"]:
basic:
- combining_function: AND
conditions:
- device_policy: []
ip_subnetworks: []
members:
- user:user1@example.com
negate: null
regions: []
required_access_levels: []
vpc_network_sources: []
custom: []
description: null
name: accessPolicies/12345678/accessLevels/identity-user1
parent: accessPolicies/12345678
timeouts: null
title: identity-user1
module.test.google_access_context_manager_service_perimeter.regular["perimeter-north"]:
description: Main perimeter
name: accessPolicies/12345678/servicePerimeters/perimeter-north
parent: accessPolicies/12345678
perimeter_type: PERIMETER_TYPE_REGULAR
spec: []
status:
- egress_policies:
- egress_from:
- identities:
- serviceAccount:bar@myproject.iam.gserviceaccount.com
- serviceAccount:foo@myproject.iam.gserviceaccount.com
identity_type: null
source_restriction: SOURCE_RESTRICTION_DISABLED
sources: []
egress_to:
- external_resources: null
operations:
- method_selectors:
- method: '*'
permission: null
service_name: storage.googleapis.com
resources:
- projects/123456789
ingress_policies:
- ingress_from:
- identities:
- serviceAccount:test-tf-0@myproject.iam.gserviceaccount.com
- serviceAccount:test-tf-1@myproject.iam.gserviceaccount.com
identity_type: null
sources:
- access_level: '*'
resource: null
ingress_to:
- operations:
- method_selectors:
- method: ProjectsService.Get
permission: null
- method: RegionsService.Get
permission: null
service_name: compute.googleapis.com
resources:
- '*'
- ingress_from:
- identities:
- serviceAccount:test-tf@myproject.iam.gserviceaccount.com
identity_type: null
sources:
- resource: null
ingress_to:
- operations:
- method_selectors: []
service_name: '*'
resources:
- projects/1234567890
- projects/321
- projects/654
resources:
- projects/1111
- projects/2222
restricted_services:
- storage.googleapis.com
vpc_accessible_services:
- allowed_services:
- storage.googleapis.com
enable_restriction: true
timeouts: null
title: perimeter-north
use_explicit_dry_run_spec: false
counts:
google_access_context_manager_access_level: 2
google_access_context_manager_service_perimeter: 1
modules: 1
resources: 3
outputs: {}