# Google Cloud layers five mechanisms, with IAM deny checked before allow and dry run on most

Facts read 10 Nov 2026. Page reviewed 16 Nov 2026.

The library holds 30 Google Cloud guardrails across 10 risk classes, written in Organization Policy Service (managed and legacy constraints), Custom organization policy constraints, IAM deny policies, VPC Service Controls (service perimeters), Principal access boundary (PAB) policies. 7 of them have a documented way to test the effect before enforcing.

Google Cloud's organization policies enforce constraints on an organization, folder or project, and descendants inherit them by default. Custom constraints are written in CEL and enforced with an organization policy. IAM deny policies are checked before allow policies, and block named principals from named permissions regardless of the roles they hold. Principal access boundary policies define the resources a set of principals is eligible to access, and can only block, never grant. VPC Service Controls perimeters block communication to managed Google Cloud services across the boundary by default.

Testing is built into more of this stack than in the other clouds. Organization policies and VPC Service Controls both have dry-run modes that log violations without denying them, and Policy Simulator and Policy Troubleshooter cover other policy types. Limits apply: new organization policies are usually not retroactive, dry run excludes most legacy managed constraints, custom constraint changes take up to 15 minutes, and perimeter changes up to 30. The library holds 30 Google Cloud entries, 25 of them organization policy.

## The mechanisms

- [Organization Policy Service (managed and legacy constraints)](/mechanisms/org-policy/): Organization policies set restrictions on Google Cloud resources by enforcing a constraint on an organization, folder or project.
- [Custom organization policy constraints](/mechanisms/custom-org-policy/): A custom constraint is defined in a YAML file that names the resources, methods, conditions and actions subject to the constraint.
- [IAM deny policies](/mechanisms/iam-deny/): Deny policies are made up of deny rules that prevent certain principals from using certain permissions, regardless of the roles they are granted.
- [VPC Service Controls (service perimeters)](/mechanisms/vpc-service-controls/): A service perimeter creates a security boundary around Google Cloud resources.
- [Principal access boundary (PAB) policies](/mechanisms/principal-access-boundary/): A principal access boundary policy defines the resources a set of principals is eligible to access.

## The 30 entries

| Guardrail | Cloud | Mechanism | Risk class | Tested first |
| --- | --- | --- | --- | --- |
| [Disable service account key creation](/guardrails/gcp-orgpolicy-disable-sa-key-creation/) | Google Cloud | [Organization Policy Service (managed and legacy constraints)](/mechanisms/org-policy/) | Identity and privilege | none found |
| [Disable automatic IAM grants for default service accounts](/guardrails/gcp-orgpolicy-no-auto-iam-grants-default-sa/) | Google Cloud | [Organization Policy Service (managed and legacy constraints)](/mechanisms/org-policy/) | Identity and privilege | none found |
| [Require OS Login](/guardrails/gcp-orgpolicy-require-os-login/) | Google Cloud | [Organization Policy Service (managed and legacy constraints)](/mechanisms/org-policy/) | Identity and privilege | none found |
| [Deny service account key create and delete to a group on one project](/guardrails/gcp-deny-service-account-key-admin/) | Google Cloud | [IAM deny policies](/mechanisms/iam-deny/) | Identity and privilege | documented |
| [Domain restricted sharing](/guardrails/gcp-orgpolicy-domain-restricted-sharing/) | Google Cloud | [Organization Policy Service (managed and legacy constraints)](/mechanisms/org-policy/) | Data exfiltration | none found |
| [Service perimeter around managed services](/guardrails/gcp-vpcsc-service-perimeter/) | Google Cloud | [VPC Service Controls (service perimeters)](/mechanisms/vpc-service-controls/) | Data exfiltration | documented |
| [Allowed destinations for exporting resources](/guardrails/gcp-orgpolicy-allowed-export-destinations/) | Google Cloud | [Organization Policy Service (managed and legacy constraints)](/mechanisms/org-policy/) | Data exfiltration | none found |
| [Custom constraint limiting IAM role grants to organization members](/guardrails/gcp-custom-allow-internal-and-special-identities/) | Google Cloud | [Custom organization policy constraints](/mechanisms/custom-org-policy/) | Data exfiltration | documented |
| [Principal access boundary limiting the resources principals can access](/guardrails/gcp-pab-eligible-resources/) | Google Cloud | [Principal access boundary (PAB) policies](/mechanisms/principal-access-boundary/) | Data exfiltration | documented |
| [Enforce public access prevention on Cloud Storage](/guardrails/gcp-orgpolicy-storage-public-access-prevention/) | Google Cloud | [Organization Policy Service (managed and legacy constraints)](/mechanisms/org-policy/) | Public exposure | none found |
| [Restrict public IP access on Cloud SQL instances](/guardrails/gcp-orgpolicy-sql-restrict-public-ip/) | Google Cloud | [Organization Policy Service (managed and legacy constraints)](/mechanisms/org-policy/) | Public exposure | none found |
| [Define allowed external IPs for VM instances](/guardrails/gcp-orgpolicy-vm-external-ip-access/) | Google Cloud | [Organization Policy Service (managed and legacy constraints)](/mechanisms/org-policy/) | Public exposure | none found |
| [Skip default network creation](/guardrails/gcp-orgpolicy-skip-default-network/) | Google Cloud | [Organization Policy Service (managed and legacy constraints)](/mechanisms/org-policy/) | Network perimeter | none found |
| [Restrict VPC peering usage](/guardrails/gcp-orgpolicy-restrict-vpc-peering/) | Google Cloud | [Organization Policy Service (managed and legacy constraints)](/mechanisms/org-policy/) | Network perimeter | none found |
| [Require predefined policies for VPC flow logs](/guardrails/gcp-orgpolicy-require-vpc-flow-logs/) | Google Cloud | [Organization Policy Service (managed and legacy constraints)](/mechanisms/org-policy/) | Logging and monitoring | none found |
| [Disable Audit Logging exemption](/guardrails/gcp-orgpolicy-disable-audit-logging-exemption/) | Google Cloud | [Organization Policy Service (managed and legacy constraints)](/mechanisms/org-policy/) | Logging and monitoring | none found |
| [Restrict which services may create resources without CMEK](/guardrails/gcp-orgpolicy-restrict-non-cmek-services/) | Google Cloud | [Organization Policy Service (managed and legacy constraints)](/mechanisms/org-policy/) | Encryption and keys | none found |
| [Restrict unencrypted HTTP access to Cloud Storage](/guardrails/gcp-orgpolicy-storage-secure-http-transport/) | Google Cloud | [Organization Policy Service (managed and legacy constraints)](/mechanisms/org-policy/) | Encryption and keys | none found |
| [Restrict key destruction to disabled key versions](/guardrails/gcp-orgpolicy-kms-disable-before-destroy/) | Google Cloud | [Organization Policy Service (managed and legacy constraints)](/mechanisms/org-policy/) | Encryption and keys | none found |
| [Resource location restriction](/guardrails/gcp-orgpolicy-resource-locations/) | Google Cloud | [Organization Policy Service (managed and legacy constraints)](/mechanisms/org-policy/) | Region and residency | none found |
| [Restrict resource service usage](/guardrails/gcp-orgpolicy-restrict-service-usage/) | Google Cloud | [Organization Policy Service (managed and legacy constraints)](/mechanisms/org-policy/) | Organization integrity | documented |
| [Restrict Shared VPC host project lien removal](/guardrails/gcp-orgpolicy-restrict-xpn-lien-removal/) | Google Cloud | [Organization Policy Service (managed and legacy constraints)](/mechanisms/org-policy/) | Organization integrity | none found |
| [Deny deleting projects tagged prod](/guardrails/gcp-deny-project-delete-prod/) | Google Cloud | [IAM deny policies](/mechanisms/iam-deny/) | Organization integrity | documented |
| [Restrict public IP access on new Vertex AI Workbench instances](/guardrails/gcp-orgpolicy-ainotebooks-restrict-public-ip/) | Google Cloud | [Organization Policy Service (managed and legacy constraints)](/mechanisms/org-policy/) | AI services | none found |
| [Disable root access on new Vertex AI Workbench notebooks and instances](/guardrails/gcp-orgpolicy-ainotebooks-disable-root-access/) | Google Cloud | [Organization Policy Service (managed and legacy constraints)](/mechanisms/org-policy/) | AI services | none found |
| [Define access to models on Vertex AI](/guardrails/gcp-orgpolicy-vertexai-allowed-models/) | Google Cloud | [Organization Policy Service (managed and legacy constraints)](/mechanisms/org-policy/) | AI services | none found |
| [Disable Grounding with Google Search in generative AI APIs](/guardrails/gcp-orgpolicy-vertexai-disable-google-search-grounding/) | Google Cloud | [Organization Policy Service (managed and legacy constraints)](/mechanisms/org-policy/) | AI services | none found |
| [Restrict egress domains for data connectors](/guardrails/gcp-orgpolicy-discoveryengine-allowed-egress-fqdns/) | Google Cloud | [Organization Policy Service (managed and legacy constraints)](/mechanisms/org-policy/) | AI services | documented |
| [Shared reservations owner projects](/guardrails/gcp-orgpolicy-shared-reservations-owner-projects/) | Google Cloud | [Organization Policy Service (managed and legacy constraints)](/mechanisms/org-policy/) | Resource and cost | none found |
| [Restrict load balancer creation based on load balancer types](/guardrails/gcp-orgpolicy-restrict-lb-creation-types/) | Google Cloud | [Organization Policy Service (managed and legacy constraints)](/mechanisms/org-policy/) | Resource and cost | none found |

"Tested first" says whether the provider documents a way to see the guardrail's effect before enforcing it. Read 10 Nov 2026.

**Where Act is behind.** Act writes guardrails in the provider's own mechanisms and hands them to your pipeline to enforce, so it is bounded by what those mechanisms can express in each cloud. It does not apply them itself, the boundary types it names are AWS's and Azure's, and exception and waiver handling after a guardrail ships was described as roadmap.

## Related pages

- [About](/about/)
- [Editorial policy](/editorial-policy/)
- [Corrections](/corrections/)

## Sources

- Organization Policy Service (managed and legacy constraints): https://cloud.google.com/resource-manager/docs/organization-policy/overview (read 10 Nov 2026)
- Custom organization policy constraints: https://cloud.google.com/resource-manager/docs/organization-policy/creating-managing-custom-constraints (read 10 Nov 2026)
- IAM deny policies: https://cloud.google.com/iam/docs/deny-overview (read 10 Nov 2026)
- VPC Service Controls (service perimeters): https://cloud.google.com/vpc-service-controls/docs/overview (read 10 Nov 2026)
- Principal access boundary (PAB) policies: https://cloud.google.com/iam/docs/principal-access-boundary-policies (read 10 Nov 2026)

Last reviewed 16 Nov 2026. Canonical: https://cloudgovernancetools.com/library/gcp/
