Forum Discussion

Maverikk's avatar
Maverikk
Frequent Visitor
10 months ago
Solved

pass KeyVault values OUT OF Notebook to pipeline to consume - securely

I have a fabric pipeline that initiates a Notebook that calls to KeyVault to return a bearer_token, this is [REDACTED], but when I use mssparkutils.notebook.exit in my Notebook it passes out the stri...
  • Anonymous's avatar
    Anonymous
    9 months ago

    Hi Maverikk ,

     

     I completely understand the frustration here. What you are seeing with the notebook returning the value as REDACTED is the expected behavior in Fabric because the platform will not allow a secret retrieved inside a notebook to be passed back out to the pipeline. Anything Fabric detects as sensitive is automatically masked so that it never leaves the secure execution boundary. This means that even though the notebook can authenticate with Workspace Identity and obtain the token, there is no supported way to expose that token for a downstream activity to use. At the moment, Fabric does not provide an end to end pattern where a notebook retrieves a secret and then hands it back to a pipeline activity such as Copy. The only supported approach today is to have the pipeline itself retrieve the token through a connection that uses a service principal, because that is the identity type pipelines are currently able to authenticate with. I know that is not the workflow you were hoping for, but it is the secure and supported path with the capabilities that exist right now.

    Thank you.