-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path03_iam_model.auto.tfvars
More file actions
182 lines (146 loc) · 5.55 KB
/
Copy path03_iam_model.auto.tfvars
File metadata and controls
182 lines (146 loc) · 5.55 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
# Generated by Merlin Studio (https://site.merlin-studio.cloud). Licensed under CC BY-ND 4.0.
# ============================================================================
# IDENTITY PROVIDER CONFIGURATION
# ============================================================================
# Primary identity source for GCP access
identity_provider = "google_workspace"
# ============================================================================
# ADMINISTRATIVE GROUPS
# Organization-level access management groups
# ============================================================================
# Organization IAM bindings (derived from admin groups)
org_iam = {
"roles/resourcemanager.organizationAdmin" = [
"group:gcp-admins@acme.com",
]
"roles/billing.admin" = [
"group:gcp-admins@acme.com",
]
}
# Admin groups configuration for reference and automation
admin_groups = {
"org_admin" = {
name = "gcp-admins@acme.com"
purpose = "org_admin"
roles = [
"roles/resourcemanager.organizationAdmin",
"roles/billing.admin"
]
description = "Cloud administrators"
}
}
# ============================================================================
# SERVICE ACCOUNTS
# Bootstrap and automation service accounts
# ============================================================================
service_accounts = {
"terraform-sa" = {
display_name = "Terraform Automation"
purpose = "terraform_org"
project = "prj-shared-services"
disable_key_creation = true
# IAM roles granted to this service account
roles = [
"roles/resourcemanager.organizationAdmin",
"roles/iam.organizationRoleAdmin",
"roles/orgpolicy.policyAdmin",
"roles/billing.admin"
]
# Principals allowed to impersonate this service account
impersonators = [
"group:gcp-admins@acme.com"
]
}
}
# ============================================================================
# WORKLOAD IDENTITY FEDERATION
# Keyless authentication for external workloads
# ============================================================================
# Workload Identity Federation not configured
# workload_identity_pools = {}
# ============================================================================
# SERVICE ACCOUNT KEY POLICY
# Organization policy for SA key creation
# ============================================================================
service_account_key_policy = "deny_all"
# Organization policy constraint for SA key creation
org_policy_sa_key_creation = {
"constraints/iam.disableServiceAccountKeyCreation" = {
rules = [{ enforce = true }]
}
"constraints/iam.disableServiceAccountKeyUpload" = {
rules = [{ enforce = true }]
}
}
# ============================================================================
# DOMAIN RESTRICTED SHARING
# Restrict IAM grants to specific domains
# ============================================================================
domain_restricted_sharing = {
enabled = true
allowed_domains = [
"acme.com"
]
allow_google_managed = true
}
# Organization policy for domain restriction
org_policy_domain_restriction = {
"constraints/iam.allowedPolicyMemberDomains" = {
rules = [
{
allow = {
values = [
"is:acme.com"
]
}
}
]
}
}
# ============================================================================
# API KEY MANAGEMENT POLICY (CIS GCP 1.12-1.15)
# ============================================================================
# ============================================================================
# BREAK-GLASS ACCOUNTS
# Emergency access for disaster recovery
# ============================================================================
# Break-glass accounts not configured
# RECOMMENDATION: Configure at least one break-glass account for emergency access
# break_glass_accounts = {}
# ============================================================================
# PRIVILEGED ACCESS MANAGEMENT (PAM)
# Just-in-time elevated access with approvals
# ============================================================================
# Privileged Access Management not enabled
privileged_access_management = {
enabled = false
}
# ============================================================================
# IAM RECOMMENDER
# Automated permission recommendations
# ============================================================================
iam_recommender = {
enabled = true
auto_apply = false
notification_email = ""
}
# ============================================================================
# CUSTOM ROLES
# Organization-specific custom IAM roles
# ============================================================================
# No custom roles defined
# custom_roles = {}
# ============================================================================
# DERIVED VALUES - Computed for reference
# ============================================================================
# All admin group emails for easy reference
# Service account emails
# Identity provider type
# Compliance-driven settings
# ============================================================================
# Next Steps:
# 1. Create admin groups in your identity provider before applying
# 2. Review service account permissions follow least-privilege
# 3. Configure Workload Identity Federation for external workloads
# 4. Proceed to 04_networking.tfvars for network configuration
# ============================================================================