cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Administration & Architecture
Explore discussions on Databricks administration, deployment strategies, and architectural best practices. Connect with administrators and architects to optimize your Databricks environment for performance, scalability, and security.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Why Is Outbound Internet Access Restricted on GCP Databricks Serverless?

Ariooo
New Contributor II

I'm using Databricks on GCP, apparently on the Premium tier, and Serverless compute blocks requests to public websites such as Google and data.gov.au.

I would expect a paid Databricks workspace to support basic outbound HTTPS requests.

Unfortunately, there seems to be no straightforward configuration to resolve this. The suggested workaround is to switch to Classic Compute, which introduces other problems.

We've spent days troubleshooting something that should work out of the box. Restricting ordinary internet access without providing an accessible configuration option is frustrating.

To me, this looks like unexpected product behaviour that Databricks should address, rather than a limitation customers should have to work around.

Is there a supported solution for Premium users, or does Databricks plan to address this limitation?

 
3 REPLIES 3

Jen_Evangelista
New Contributor II

Serverless egress isn't a compute setting, which is why there's no toggle in the workspace. It's controlled by network policies in the account console: Security > Networking > Context-based ingress & egress control. Every account has a default policy that applies to all workspaces without an explicit assignment, so a restricted default would explain public sites failing only on serverless.

I'd ask an account admin to check which policy your workspace uses and its mode. "Allow access to all destinations" is unrestricted outbound. "Restricted access" only allows the listed FQDNs, so Google and data.gov.au would have to be added (up to 100 domains per policy). If you switch the internet access mode, restart the compute afterwards.

To confirm before changing anything, check the denial log. It needs the access system schema enabled:

```sql
SELECT *
FROM system.access.outbound_network
WHERE event_time >= current_timestamp() - INTERVAL 1 DAY
ORDER BY event_time DESC;
```

Rows with access_type = DROP for your domains point straight at the policy. No rows means the block is somewhere else, like DNS or the destination's own firewall.

One catch: the docs list the Enterprise tier as a requirement for managing network policies. So if the account really is Premium, confirm the tier in the account console first and loop in your account team if a policy you can't edit is in place.

Docs: https://docs.databricks.com/gcp/en/security/network/serverless-network-security/manage-network-polic...

data_pulse
Contributor

Adding further to the above, a few things to narrow down:

  • Check the exact error. โ€œTemporary failure in name resolutionโ€ or a message saying access was denied because of the serverless network policy both suggest an egress block. A plain timeout or an SSL error usually points somewhere else, so please post the exact text.
  • Query system.access.outbound_network, but donโ€™t treat an empty result as proof the policy is fine. DROP means an actual denial from your policy. DRY_RUN_DENIAL means it was only simulated. In another Thread having slightly similar issue, it was mentioned that this table only logs denials from your own network policy, so a restriction at the account level wouldnโ€™t appear in it. Check the Thread for more details.
  • Check whether the account started as a trial. In that same thread, it was mentioned the accounts that began on an express-setup trial can keep limited external network access until the account is verified, even after upgrading to paid. I donโ€™t know whether the same applies on GCP, so itโ€™s worth confirming how your account was created.
  • Check the tier and effective policy. If the account is Premium and the Context-based ingress & egress control section is missing or read-only, you canโ€™t change the policy yourself. Contact your Databricks account team and tell them:
    • that youโ€™re on a paid plan
    • which domains are blocked (Google and data.gov.au)
    • that youโ€™ve checked outbound_network.

Ask them to confirm the accountโ€™s verification status and the effective egress policy. Using an account admin with a company email domain may speed this up, per the same thread.

Ariooo
New Contributor II

I've spent several days troubleshooting this issue, trying various workarounds, including VPNs, proxies, and SSH tunneling, just to keep my project moving.

The logs confirm that Databricks Serverless is actively blocking outbound DNS requests (DROP, rcode: 5).

google.com      โŒ Blocked
data.gov.au     โŒ Blocked
pypi.org        โœ… Accessible
huggingface.co  โœ… Accessible

My account is on the Premium tier, but I haven't found any accessible configuration to manage these restrictions.

The Databricks documentation mentions network policies being available on Premium, which makes the lack of configuration confusing.

It's been suggested that the restrictions might be related to an account originally created as a trial. That could be the case, but I would expect Databricks to handle provisioning correctly after upgrading to a paid subscription.

I use Databricks for data engineering and need access to public APIs and external datasets. I believe customers should have reasonable control over outbound internet access.

So far, the only practical workaround I've found is switching from Serverless to Classic Compute.

I'd appreciate Databricks investigating this at the account or platform level and providing a proper solution for Premium customers.