Files
hunfabric/tests/modules/folder/context.yaml
Julio Castillo 48f6b4cd49 Add PAM support (#3438)
* PAM first pass

* Add factory and extend to organization

* Extend to project, add examples

* Add additionalProperties to all objects

* Fix boilerplate

* Expose pam_entitlements to project-factory

* Fix readme

* Move entitlements to second folder/project pass

* extend tests

* Fix readme

* Remove timeouts from inventories
2025-10-20 12:50:37 +00:00

91 lines
3.0 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:
google_folder.folder[0]:
deletion_protection: false
display_name: Test Context
parent: organizations/1234567890
tags: null
google_folder_iam_binding.authoritative["$custom_roles:myrole_one"]:
condition: []
members:
- group:test-group@example.com
- user:test-user@example.com
role: organizations/366118655033/roles/myRoleOne
google_folder_iam_binding.authoritative["roles/owner"]:
condition: []
members:
- group:test-group@example.com
role: roles/owner
google_folder_iam_binding.authoritative["roles/viewer"]:
condition: []
members:
- serviceAccount:test@test-project.iam.gserviceaccount.com
role: roles/viewer
google_folder_iam_binding.bindings["myrole_two"]:
condition:
- description: null
expression: resource.matchTag('1234567890/environment', 'development')
title: Test
members:
- serviceAccount:test@test-project.iam.gserviceaccount.com
role: organizations/366118655033/roles/myRoleTwo
google_folder_iam_member.bindings["myrole_two"]:
condition: []
member: user:test-user@example.com
role: organizations/366118655033/roles/myRoleTwo
google_privileged_access_manager_entitlement.default["net-admins"]:
additional_notification_targets: []
approval_workflow:
- manual_approvals:
- require_approver_justification: true
steps:
- approvals_needed: 1
approver_email_recipients: null
approvers:
- principals:
- group:test-group@example.com
eligible_users:
- principals:
- group:test-group@example.com
entitlement_id: net-admins
location: global
max_request_duration: 3600s
privileged_access:
- gcp_iam_access:
- resource_type: cloudresourcemanager.googleapis.com/Folder
role_bindings:
- condition_expression: null
role: roles/compute.networkAdmin
- condition_expression: null
role: roles/compute.admin
- condition_expression: null
role: organizations/366118655033/roles/myRoleTwo
requester_justification_config:
- not_mandatory: []
unstructured:
- {}
google_tags_tag_binding.binding["foo"]:
tag_value: tagValues/1234567890
counts:
google_folder: 1
google_folder_iam_binding: 4
google_folder_iam_member: 1
google_privileged_access_manager_entitlement: 1
google_tags_tag_binding: 1
modules: 0
resources: 8