Exams / GCP-PCSE / D1 Configuring access
D1.1
Configuring access (part 1)
- Exam domain: Configuring access
You are reading a free preview. The rest of the GCP-PCSE course unlocks with an Exam pass or All access.See plans
Identity sources and federation
| Need | Use |
|---|---|
| External partners/contractors with their own IdP | Workforce Identity Federation: a workforce identity pool per IdP, set at organization level |
| CI/CD outside Google Cloud (GitHub Actions) | Workload Identity Federation: GitHub OIDC token exchanged for short-lived credentials, no keys |
| Company users kept in a third-party IdP | Sync to Cloud Identity with GCDS, SSO through a SAML profile |
| Corporate-domain consumer (unmanaged) accounts | Transfer tool for unmanaged users, owner consents |
- SAML profile: IdP sign-in and sign-out URLs plus certificate; then Entity ID and ACS URL are configured in the IdP.
- Prevent new consumer accounts by provisioning a managed account with the same email for every user.
- Before syncing, reconcile Cloud Identity accounts missing from the IdP so they are not suspended or deleted.
- A domain already in use by G Suite: work with its existing Super Admin instead of creating a new domain.
IAM and hierarchy
| Topic | Fact |
|---|---|
| Inheritance | Roles granted on a folder are inherited by all projects and folders under it |
| Folder Admin | Scope to the team's own folder, not the organization |
| Private Logs Viewer | roles/logging.privateLogViewer reads Data Access and Access Transparency logs |
| IAP | Web App User (httpsResourceAccessor) for HTTPS; Tunnel User for tunnelled TCP |
| Audit evidence | Policy Analyzer: which principals have which access |
| Cross-org access | Principal access boundary policy limits resources principals can reach |
| Privileged roles | Restrict Organization Administrator and Super Admin |
Service accounts
- Org policy iam.disableServiceAccountKeyCreation stops new user-managed keys.
- Prefer impersonation: one service account per job; a caller with Token Creator gets short-lived tokens.
- Access tokens stay valid until expiry, so key actions do not revoke them; disable/delete the service account.
Org policies and perimeters
- compute.vmExternalIpAccess: allowlist VMs that may have external IPs.
- compute.trustedImageProjects: allowed image projects.
- Domain restricted sharing: exceptions are customer IDs in the allowed list.
- VPC Service Controls: put changes in the dry run configuration, review logs, then enforce.
- Shared VPC separates network/security admins (host project) from developers (service projects).
Exam traps
- Project Browser does not grant read access to resources.
- Rotating or disabling a key does not invalidate already-issued tokens.
- Domain restriction exceptions are not Google groups.
- Editing the enforced perimeter is live; only dry run is safe.
Docs
- https://cloud.google.com/iam/docs/workforce-identity-federation
- https://cloud.google.com/iam/docs/workload-identity-federation-with-deployment-pipelines
- https://docs.cloud.google.com/organization-policy/restrict-service-accounts
- https://cloud.google.com/resource-manager/docs/cloud-platform-resource-hierarchy
- https://cloud.google.com/vpc/docs/shared-vpc
- https://cloud.google.com/logging/docs/access-control
- https://docs.cloud.google.com/docs/security/compromised-credentials
- https://docs.cloud.google.com/iap/docs/managing-access
- https://docs.cloud.google.com/vpc-service-controls/docs/dry-run-mode
- https://cloud.google.com/architecture/identity/migrating-consumer-accounts
- https://cloud.google.com/policy-intelligence/docs/policy-analyzer-overview
- https://cloud.google.com/iam/docs/principal-access-boundary-policies