SQL Server Always Encrypted feature with KeyVault and MSI
See original GitHub issueQuestion
We are trying to use SQL Server Always Encrypted feature with KeyVault and MSI. Azure App Service MSI feature is used on the database on KeyVault. Please provide an example without keyvault ClientId and ClientSecret.
We have a working solution based on keyvault ClientId and ClientSecret, But we are checking a solution without using ClientId and ClientSecret.
SQLServerColumnEncryptionAzureKeyVaultProvider akvProvider = new SQLServerColumnEncryptionAzureKeyVaultProvider(alwaysOnEncyrptionClientId, alwaysOnEncyrptionClientSecret);
Map<String, SQLServerColumnEncryptionKeyStoreProvider> keyStoreMap = new HashMap<>();
keyStoreMap.put(akvProvider.getName(), akvProvider);
SQLServerConnection.registerColumnEncryptionKeyStoreProviders(keyStoreMap);
Relevant Issues and Pull Requests
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Tutorial: Getting started with Always Encrypted - SQL Server
This tutorial teaches you how to encrypt columns using Always Encrypted and how to query encrypted columns in SQL Server, Azure SQL Database ......
Read more >Access Azure SQL Always Encrypted Data in Power BI ...
Always Encrypted is a feature available in Azure SQL Database which allows ... Always Encrypted feature and the encryption keys saved in Azure...
Read more >Configuring Always Encrypted on Azure SQL by using Azure ...
Navigate to Key Vault access policy and then try to give your Azure Active directory account which you are going to use on...
Read more >Net Core 5.0 - Sql Azure + Always Encrypted + Managed Identity
The app service has Managed Identity turned on and Key Vault that has enc/dec keys for that SQL Db has access policy setting...
Read more >How to secure Azure Functions with Azure AD, Key Vault and ...
Process data: Secure access to Azure SQL from Azure Functions ... An Azure Function always has a supporting storage account attached.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi,
@venkatareddym, you can get the Azure Key Vault access token using the AzureServiceTokenProvider (from Microsoft.Azure.Services.AppAuthentication 1.2.0 preview).
The GetToken method:
hi all, as of the latest 8.3.0 preview release the driver added support for authentication to AKV using Managed Identity. Here is a wiki on how to use this feature. Please give this a try and let us know if you have any questions.
I’ll close this feature request issue now if any questions or problems please open a new issue. Thanks…