Mount Points in Databricks with Key Vault secret rotation

Wentzler, Charlotte 41 Reputation points
2023-04-18T15:46:53.3733333+00:00

I created a secret in Key Vault storing the credentials for an ADLS. I need to get access to a blob in the ADLS from Databricks. The problem is that every month, the keys are rotated for security reasons. If I understood it correctly, if I create a secret scope in Databricks and the keys are rotated after one month, they are not refreshed/updated automatically in the secret scope? Is there a workaround or a different method to get access from Databricks to the ADLS? If I use the Databricks CLI with this command:

databricks secrets create-scope --scope <scope-name> --scope-backend-type AZURE_KEYVAULT --resource-id <azure-keyvault-resource-id> --dns-name <azure-keyvault-dns-name> --initial-manage-principal users

it won't work either correct? I was wondering because here the resource ID and Vault URI are used. Thank you in advance!

Azure Key Vault
Azure Key Vault
An Azure service that is used to manage and protect cryptographic keys and other secrets used by cloud apps and services.
1,448 questions
Azure Databricks
Azure Databricks
An Apache Spark-based analytics platform optimized for Azure.
2,517 questions
{count} votes

Accepted answer
  1. PRADEEPCHEEKATLA 90,641 Reputation points Moderator
    2023-04-19T06:35:17.96+00:00


    Wentzler, Charlotte
    - Thanks for the question and using MS Q&A platform.

    Yes, you are correct that if you create a secret scope in Databricks and the keys are rotated after one month, they are not automatically updated in the secret scope. To work around this issue, you can use the Key Vault-backed secret scope feature in Databricks.

    With Key Vault-backed secret scope, the secrets are fetched from the Key Vault at runtime, which means that the secrets are always up-to-date with the latest version in the Key Vault. This feature provides automatic rotation of secrets in the Key Vault and ensures that the secrets used by your Databricks workloads are always up-to-date.

    For more details, refer to the below MS Q&A thread addressing similar issue:

    https://learn.microsoft.com/en-us/answers/questions/1185280/databricks-secretscope-secret-versions

    Hope this helps. Do let us know if you any further queries.

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.