MachineLearningNotebooks icon indicating copy to clipboard operation
MachineLearningNotebooks copied to clipboard

Delete Secrets from AML's Keyvault

Open MAQ-Ravijit-Ramana opened this issue 5 years ago • 5 comments

Recently we found out that our AML's Keyvault has 160 auto-created secrets. How can we manage/delete them ?

MAQ-Ravijit-Ramana avatar Jun 24 '21 09:06 MAQ-Ravijit-Ramana

any replies ?

MAQ-Ravijit-Ramana avatar Jun 29 '21 08:06 MAQ-Ravijit-Ramana

Hi @MAQ-Ravijit-Ramana - Apologies for the delay in responding to you as this item got triaged in the team. Azure ML creates secrets in the Key Vault while managing connections to linked Azure services. As of today, there's no easy way to clean these up via the service. For manageability, we recommend creating a Key Vault instance per azure machine learning workspace. Could you maybe clarify your resource set up, and the management challenges created by this set up, so that we can plan for improving this experience?

denniseik avatar Jun 29 '21 16:06 denniseik

@denniseik No worries, We had a check on number of secrets so we thought if we could reduce these rotate these secrets that would make it more secure. We have a designated key vault for every AML workspace

MAQ-Ravijit-Ramana avatar Jun 29 '21 17:06 MAQ-Ravijit-Ramana

@MAQ-Ravijit-Ramana Thank you for the feedback, it will help us improve. With regards to key rotation, please also refer to this article: https://docs.microsoft.com/en-us/azure/machine-learning/how-to-change-storage-access-key

denniseik avatar Jun 29 '21 17:06 denniseik

We have fixed the code to delete the secrets when the service/endpoint is deleted

salilbapat avatar Jul 20 '21 16:07 salilbapat