Dan Burkert has submitted this change and it was merged.

Change subject: server_negotiation: improve error handling
......................................................................


server_negotiation: improve error handling

Unlike in the client negotiator, the server negotiator should send an
error response back to the client on authentication failure.  We were
missing this in a few cases, notably around token and cert
authentication failures. This also adds a new token-specific rpc error
code which is used when the client should discard its token and request
a new one from the master.

Change-Id: I64f9c0f59aa608bf5078d65883a7d9a6fb186c04
Reviewed-on: http://gerrit.cloudera.org:8080/6154
Tested-by: Kudu Jenkins
Reviewed-by: Alexey Serbin <[email protected]>
---
M src/kudu/rpc/negotiation-test.cc
M src/kudu/rpc/rpc_header.proto
M src/kudu/rpc/server_negotiation.cc
M src/kudu/security/token_verifier.cc
M src/kudu/security/token_verifier.h
5 files changed, 73 insertions(+), 18 deletions(-)

Approvals:
  Alexey Serbin: Looks good to me, approved
  Kudu Jenkins: Verified



-- 
To view, visit http://gerrit.cloudera.org:8080/6154
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I64f9c0f59aa608bf5078d65883a7d9a6fb186c04
Gerrit-PatchSet: 5
Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-Owner: Dan Burkert <[email protected]>
Gerrit-Reviewer: Alexey Serbin <[email protected]>
Gerrit-Reviewer: Dan Burkert <[email protected]>
Gerrit-Reviewer: Kudu Jenkins
Gerrit-Reviewer: Todd Lipcon <[email protected]>

Reply via email to