<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Not able to connect to GCP Secret Manager except when using &amp;quot;No isolation shared&amp;quot; Clus in Administration &amp; Architecture</title>
    <link>https://community.databricks.com/t5/administration-architecture/not-able-to-connect-to-gcp-secret-manager-except-when-using-quot/m-p/132282#M4059</link>
    <description>&lt;P&gt;The problem is that we shouldnt be using json keys at all if we are running databricks on GCP. with&amp;nbsp;"No Isolation Shared" its able to query the gce metadata service and get the credentials of the service account attached to the instance. There is even a setting for selecting a service account when creating a cluster so it should be supported.&lt;/P&gt;</description>
    <pubDate>Wed, 17 Sep 2025 17:11:10 GMT</pubDate>
    <dc:creator>blemgorfell</dc:creator>
    <dc:date>2025-09-17T17:11:10Z</dc:date>
    <item>
      <title>Not able to connect to GCP Secret Manager except when using "No isolation shared" Cluster</title>
      <link>https://community.databricks.com/t5/administration-architecture/not-able-to-connect-to-gcp-secret-manager-except-when-using-quot/m-p/107518#M2867</link>
      <description>&lt;P&gt;Hey everyone,&lt;/P&gt;&lt;P&gt;We’re trying to access secrets stored in GCP Secret Manager using its Python package from Databricks on GCP. However, we can only reach the Secret Manager when using &lt;STRONG&gt;"No Isolation Shared"&lt;/STRONG&gt; clusters, which is not an option for us. Currently, we haven’t found any alternative solutions.&lt;/P&gt;&lt;P&gt;Has anyone encountered this issue or found a workaround?&lt;/P&gt;&lt;P&gt;The error message indicates that Google’s metadata server is unreachable.&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2025 06:56:44 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/not-able-to-connect-to-gcp-secret-manager-except-when-using-quot/m-p/107518#M2867</guid>
      <dc:creator>yumnus</dc:creator>
      <dc:date>2025-01-29T06:56:44Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to connect to GCP Secret Manager except when using "No isolation shared" Clus</title>
      <link>https://community.databricks.com/t5/administration-architecture/not-able-to-connect-to-gcp-secret-manager-except-when-using-quot/m-p/107589#M2878</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/130200"&gt;@yumnus&lt;/a&gt;,&lt;/P&gt;
&lt;P class="_1t7bu9h1 paragraph"&gt;Could you please share the full error trace? what is the package you are installing?&lt;/P&gt;
&lt;P class="_1t7bu9h1 paragraph"&gt;One suggestion, instead of relying on the metadata server, you can use a service account key file to authenticate with GCP Secret Manager. You can store the service account key as a Databricks secret and then use it in your code to authenticate. Here’s a general approach:&lt;/P&gt;
&lt;UL class="_1t7bu9h7 _1t7bu9h2"&gt;
&lt;LI&gt;&lt;SPAN&gt;Create a service account in GCP and download the JSON key file.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Store the key file content as a secret in Databricks using the Databricks CLI or the Secrets API.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;Use the secret in your code to authenticate with GCP Secret Manager.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Wed, 29 Jan 2025 13:39:19 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/not-able-to-connect-to-gcp-secret-manager-except-when-using-quot/m-p/107589#M2878</guid>
      <dc:creator>Alberto_Umana</dc:creator>
      <dc:date>2025-01-29T13:39:19Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to connect to GCP Secret Manager except when using "No isolation shared" Clus</title>
      <link>https://community.databricks.com/t5/administration-architecture/not-able-to-connect-to-gcp-secret-manager-except-when-using-quot/m-p/107609#M2883</link>
      <description>&lt;P&gt;Hi Alberto,&lt;/P&gt;&lt;P&gt;When we use No Isolation Shared Clusters it works, else:&lt;/P&gt;&lt;P&gt;the error messages:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;WARNING:google.auth.compute_engine._metadata:Compute Engine Metadata server unavailable on attempt 1 of 3. Reason: [Errno 111] Connection refused&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;WARNING:google.auth._default:No project ID could be determined. Consider running `gcloud config set project` or setting the GOOGLE_CLOUD_PROJECT environment variable&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;WARNING:google.auth.compute_engine._metadata:Compute Engine Metadata server unavailable on attempt 1 of 5. Reason: HTTPConnectionPool(host='metadata.google.internal', port=80): Max retries exceeded with url: /computeMetadata/v1/instance/service-accounts/default/?recursive=true (Caused by NewConnectionError('&amp;lt;urllib3.connection.HTTPConnection object at 0x7931121fe650&amp;gt;: Failed to establish a new connection: [Errno 111] Connection refused'))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;google.auth.exceptions.TransportError: Failed to retrieve &lt;A href="http://metadata.google.internal/computeMetadata/v1/instance/service-accounts/default/?recursive=true" target="_blank"&gt;http://metadata.google.internal/computeMetadata/v1/instance/service-accounts/default/?recursive=true&lt;/A&gt; from the Google Compute Engine metadata service. Compute Engine Metadata server unavailable&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2025 14:28:34 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/not-able-to-connect-to-gcp-secret-manager-except-when-using-quot/m-p/107609#M2883</guid>
      <dc:creator>yumnus</dc:creator>
      <dc:date>2025-01-29T14:28:34Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to connect to GCP Secret Manager except when using "No isolation shared" Clus</title>
      <link>https://community.databricks.com/t5/administration-architecture/not-able-to-connect-to-gcp-secret-manager-except-when-using-quot/m-p/107611#M2884</link>
      <description>&lt;P&gt;Also the package&amp;nbsp;&lt;SPAN&gt;google_cloud_secret_manager-2.22.0&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jan 2025 14:41:01 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/not-able-to-connect-to-gcp-secret-manager-except-when-using-quot/m-p/107611#M2884</guid>
      <dc:creator>yumnus</dc:creator>
      <dc:date>2025-01-29T14:41:01Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to connect to GCP Secret Manager except when using "No isolation shared" Clus</title>
      <link>https://community.databricks.com/t5/administration-architecture/not-able-to-connect-to-gcp-secret-manager-except-when-using-quot/m-p/125952#M3696</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/130200"&gt;@yumnus&lt;/a&gt;&amp;nbsp;did you ever resolved this error when cluster Is not "No isolation shared" ?&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jul 2025 07:42:59 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/not-able-to-connect-to-gcp-secret-manager-except-when-using-quot/m-p/125952#M3696</guid>
      <dc:creator>v-marjan-cg</dc:creator>
      <dc:date>2025-07-22T07:42:59Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to connect to GCP Secret Manager except when using "No isolation shared" Clus</title>
      <link>https://community.databricks.com/t5/administration-architecture/not-able-to-connect-to-gcp-secret-manager-except-when-using-quot/m-p/132271#M4058</link>
      <description>&lt;P&gt;This is a huge issue. We are seeing the same thing. google auth is broken for databricks on GCP? Only with no isolation enabled is it able to access the metadata service and get credentials.&lt;/P&gt;&lt;P&gt;Why is the metadata service not reachable? I would be shocked if databricks for GCP doesn't support basic auth integration. I should not have to generate an insecure json key because this is all running inside of gcp.&lt;/P&gt;&lt;P&gt;RefreshError: Failed to retrieve &lt;A href="http://metadata.google.internal/computeMetadata/v1/instance/service-accounts/default/?recursive=true" target="_blank" rel="noopener"&gt;http://metadata.google.internal/computeMetadata/v1/instance/service-accounts/default/?recursive=true&lt;/A&gt; from the Google Compute Engine metadata service. Compute Engine Metadata server unavailable due to HTTPConnectionPool(host='metadata.google.internal', port=80): Max retries exceeded with url: /computeMetadata/v1/instance/service-accounts/default/?recursive=true (Caused by NewConnectionError('&amp;lt;urllib3.connection.HTTPConnection object at 0x7b2cd5708200&amp;gt;: Failed to establish a new connection: [Errno 111] Connection refused'))&lt;/P&gt;&lt;P&gt;Can also confirm with curl in notebook&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="blemgorfell_0-1758128475105.png" style="width: 999px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/20047iE366D46760531C17/image-size/large?v=v2&amp;amp;px=999" role="button" title="blemgorfell_0-1758128475105.png" alt="blemgorfell_0-1758128475105.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Sep 2025 17:01:37 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/not-able-to-connect-to-gcp-secret-manager-except-when-using-quot/m-p/132271#M4058</guid>
      <dc:creator>blemgorfell</dc:creator>
      <dc:date>2025-09-17T17:01:37Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to connect to GCP Secret Manager except when using "No isolation shared" Clus</title>
      <link>https://community.databricks.com/t5/administration-architecture/not-able-to-connect-to-gcp-secret-manager-except-when-using-quot/m-p/132282#M4059</link>
      <description>&lt;P&gt;The problem is that we shouldnt be using json keys at all if we are running databricks on GCP. with&amp;nbsp;"No Isolation Shared" its able to query the gce metadata service and get the credentials of the service account attached to the instance. There is even a setting for selecting a service account when creating a cluster so it should be supported.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Sep 2025 17:11:10 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/not-able-to-connect-to-gcp-secret-manager-except-when-using-quot/m-p/132282#M4059</guid>
      <dc:creator>blemgorfell</dc:creator>
      <dc:date>2025-09-17T17:11:10Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to connect to GCP Secret Manager except when using "No isolation shared" Clus</title>
      <link>https://community.databricks.com/t5/administration-architecture/not-able-to-connect-to-gcp-secret-manager-except-when-using-quot/m-p/132466#M4068</link>
      <description>&lt;P&gt;Have you tried using UC single user (or group clusters)?&lt;/P&gt;</description>
      <pubDate>Thu, 18 Sep 2025 15:25:41 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/not-able-to-connect-to-gcp-secret-manager-except-when-using-quot/m-p/132466#M4068</guid>
      <dc:creator>SP_6721</dc:creator>
      <dc:date>2025-09-18T15:25:41Z</dc:date>
    </item>
  </channel>
</rss>

