Forum Discussion

x_mark_x's avatar
x_mark_x
Advocate II
1 year ago
Solved

Write secret to Key Vault from Fabric Notebook

Hello there Fabricators!   I am using a Fabric Notebook to access an Azure Key Vault and get a secret. This secret is a refresh token which I am than using in the Notebook to call an OAuth2 API to ...
  • x_mark_x's avatar
    x_mark_x
    1 year ago

    Hi Anonymous 

     

    Thank you for your reply. Yes, I got a confirmation from a Cloud Solution Architect @ Microsoft that the putSecret method is not working now, but is under developement at the moment.
    I guess we just have to wait it out.

    There are plenty of ideas regarding the Key Vault integration already, so I just voted for them and avoided creating more noise ğŸ™‚

    Meanwhile my solution was to store the tokens in a table instead. In case of OAuth2 authentication, the access token is only valid for 1 hour (in my case) and the refresh token itself do not have any significance without the client-id and client-secret combination, and I could easily and safely get it using the getSecret method.
    The token is read from the table, and when a token refresh is necessary, I read the client-id and secret from the Key Vault and send these two with my refresh token as a request.

    When the putSecret method is implemented, I will change this solution, so that even the tokens are saved in the Key Vault, for an extra layer of protection.

     

    Thank you for your time and response Xiaoxin.