GoogleCloudPlatform / pbmm-on-gcp-onboarding

GCP Canadian Public Sector Landing Zone overlay on top of the TEF via CFT modules - a secure cloud foundation
https://cloud.google.com/architecture/security-foundations
Apache License 2.0
45 stars 56 forks source link

Introduce 2024 light - a secondary Landing Zone based on the GCP Enterprise Setup with Fortigate IaaS NGFW overlay - both in terraform #351

Closed fmichaelobrien closed 2 months ago

fmichaelobrien commented 8 months ago

20240402 TEF work not in https://github.com/terraform-google-modules/terraform-example-foundation/issues/1133 20240206 #345 superceeds this one Historical Follow previous cloud-setup investigation runs at

Artifacts

Requirements: We have a a required for a light landing zone

The enterprise setup is a Google supported LZ The fortigate TF overlay is a Fortinet supported example

1 - use the foundations setup https://github.com/CloudLandingZone/google-cloud-enterprise-setup-checklist Describing https://cloud.google.com/docs/enterprise/setup-checklist 2 - overlay the working unmodified fortigate cluster (reattach peering to the setup above…) https://github.com/fortinet/fortigate-tutorial-gcp/tree/main/terraform

Architecture

Base Landing Zone

Screenshot 2024-03-04 at 12 48 02 PM

Merged with Fortigate LB sandwich cluster - re-peer with above

Screenshot 2024-03-04 at 12 47 18 PM

This superseeds #345 20240206 #345 superceeds this one

obriensystems commented 8 months ago

Start foundation setup on a relatively new org - one where no terraform or kcc config controller lz has been deployed yet

Output Artifacts

Prepare Before

1 - Create an Organization

Cloud Setup | Overview

hit "Set Up Foundation"

Screenshot 2024-03-04 at 14 27 32

start 1125

2 - Configure Users and Groups

IAM state before

Screenshot 2024-03-05 at 11 33 29
super-admin has
Folder Admin
Organization Administrator

domain has
Billing Account Creator
Project Creator
Screenshot 2024-03-05 at 11 25 36 Screenshot 2024-03-05 at 11 25 59 Screenshot 2024-03-05 at 11 26 40

check errors

Screenshot 2024-03-05 at 11 27 03

Check groups https://admin.google.com/ac/groups https://console.cloud.google.com/iam-admin/groups?organizationId=630259462753&supportedpurview=project

Screenshot 2024-03-05 at 11 29 00

Output: 8 of 10 IAM groups

Screenshot 2024-03-05 at 11 28 05

missing gcp-logging-viewers@obrienlabs.app gcp-billing-admins@obrienlabs.app

3 - Assign Administrative access

Triage gcp-logging-viewers@obrienlabs.app gcp-billing-admins@obrienlabs.app

retry

Screenshot 2024-03-05 at 11 36 58 Screenshot 2024-03-05 at 11 37 25 Screenshot 2024-03-05 at 11 37 50 Screenshot 2024-03-05 at 11 38 09

ignore warning - buganizer sent Still getting a warning - checking groups

Screenshot 2024-03-05 at 11 39 08

create admin users

Screenshot 2024-03-05 at 11 56 40

skip - just add yourself

Screenshot 2024-03-05 at 11 57 22

Add admin users to group

i am already in the groups - continuing

Screenshot 2024-03-05 at 11 58 38 Screenshot 2024-03-05 at 11 59 08 Screenshot 2024-03-05 at 11 59 22 Screenshot 2024-03-05 at 11 59 51

Grant administrative access already ok - I have Organization Administrator by default

Screenshot 2024-03-05 at 12 09 02

missing groups - even though they exist

Screenshot 2024-03-05 at 12 09 39

Groups exist (see left and right) - but are not getting picked up in the wizard in the middle screen

Screenshot 2024-03-05 at 12 14 19

Fix: looks like IAM roles were not added to the groups - hence at least one role is required for them to show up in IAM

Screenshot 2024-03-05 at 12 35 20

except that we have not done that step yet of adding roles attempting to add a role will work

Screenshot 2024-03-05 at 12 37 53

I cannot discard though and continue

Discard IAM policies for missing groups
If you continue, access recommendations for the following missing groups will be discarded:

gcp-organization-admins@obrienlabs.app
gcp-vpc-network-admins@obrienlabs.app
gcp-logging-admins@obrienlabs.app
gcp-security-admins@obrienlabs.app
gcp-devops@obrienlabs.app
By discarding these IAM policies, you need to manually configure similar access we recommended for comparable groups in order to complete your foundation setup.
Screenshot 2024-03-05 at 12 40 42

4 - setup billing

obriensystems commented 8 months ago

Buglist 2 - users and groups

later in step 3 Groups exist (see left and right) - but are not getting picked up in the wizard in the middle screen

Screenshot 2024-03-05 at 12 14 19

Fix: looks like IAM roles were not added to the groups - hence at least one role is required for them to show up in IAM

Screenshot 2024-03-05 at 12 35 20

except that we have not done that step yet of adding roles attempting to add a role will work

Screenshot 2024-03-05 at 12 37 53

I cannot discard though and continue

Discard IAM policies for missing groups
If you continue, access recommendations for the following missing groups will be discarded:

gcp-organization-admins@obrienlabs.app
gcp-vpc-network-admins@obrienlabs.app
gcp-logging-admins@obrienlabs.app
gcp-security-admins@obrienlabs.app
gcp-devops@obrienlabs.app
By discarding these IAM policies, you need to manually configure similar access we recommended for comparable groups in order to complete your foundation setup.
Screenshot 2024-03-05 at 12 40 42
github-actions[bot] commented 2 months ago

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days