<?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 Can Run Notebook Permission in Data Governance</title>
    <link>https://community.databricks.com/t5/data-governance/can-run-notebook-permission/m-p/162338#M2900</link>
    <description>&lt;P class=""&gt;&lt;SPAN&gt;If a user has &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN&gt;Can Run&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt; permission on a notebook, why are they still able to view the notebook's contents without having &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN&gt;Can View&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt; permission?&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;Restricting visibility while allowing execution could be useful in scenarios where sensitive configuration details or logic are stored in a notebook and accessed by other notebooks using the &lt;/SPAN&gt;&lt;SPAN&gt;%run&lt;/SPAN&gt;&lt;SPAN&gt; command.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 09 Jul 2026 08:39:06 GMT</pubDate>
    <dc:creator>DeepeshDandwani</dc:creator>
    <dc:date>2026-07-09T08:39:06Z</dc:date>
    <item>
      <title>Can Run Notebook Permission</title>
      <link>https://community.databricks.com/t5/data-governance/can-run-notebook-permission/m-p/162338#M2900</link>
      <description>&lt;P class=""&gt;&lt;SPAN&gt;If a user has &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN&gt;Can Run&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt; permission on a notebook, why are they still able to view the notebook's contents without having &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN&gt;Can View&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt; permission?&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;Restricting visibility while allowing execution could be useful in scenarios where sensitive configuration details or logic are stored in a notebook and accessed by other notebooks using the &lt;/SPAN&gt;&lt;SPAN&gt;%run&lt;/SPAN&gt;&lt;SPAN&gt; command.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jul 2026 08:39:06 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-governance/can-run-notebook-permission/m-p/162338#M2900</guid>
      <dc:creator>DeepeshDandwani</dc:creator>
      <dc:date>2026-07-09T08:39:06Z</dc:date>
    </item>
    <item>
      <title>Re: Can Run Notebook Permission</title>
      <link>https://community.databricks.com/t5/data-governance/can-run-notebook-permission/m-p/162344#M2901</link>
      <description>&lt;P&gt;Securing data pipelines by hiding sensitive information is a key topic in any platform. It is achieved using &lt;STRONG&gt;Databricks Secrets &lt;/STRONG&gt;for runtime code configurations etc. Sensitive information storage is to be avoided completely in notebooks.&lt;/P&gt;&lt;H3&gt;&lt;U&gt;&lt;FONT size="3"&gt;Can Run Inherently Granting View Access&lt;/FONT&gt;&lt;/U&gt;&lt;/H3&gt;&lt;P&gt;&lt;FONT size="3"&gt;In Databricks, the &lt;STRONG&gt;Can Run&lt;/STRONG&gt; permission inherently includes the ability to view the notebook contents by &lt;STRONG&gt;design&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;When a user executes a notebook, visibility into that code is required for several critical reasons as below&lt;/FONT&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;&lt;FONT size="3"&gt;&lt;STRONG&gt;Debugging and Troubleshooting -&lt;/STRONG&gt;&amp;nbsp;Users must be able to see error messages, stack traces and execution outputs to verify why a job succeeded or failed.&lt;/FONT&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;FONT size="3"&gt;&lt;STRONG&gt;Understanding Execution Context - &lt;/STRONG&gt;Users&amp;nbsp;need to know exactly what logic is processing their data to validate behavior and ensure data integrity.&lt;/FONT&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;FONT size="3"&gt;&lt;STRONG&gt;Preventing Black Box Pipelines -&lt;/STRONG&gt;&amp;nbsp;Allowing execution without visibility creates an environment where code is impossible to debug, audit or to understand. This creates operational bottlenecks in data workflows.&lt;/FONT&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;H3&gt;&lt;U&gt;&lt;FONT size="3"&gt;Hiding Configurations with Databricks Secrets&lt;/FONT&gt;&lt;/U&gt;&lt;/H3&gt;&lt;P&gt;When you need to protect credentials, API keys or sensitive connection strings, the native and secure approach is to abstract them out of the notebook entirely using a Databricks Secret Scope.&amp;nbsp;&lt;SPAN&gt;You store the sensitive values in a secure vault (AKS/AWS Secret Managers etc) rather than hardcoding them into a cell in the notebook.&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;When you reference these secrets in your code us&lt;/SPAN&gt;ing dbutils.secrets.get(), Databricks automatically redacts &lt;SPAN&gt;the actual values from the notebook outputs.&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Users can execute the notebook and run the necessary logic, but the plaintext secrets remain completely hidden from view even in the execution logs or display outputs.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;For protecting sensitive business logic rather than just credentials, you can encapsulate that code inside Unity Catalog Functions &amp;amp; use RLS/CLS/ABAC (users granted relevant privileges without seeing the implementation) or run workflows as a Service Principal.&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;By separating your secure configurations (via Secrets) from your execution logic (the Notebook), you can maintain transparent, easily debuggable pipelines without compromising on security.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jul 2026 09:54:25 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-governance/can-run-notebook-permission/m-p/162344#M2901</guid>
      <dc:creator>balajij8</dc:creator>
      <dc:date>2026-07-09T09:54:25Z</dc:date>
    </item>
    <item>
      <title>Re: Can Run Notebook Permission</title>
      <link>https://community.databricks.com/t5/data-governance/can-run-notebook-permission/m-p/163942#M2913</link>
      <description>&lt;P data-pm-slice="1 3 []"&gt;This is by design: Can Run always includes viewing the cells.&lt;/P&gt;
&lt;P&gt;Notebook access has a single view-only level (labeled CAN VIEW in the UI, CAN READ in the Permissions API) that sits below Can Run, and &lt;CODE&gt;%run&lt;/CODE&gt; and notebook workflows execute at that view-only level. So anyone who can run the notebook can read it, and ACLs cannot grant execution while hiding the code.&lt;/P&gt;
&lt;P&gt;To protect the sensitive parts, move them out of the notebook:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;
&lt;P&gt;Put credentials in a secret scope and read them with &lt;CODE&gt;dbutils.secrets.get()&lt;/CODE&gt;. Redaction is best effort (literal values only, and not applied to the Spark driver's &lt;CODE&gt;stdout&lt;/CODE&gt;/&lt;CODE&gt;stderr&lt;/CODE&gt;), so also limit who can run the notebook.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;Move shared logic into a library or wheel, or a Unity Catalog function with &lt;CODE&gt;EXECUTE&lt;/CODE&gt; granted, so callers use it without seeing the source.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;Run the sensitive work through a job or service principal, so users trigger it without opening the notebook.&lt;/P&gt;
&lt;/LI&gt;
&lt;/OL&gt;</description>
      <pubDate>Thu, 23 Jul 2026 17:19:08 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-governance/can-run-notebook-permission/m-p/163942#M2913</guid>
      <dc:creator>AbhilashNagilla</dc:creator>
      <dc:date>2026-07-23T17:19:08Z</dc:date>
    </item>
  </channel>
</rss>

