summaryrefslogtreecommitdiff
path: root/src/mongo/shell/encrypted_dbclient_base.cpp
AgeCommit message (Collapse)Author
2024-06-03SERVER-85791 Automatically chain generic argument structs to all ↵Patrick Freed
IDL-generated commands (#21983) GitOrigin-RevId: 5b4bf18413fe0f8d3c1dafc09c1f8584fecbbf05
2024-05-01SERVER-86999 Make secondary_reads_passthrough_with_replica_set_endpoint ↵Cheahuychou Mao
suite run FLE tests (#21726) GitOrigin-RevId: 6382609d0da0236853c9a273f0b08d73a35e1098
2024-04-25SERVER-89673: Correct lifetime of BSONElement in ↵James H
getTopBottomNValueExprHelper (#21399) SERVER-89673 Correct lifetime of BSONElement in getTopBottomNValueExprHelper() `getTopBottomNValueExprHelper()` returned a `BSONElement` referencing data owned by a `BSONObj` on the stack. This was "sometimes" safe, as `Document::toBson()` may return a copy of a pre-existing `BSONObj`, meaning the underlying buffer has other shared owners, and can outlive the stack `BSONObj`. However, for non `isTriviallyConvertible()` documents, a new buffer will be allocated for the stack `BSONObj`, which will be the sole owner, destroying it when it goes out of scope. To prevent such issues in the future, this patch annotates `BSONObj::getField()` with `[[lifetimebound]]`. This allows the compiler to catch cases where the returned element clearly outlives the object, and issue a warning. This allows some enforcement of the documented contract of `BSONElement` which indicates it should not outlive the parent `BSONObj`. By making this a concrete requirement, use of `BSONElement` becomes much less brittle; previously its safety often relied on un-enforced expectation that the underlying buffer is owned elsewhere - which could be violated by unrelated changes to buffer ownership. GitOrigin-RevId: 4017b857ce804b6edd259ddb204eeb7ebf530d2e
2024-04-12SERVER-64574 Upgrade third_party/mozjs with ESR115.7Santiago Roche
GitOrigin-RevId: 3a3a9d26d8a167c98e72afde863784e9a894ee8d
2024-03-30SERVER-84719 Remove dollar tenant from code base (#19711)Sophia Tan
GitOrigin-RevId: 0e7522126001f966e314c9ccc99391088c85b465
2024-03-28SERVER-88205 Eliminate redundant $db parses (#20179)Patrick Freed
GitOrigin-RevId: 4ec8693ea50bf584edf7eb2243524f4e685f911d
2024-03-14SERVER-87946 Don't attach encryptionInformation to compact unless there are ↵Erwin Pe
range fields GitOrigin-RevId: 0aa6f5a908e4cdfabd174c72e46fa2cdb4a1fb0f
2024-03-12SERVER-85747 Extend compactStructuredEncryptionDataSara Golemon
GitOrigin-RevId: 1f37d4b18b31c59f48d5a72a940dafa7f9064c95
2024-03-05SERVER-81825 Only support building OpMsgRequest with ValidatedTenancyScopeSophia Tan
GitOrigin-RevId: 89867354e89599a2f6e90983b8db157a458bd8b4
2024-03-01SERVER-85993 Make db client create OpMsgRequest with validated tenancy scope ↵Sophia Tan
(#19103) GitOrigin-RevId: 987e09f32c9acd86df9d01cc987c45862b991b5b
2024-02-15SERVER-82680 Make FLE encrypted client use unsigned security tokenMark Benvenuto
GitOrigin-RevId: 48a18fad18098b7ef67e65f763382ddc75320e47
2024-02-13Revert "SERVER-82680 Make FLE encrypted client use unsigned security token"Liubov Molchanova
This reverts commit d878630f123659e5e1a1b535725e6a60f4249950. GitOrigin-RevId: 9e1adf1b264ec6e406076de4ff7fdd069e6ed054
2024-02-13SERVER-82680 Make FLE encrypted client use unsigned security tokenMark Benvenuto
GitOrigin-RevId: d878630f123659e5e1a1b535725e6a60f4249950
2024-01-29SERVER-82339 Convert _alwaysAppendDollarTenant to _alwaysAttachSecurityToken ↵Joseph Prince
(#18312) GitOrigin-RevId: 143c4f4b62487366ece19e9931f22e16ccf3835b
2024-01-24SERVER-85608 Improve error messages in EncryptedDBClientBase::getEncryptedKeyErwin Pe
GitOrigin-RevId: 5070c88d139e94eb3ed0e5b5d03d1c0fe0df9b17
2023-12-03SERVER-82900 Removed mongo/stdx/variant.h and switched to std::variantVinod Kumar
GitOrigin-RevId: 2aa03564ad22ec0b4a3517924ec2cec3bfb2e208
2023-09-25SERVER-80549 Make DatabaseNameUtil::de/serialize no longer use default ↵Mathis Bessa
serialization context
2023-09-23SERVER-81059 bulk-revert of include of boost iif.hppBilly Donahue
2023-09-14SERVER-80505 Split generic DBClientConnection functionality into superclass ↵Patrick Freed
(DBClientSession)
2023-09-07SERVER-65456 Make NamespaceString::db_deprecated() privateMathis Bessa
2023-07-25SERVER-79074 Replace NamespaceString::db() with NamespaceString::db_deprecated()Mathis Bessa
2023-07-03SERVER-77600 Add a Queryable Encryption test in jstests/coreErwin Pe
2023-07-01SERVER-77049 SERVER-77050 IWYU automated changes up to 1.0Daniel Moody
2023-06-06SERVER-77689 Remove NamespaceString ctors with default parameter for ↵mathisbessamdb
tenantId - test
2023-05-24SERVER-74490 Change NamespaceString::ns() to be private - encrypted clientmathisbessamdb
2023-05-10SERVER-74491 Make DatabaseName::toString privatemathisbessamdb
2023-04-26SERVER-74493 Make DatabaseName constructors privatemathisbessamdb
2023-04-18SERVER-74486 Always include tenant in collection name attributes in error ↵Sophia Tan
messages
2023-04-17SERVER-72937 Create the QE cleanupStructuredEncryptionData command skeleton ↵Shreyas Kalyan
for mongod
2023-03-22SERVER-72947 Create shell helper that can be used to call ↵Shreyas Kalyan
cleanupStructuredEncryptionData
2023-02-28SERVER-73189 Change DbClient runCommandWithTarget to take in a DatabaseName ↵Sophia Tan
object
2023-02-23Revert "SERVER-73189 Change DbClient runCommandWithTarget to take in a ↵Uladzimir Makouski
DatabaseName object" This reverts commit 26ab9caac209c31ab6b51a71e241699e12875833.
2023-02-23SERVER-73189 Change DbClient runCommandWithTarget to take in a DatabaseName ↵Sophia Tan
object
2023-02-04SERVER-72942 Change DBClient *Collection functions to use NamespaceString ↵Sophia Tan
objects
2023-02-03SERVER-72809 Add FLE test coverage for NTDImathisbessamdb
2023-01-23SERVER-72948 Change DBClient runCommand function to use DatabaseName objectSophia Tan
2022-12-09SERVER-71322 Change FLEClientCrypto::decryptDocument to use libmongocrypt ↵Mark Benvenuto
for decryption
2022-11-23SERVER-71318 Remove remote KMS specific code and related testsMark Benvenuto
2022-11-21Revert "SERVER-71318 Remove remote KMS specific code and related tests"Mark Benvenuto
This reverts commit c29635f02bfcd6e27b6b20debf66ba1e7fdfc171.
2022-11-21SERVER-71318 Remove remote KMS specific code and related testsMark Benvenuto
2022-08-15SERVER-66554 Make FLE2 suites work with stepdown and kill_primary suitesShreyas Kalyan
2022-07-27SERVER-68246 rewrite calls to boost::optional get and is_initializedBilly Donahue
2022-07-26SERVER-67824 Rename IDLParserErrorContext to IDLParserContextHugh Tong
2022-07-06SERVER-65946 Have DBClient::call always throw exceptions on failureJason Chan
2022-06-22SERVER-62206 Remove DBClientBase::query_DEPRECATED()David Storch
Also includes related simplifications to the implementation of 'DBClientCursor'.
2022-06-10SERVER-65955 Migrate shell exhaust path onto modern internal client APIDavid Storch
In doing so, this also fixes the shell's C++ native query path to correctly handle negative limit. The patch also includes additional preparatory work for deleting the query_DEPRECATED() internal client API.
2022-05-12SERVER-66381 Support mongo shell cursor cleanup for FLEMark Benvenuto
2022-03-15SERVER-63467 Create a shell helper that can be used to call compact ↵Erwin Pe
encryption data
2022-03-11SERVER-64287 Create sharding variant of fle2 test suiteMark Benvenuto
2022-03-10SERVER-63645 shell - support FLE 2 client-side transformationsShreyas Kalyan