Forum Discussion

pmscorca's avatar
pmscorca
Kudo Kingpin
3 months ago
Solved

Protecting or hiding the code of a notebook

Hi,

in Fabric is it possible to hide or encrypt or obfuscate the code inside a notebook in order to safeguard the intellectual property?

Many thanks

  • Hi pmscorca,

     

    Yes as an alternative approach, you can create a proprietary python custom library and call it from the notebook. This helps to reduce direct exposure of the core code since notebook users will only see the function calls rather than the underlying code.

    Currently, fabric does not provide a built in feature to hide or encrypt notebook code from the users who have access to the notebook.

    Your submitted idea is valuable feedback for improving IP protection capabilities in fabric notebooks.

     

    Thanks and regards,

    Anjan Kumar Chippa

6 Replies

  • Hi pmscorca,

    Thanks for the message, There is not any pre-defined library/function which can be used to encrypt or obfuscate the code inside a notebook.

     

    You can use follow some best practices as follows:

    • Provide minimim workspace role according to user's need.
    • Keep notebook in the less privileged/restricted workspace.
    • Use Azure key vault for storing sensitive infro and call throgh the notebook instead hard coading them in a cell.

     

    I hope this is the answer to your question. Please consdier as an accepted solution if it helps or give some kudos.

      • v-achippa's avatar
        v-achippa
        Community Support

        Hi pmscorca,

         

        Thank you for reaching out to Microsoft Fabric Community.

         

        Thank you Lodha_Jaydeep for the prompt response.

         

        Thank you for the response and confirming that you have raised this in the ideas forum. Thank you for being part of Microsoft Fabric Community.

         

        Thanks and regards,

        Anjan Kumar Chippa

  • Hi,

    as an alternative is it possible to create a proprietary Python custom library to call inside a notebook?

    Thanks

    • v-achippa's avatar
      v-achippa
      Community Support

      Hi pmscorca,

       

      Yes as an alternative approach, you can create a proprietary python custom library and call it from the notebook. This helps to reduce direct exposure of the core code since notebook users will only see the function calls rather than the underlying code.

      Currently, fabric does not provide a built in feature to hide or encrypt notebook code from the users who have access to the notebook.

      Your submitted idea is valuable feedback for improving IP protection capabilities in fabric notebooks.

       

      Thanks and regards,

      Anjan Kumar Chippa

      • v-achippa's avatar
        v-achippa
        Community Support

        Hi pmscorca,

         

        As we haven’t heard back from you, we wanted to kindly follow up to check if your issue is resolved? or let us know if you need any further assistance.

         

        Thanks and regards,

        Anjan Kumar Chippa