Alexey Serbin has posted comments on this change. Change subject: [security] Add per-connection nonce for Kerberos replay resistance ......................................................................
Patch Set 7: (10 comments) http://gerrit.cloudera.org:8080/#/c/6137/7//COMMIT_MSG Commit Message: PS7, Line 9: suceptible seems to be a typo: susceptible ? http://gerrit.cloudera.org:8080/#/c/6137/7/docs/design-docs/rpc.md File docs/design-docs/rpc.md: PS7, Line 540: tls nit: TLS ? http://gerrit.cloudera.org:8080/#/c/6137/7/src/kudu/rpc/sasl_common.cc File src/kudu/rpc/sasl_common.cc: Line 351: Status SaslEncode(sasl_conn_t* conn, const std::string& plaintext, std::string* encoded) { It seems you have just moved this method here, but while you are at it, consider addressing the comments below. It's up to you whether to address that in a separate changelist or here. PS7, Line 353: const char* out; : unsigned out_len; Consider making these local for the scope of the while() loop below. PS7, Line 358: plaintext.size() nit: maybe, create a constant for the scope of this method so it would not be necessary to call the string::size() method twice per loop? PS7, Line 374: const char* out; : unsigned out_len; Ditto: consider making there local for the while() loop below. Line 378: // have to call decode multiple times if our input is larger than this max. nit: does it make sense to call something like plaintext->reserve(encoded.size()) ? http://gerrit.cloudera.org:8080/#/c/6137/7/src/kudu/rpc/server_negotiation.cc File src/kudu/rpc/server_negotiation.cc: PS7, Line 788: CHECK_OK(s); DCHECK_OK(s) ? Otherwise, why to have that if (!s.ok()) {} closure below. http://gerrit.cloudera.org:8080/#/c/6137/7/src/kudu/security/crypto-test.cc File src/kudu/security/crypto-test.cc: PS7, Line 246: ASSERT_EQ nit here and below: the 'expected' parameter comes first in {ASSERT,EXPECT}_EQ() macros. PS7, Line 247: string(kNonceSize, '\0') nit: consider making this a constant (or event static constant) for this test. -- To view, visit http://gerrit.cloudera.org:8080/6137 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-MessageType: comment Gerrit-Change-Id: If0fb433896963be5e81d349ebf3a044a458e6627 Gerrit-PatchSet: 7 Gerrit-Project: kudu Gerrit-Branch: master Gerrit-Owner: Dan Burkert <danburk...@apache.org> Gerrit-Reviewer: Alexey Serbin <aser...@cloudera.com> Gerrit-Reviewer: Dan Burkert <danburk...@apache.org> Gerrit-Reviewer: Kudu Jenkins Gerrit-Reviewer: Tidy Bot Gerrit-Reviewer: Todd Lipcon <t...@apache.org> Gerrit-HasComments: Yes