<?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: Accessing secrets(secret scope) in pipeline yml file in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/accessing-secrets-secret-scope-in-pipeline-yml-file/m-p/154399#M54095</link>
    <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/110502"&gt;@szymon_dybczak&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;But dbutils utility can be used only in notebooks , but cant be used in python .py files.&lt;/P&gt;</description>
    <pubDate>Tue, 14 Apr 2026 05:38:30 GMT</pubDate>
    <dc:creator>prakharsachan</dc:creator>
    <dc:date>2026-04-14T05:38:30Z</dc:date>
    <item>
      <title>Accessing secrets(secret scope) in pipeline yml file</title>
      <link>https://community.databricks.com/t5/data-engineering/accessing-secrets-secret-scope-in-pipeline-yml-file/m-p/154365#M54088</link>
      <description>&lt;P&gt;How can I access secrets in pipeline yaml or directly in python script file?&lt;/P&gt;</description>
      <pubDate>Mon, 13 Apr 2026 17:35:51 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/accessing-secrets-secret-scope-in-pipeline-yml-file/m-p/154365#M54088</guid>
      <dc:creator>prakharsachan</dc:creator>
      <dc:date>2026-04-13T17:35:51Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing secrets(secret scope) in pipeline yml file</title>
      <link>https://community.databricks.com/t5/data-engineering/accessing-secrets-secret-scope-in-pipeline-yml-file/m-p/154369#M54089</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/226577"&gt;@prakharsachan&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;In&amp;nbsp;&lt;SPAN&gt;Declarative Automation Bundles YAML (formerly known as&amp;nbsp;Databricks Assets Bundles) you can only define secret scopes:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="szymon_dybczak_0-1776102462918.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/25954iC41312BEE82DF687/image-size/medium?v=v2&amp;amp;px=400" role="button" title="szymon_dybczak_0-1776102462918.png" alt="szymon_dybczak_0-1776102462918.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;If you want to read secrets from secret scope you can use dbutils in python script:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;password = dbutils.secrets.get(scope = "&amp;lt;scope-name&amp;gt;", key = "&amp;lt;key-name&amp;gt;")&lt;/LI-CODE&gt;&lt;P&gt;If you're talking more about devops pipeline you can also use databricks cli to read secret in following way:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;databricks secrets get-secret &amp;lt;scope-name&amp;gt; &amp;lt;key-name&amp;gt; | jq -r .value | base64 --decode&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;More information you can find below:&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.databricks.com/aws/en/security/secrets/?language=Databricks%C2%A0CLI#read-a-secret" target="_blank"&gt;Secret management | Databricks on AWS&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Apr 2026 17:49:53 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/accessing-secrets-secret-scope-in-pipeline-yml-file/m-p/154369#M54089</guid>
      <dc:creator>szymon_dybczak</dc:creator>
      <dc:date>2026-04-13T17:49:53Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing secrets(secret scope) in pipeline yml file</title>
      <link>https://community.databricks.com/t5/data-engineering/accessing-secrets-secret-scope-in-pipeline-yml-file/m-p/154399#M54095</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/110502"&gt;@szymon_dybczak&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;But dbutils utility can be used only in notebooks , but cant be used in python .py files.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Apr 2026 05:38:30 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/accessing-secrets-secret-scope-in-pipeline-yml-file/m-p/154399#M54095</guid>
      <dc:creator>prakharsachan</dc:creator>
      <dc:date>2026-04-14T05:38:30Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing secrets(secret scope) in pipeline yml file</title>
      <link>https://community.databricks.com/t5/data-engineering/accessing-secrets-secret-scope-in-pipeline-yml-file/m-p/154415#M54097</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/226577"&gt;@prakharsachan&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;If dbutils doesn't work for you then you can use Databricks Python SDK. Below you can find get_secret method which you can use to read secret from a secret scope:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://databricks-sdk-py.readthedocs.io/en/stable/workspace/workspace/secrets.html#databricks.sdk.service.workspace.SecretsAPI.get_secret" target="_blank"&gt;w.secrets: Secret — Databricks SDK for Python beta documentation&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Apr 2026 07:25:43 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/accessing-secrets-secret-scope-in-pipeline-yml-file/m-p/154415#M54097</guid>
      <dc:creator>szymon_dybczak</dc:creator>
      <dc:date>2026-04-14T07:25:43Z</dc:date>
    </item>
  </channel>
</rss>

