diff options
author | Cheahuychou Mao <mao.cheahuychou@gmail.com> | 2020-11-23 06:40:22 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-01-05 00:39:04 +0000 |
commit | fee631bc61d2fc85bd727967cfb4f2f243395461 (patch) | |
tree | e7ef493d74477b00b93f242e6ea973877d1a4306 /src/mongo/db/auth | |
parent | e2f5ada302c5541dc7af96391583e327820a5f5e (diff) | |
download | mongo-fee631bc61d2fc85bd727967cfb4f2f243395461.tar.gz |
SERVER-52708 Make tenant migration donor take certificate as string in donorStartMigration command
Diffstat (limited to 'src/mongo/db/auth')
-rw-r--r-- | src/mongo/db/auth/sasl_commands.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/mongo/db/auth/sasl_commands.cpp b/src/mongo/db/auth/sasl_commands.cpp index f0b3783cb1f..e5e00a6b160 100644 --- a/src/mongo/db/auth/sasl_commands.cpp +++ b/src/mongo/db/auth/sasl_commands.cpp @@ -67,6 +67,8 @@ const bool autoAuthorizeDefault = true; class CmdSaslStart : public BasicCommand { public: + static constexpr StringData kPayloadField = "payload"_sd; + CmdSaslStart(); virtual ~CmdSaslStart(); @@ -78,8 +80,8 @@ public: const BSONObj&, std::vector<Privilege>*) const {} - StringData sensitiveFieldName() const final { - return "payload"_sd; + std::set<StringData> sensitiveFieldNames() const final { + return {kPayloadField}; } virtual bool run(OperationContext* opCtx, @@ -101,6 +103,8 @@ public: class CmdSaslContinue : public BasicCommand { public: + static constexpr StringData kPayloadField = "payload"_sd; + CmdSaslContinue(); virtual ~CmdSaslContinue(); @@ -111,8 +115,8 @@ public: const BSONObj&, std::vector<Privilege>*) const {} - StringData sensitiveFieldName() const final { - return "payload"_sd; + std::set<StringData> sensitiveFieldNames() const final { + return {kPayloadField}; } virtual bool run(OperationContext* opCtx, |