From ac09a7a3ea5573433d8026dc09f8aa3268edd54f Mon Sep 17 00:00:00 2001 From: Johnny Pham Date: Wed, 19 May 2021 13:29:58 -0700 Subject: [PATCH 1/2] disable local cek cache for global providers --- .../netcore/src/Microsoft/Data/SqlClient/SqlConnection.cs | 5 +++-- .../netfx/src/Microsoft/Data/SqlClient/SqlConnection.cs | 5 +++-- .../src/Microsoft/Data/SqlClient/SqlSymmetricKeyCache.cs | 2 ++ .../tests/ManualTests/AlwaysEncrypted/AKVUnitTests.cs | 2 +- 4 files changed, 9 insertions(+), 5 deletions(-) diff --git a/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SqlConnection.cs b/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SqlConnection.cs index 7e7ca226e7..6adcc5c078 100644 --- a/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SqlConnection.cs +++ b/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SqlConnection.cs @@ -314,9 +314,10 @@ public static void RegisterColumnEncryptionKeyStoreProviders(IDictionary Date: Wed, 19 May 2021 13:55:09 -0700 Subject: [PATCH 2/2] remove static akv name --- .../netcore/src/Microsoft/Data/SqlClient/SqlConnection.cs | 2 -- .../netfx/src/Microsoft/Data/SqlClient/SqlConnection.cs | 2 -- 2 files changed, 4 deletions(-) diff --git a/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SqlConnection.cs b/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SqlConnection.cs index 6adcc5c078..5ce75ba598 100644 --- a/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SqlConnection.cs +++ b/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SqlConnection.cs @@ -98,8 +98,6 @@ private static readonly Dictionary /// private static IReadOnlyDictionary s_globalCustomColumnEncryptionKeyStoreProviders; - private static string s_akvProviderName = "AZURE_KEY_VAULT"; - /// /// Dictionary object holding trusted key paths for various SQL Servers. /// Key to the dictionary is a SQL Server Name diff --git a/src/Microsoft.Data.SqlClient/netfx/src/Microsoft/Data/SqlClient/SqlConnection.cs b/src/Microsoft.Data.SqlClient/netfx/src/Microsoft/Data/SqlClient/SqlConnection.cs index a404e7d9f4..ef0d91934e 100644 --- a/src/Microsoft.Data.SqlClient/netfx/src/Microsoft/Data/SqlClient/SqlConnection.cs +++ b/src/Microsoft.Data.SqlClient/netfx/src/Microsoft/Data/SqlClient/SqlConnection.cs @@ -67,8 +67,6 @@ private static Dictionary s_systemC /// private static IReadOnlyDictionary s_globalCustomColumnEncryptionKeyStoreProviders; - private static string s_akvProviderName = "AZURE_KEY_VAULT"; - /// Instance-level list of custom key store providers. It can be set more than once by the user. private IReadOnlyDictionary _customColumnEncryptionKeyStoreProviders;