Skip to content
Cloud Governance Tools

Restrict public IP access on Cloud SQL instances

Restrict public IP access on Cloud SQL instances is a Google Cloud guardrail written in organization Policy Service. Stops Public IP from being configured on Cloud SQL instances where the constraint is enforced. What it breaks: google documents that the constraint is not retroactive: instances with existing Public IP access keep working.

More public exposure guardrails ยท About Organization Policy Service

constraints/sql.restrictPublicIp
This boolean constraint restricts configuring Public IP on Cloud SQL instances where this constraint is enforced. This constraint is not retroactive, Cloud SQL instances with existing Public IP access will still work even after this constraint is enforced.
By default, Public IP access is allowed to Cloud SQL instances.
Blocks
Stops Public IP from being configured on Cloud SQL instances where the constraint is enforced. (legacy managed constraint, boolean.)
Breaks
Google documents that the constraint is not retroactive: instances with existing Public IP access keep working. (source)
Test before applying
As for every Organization Policy Service guardrail: how to test before enforcing
Mechanism
Organization Policy Service (managed and legacy constraints): Resources in the organization, folder or project where the policy is set and its descendants; Google says application of new policies is usually not retroactive.
Taken from
provider documentation, provider documentation

What the source says

"This boolean constraint restricts configuring Public IP on Cloud SQL instances where this constraint is enforced." (read 10 Nov 2026).

On what it breaks: "This constraint is not retroactive, Cloud SQL instances with existing Public IP access will still work even after this constraint is enforced."

Sources

  1. Restrict public IP access on Cloud SQL instances, read 10 Nov 2026
  2. How to test it first, read 10 Nov 2026

Last reviewed 16 Nov 2026.