# Public exposure guardrails close the open door, and existing resources often stay open

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

10 guardrails in the library address public exposure: 4 AWS, 3 Azure, 3 Google Cloud. The first in the list, "Deny disabling block public access for AMIs", denies ec2:DisableImageBlockPublicAccess so Block public access for AMIs cannot be turned off. Each entry gives the policy text, what it blocks, what it is known to break and how to test it first.

Guardrails in this class keep resources off the public internet: public blob access, public IPs, open function URLs, unauthenticated identity pools. The library holds 10. Their typical cost is to applications that relied on the open setting. In AWS, requiring IAM authentication on Lambda function URLs blocks any function URL with auth type NONE, and denying unauthenticated Cognito access ends guest credentials. Their typical gap is the resources that already exist: Azure marks an existing network interface with a public IP as noncompliant but does not change it, and Google says its Cloud SQL public IP constraint is not retroactive.

| Guardrail | Cloud | Mechanism | Risk class | Tested first |
| --- | --- | --- | --- | --- |
| [Deny disabling block public access for AMIs](/guardrails/aws-scp-deny-disable-ami-block-public-access/) | AWS | [Service control policies (SCPs)](/mechanisms/scp/) | Public exposure | documented |
| [Require IAM authentication on Lambda function URLs](/guardrails/aws-scp-require-lambda-url-iam-auth/) | AWS | [Service control policies (SCPs)](/mechanisms/scp/) | Public exposure | documented |
| [Deny changes to S3 Block Public Access at bucket level](/guardrails/aws-rcp-deny-bucket-public-access-block-changes/) | AWS | [Resource control policies (RCPs)](/mechanisms/rcp/) | Public exposure | documented |
| [Deny unauthenticated access to Cognito identity pools](/guardrails/aws-rcp-deny-cognito-unauthenticated-access/) | AWS | [Resource control policies (RCPs)](/mechanisms/rcp/) | Public exposure | documented |
| [Network interfaces should not have public IPs](/guardrails/azure-policy-nic-no-public-ip/) | Azure | [Azure Policy (built-in definitions)](/mechanisms/azure-policy/) | Public exposure | documented |
| [Configure storage accounts to disallow public blob access](/guardrails/azure-policy-storage-disable-public-blob/) | Azure | [Azure Policy (built-in definitions)](/mechanisms/azure-policy/) | Public exposure | documented |
| [Storage accounts should disable public network access](/guardrails/azure-policy-storage-disable-public-network/) | Azure | [Azure Policy (built-in definitions)](/mechanisms/azure-policy/) | Public exposure | 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 |

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

## What these guardrails break

- **Deny disabling block public access for AMIs** (AWS): The README notes the default for the setting depends on whether the account is new or existing and whether it has public AMIs; the policy has no exception condition.
- **Require IAM authentication on Lambda function URLs** (AWS): Function URLs with auth type NONE can no longer be created or updated in the affected accounts.
- **Deny changes to S3 Block Public Access at bucket level** (AWS): No principal, including bucket owners, can change bucket-level Block Public Access settings; the README says S3 policies are recommended over an RCP for this control.
- **Deny unauthenticated access to Cognito identity pools** (AWS): Applications that rely on guest access to an identity pool can no longer obtain credentials; only authenticated users can.
- **Network interfaces should not have public IPs** (Azure): Existing network interfaces that already have a public IP are marked non-compliant but not changed.
- **Configure storage accounts to disallow public blob access** (Azure): Modify rewrites the property during create or update instead of rejecting the request, and existing storage accounts change only through a remediation task.
- **Storage accounts should disable public network access** (Azure): The documented effect of the setting is that it denies all logins that match IP or virtual network-based firewall rules.
- **Enforce public access prevention on Cloud Storage** (Google Cloud): Google documents that it overrides existing public permissions and revokes public access for existing buckets and objects once enabled.
- **Restrict public IP access on Cloud SQL instances** (Google Cloud): Google documents that the constraint is not retroactive: instances with existing Public IP access keep working.
- **Define allowed external IPs for VM instances** (Google Cloud): Google documents that it does not restrict the use of IPv6 addresses.

**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

- [Logging and monitoring: 8 preventive guardrails across three clouds](/risk/logging-and-monitoring/)
- [Encryption and keys: 13 preventive guardrails across three clouds](/risk/encryption-and-keys/)
- [Network perimeter: 7 preventive guardrails across three clouds](/risk/network-perimeter/)

## Sources

- Deny disabling block public access for AMIs: https://raw.githubusercontent.com/aws-samples/service-control-policy-examples/main/Service-specific-controls/Amazon-EC2/Deny-users-from-disabling-block-public-access-on-AMIs.json (read 10 Nov 2026)
- Require IAM authentication on Lambda function URLs: https://raw.githubusercontent.com/aws-samples/service-control-policy-examples/main/Sensitive-data-protection/Deny-modification-to-Lambda-URL-Config.json (read 10 Nov 2026)
- Deny changes to S3 Block Public Access at bucket level: https://raw.githubusercontent.com/aws-samples/resource-control-policy-examples/main/Service-specific-controls/S3-Prevent-S3-buckets-from-being-made-public-(Bucket-level).json (read 10 Nov 2026)
- Deny unauthenticated access to Cognito identity pools: https://raw.githubusercontent.com/aws-samples/resource-control-policy-examples/main/Service-specific-controls/Cognito-Deny-identity-pool-unauthenticated-access.json (read 10 Nov 2026)
- Network interfaces should not have public IPs: https://raw.githubusercontent.com/Azure/azure-policy/master/built-in-policies/policyDefinitions/Network/NetworkPublicIPNic_Deny.json (read 10 Nov 2026)
- Configure storage accounts to disallow public blob access: https://raw.githubusercontent.com/Azure/azure-policy/master/built-in-policies/policyDefinitions/Storage/StorageAccountDisablePublicBlobAccess_Modify.json (read 10 Nov 2026)
- Storage accounts should disable public network access: https://raw.githubusercontent.com/Azure/azure-policy/master/built-in-policies/policyDefinitions/Storage/StoragePublicNetworkAccess_AuditDeny.json (read 10 Nov 2026)
- Enforce public access prevention on Cloud Storage: https://cloud.google.com/resource-manager/docs/organization-policy/org-policy-constraints (read 10 Nov 2026)

Last reviewed 16 Nov 2026. Canonical: https://cloudgovernancetools.com/risk/public-exposure/
