From 5b6dfa169031f8e0d68d5d2ce665c4d977d06494 Mon Sep 17 00:00:00 2001 From: Davis Haupt Date: Tue, 3 May 2022 16:56:06 +0000 Subject: SERVER-64911 Add create, collMod and createIndexes to list of commands to send to encryption --- src/mongo/shell/encrypted_dbclient_base.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/mongo/shell/encrypted_dbclient_base.h b/src/mongo/shell/encrypted_dbclient_base.h index 8a6bab60f59..4c0a75434fb 100644 --- a/src/mongo/shell/encrypted_dbclient_base.h +++ b/src/mongo/shell/encrypted_dbclient_base.h @@ -67,7 +67,7 @@ constexpr uint8_t kRandomEncryptionBit = 0x02; static constexpr auto kExplain = "explain"_sd; -constexpr std::array kEncryptedCommands = {"aggregate"_sd, +constexpr std::array kEncryptedCommands = {"aggregate"_sd, "count"_sd, "delete"_sd, "distinct"_sd, @@ -77,7 +77,10 @@ constexpr std::array kEncryptedCommands = {"aggregate"_sd, "findAndModify"_sd, "getMore"_sd, "insert"_sd, - "update"_sd}; + "update"_sd, + "create"_sd, + "createIndexes"_sd, + "collMod"_sd}; class EncryptedDBClientBase : public DBClientBase, public mozjs::EncryptionCallbacks, -- cgit v1.2.1