You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@kudu.apache.org by "Andrew Wong (Code Review)" <ge...@cloudera.org> on 2018/10/22 21:47:30 UTC
[kudu-CR] WIP KUDU-2543: pass around default authz tokens
Andrew Wong has uploaded this change for review. ( http://gerrit.cloudera.org:8080/11751
Change subject: WIP KUDU-2543: pass around default authz tokens
......................................................................
WIP KUDU-2543: pass around default authz tokens
WIP: add tests
WIP: Also, given I'm passing around "all" privileges, we should be able to default
this to true, but some tests don't use the client to send requests, and
those tests would fail.
WIP: think more about caching tokens in the client; right now it's very
simple, but maybe that's ok.
Adds authz token generation to the master's GetTabletSchema endpoint,
with which clients can authorize themselves for specific tables via
authz token. A client will cache these tokens and use them appropriately
for RPCs that need them (e.g. Writes and Scans), reacquiring them when
receiving word that they are expired.
This adds no privilege-checking and only introduces basic token
validations (e.g. should be well formed, not expired, etc.). I reused
the authn verification RPC logic, but put it in the tablet server layer.
Change-Id: I99555e0ab2d09d4abcbc12b1100658a9a17590f4
---
M src/kudu/client/batcher.cc
M src/kudu/client/client-internal.cc
M src/kudu/client/client-internal.h
M src/kudu/client/scanner-internal.cc
M src/kudu/client/scanner-internal.h
M src/kudu/master/master.proto
M src/kudu/master/master_service.cc
M src/kudu/rpc/CMakeLists.txt
M src/kudu/rpc/retriable_rpc.h
M src/kudu/rpc/rpc_header.proto
A src/kudu/rpc/rpc_verification_util.cc
A src/kudu/rpc/rpc_verification_util.h
M src/kudu/rpc/server_negotiation.cc
M src/kudu/tserver/tablet_service.cc
M src/kudu/tserver/tserver.proto
15 files changed, 387 insertions(+), 32 deletions(-)
git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/51/11751/1
--
To view, visit http://gerrit.cloudera.org:8080/11751
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I99555e0ab2d09d4abcbc12b1100658a9a17590f4
Gerrit-Change-Number: 11751
Gerrit-PatchSet: 1
Gerrit-Owner: Andrew Wong <aw...@cloudera.com>
[kudu-CR] KUDU-2543 pt 1: basic checks for authz tokens
Posted by "Andrew Wong (Code Review)" <ge...@cloudera.org>.
Hello Tidy Bot, Alexey Serbin, Kudu Jenkins, Adar Dembo, Hao Hao,
I'd like you to reexamine a change. Please visit
http://gerrit.cloudera.org:8080/11751
to look at the new patch set (#11).
Change subject: KUDU-2543 pt 1: basic checks for authz tokens
......................................................................
KUDU-2543 pt 1: basic checks for authz tokens
In preparation for passing around authorization tokens, the tservers are
now fitted with minimal token-verifying logic that protects the write
and the various scan-like endpoints (i.e. scans, checksum scans, and
split-key requests), optionally enforcing that the client has provided a
valid authz token. I put the negotiation authn token verification logic
into its own function for reuse in the tserver layer.
It's worth noting that scan-like requests that have a concept of a "new"
request vs a "continue" request (i.e. scans, checksum scans) will only
need verification on "new" requests. "Continue" requests are handled in
that a scanner cannot be hijacked by a user who didn't create it.
A test is added to test various scenarios at the tserver level.
Change-Id: I99555e0ab2d09d4abcbc12b1100658a9a17590f4
---
M src/kudu/rpc/CMakeLists.txt
M src/kudu/rpc/rpc_header.proto
A src/kudu/rpc/rpc_verification_util.cc
A src/kudu/rpc/rpc_verification_util.h
M src/kudu/rpc/server_negotiation.cc
M src/kudu/security/token_verifier.cc
M src/kudu/tserver/CMakeLists.txt
M src/kudu/tserver/tablet_server-test-base.h
A src/kudu/tserver/tablet_server_authorization-test.cc
M src/kudu/tserver/tablet_service.cc
M src/kudu/tserver/tserver.proto
M src/kudu/tserver/tserver_service.proto
12 files changed, 600 insertions(+), 37 deletions(-)
git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/51/11751/11
--
To view, visit http://gerrit.cloudera.org:8080/11751
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I99555e0ab2d09d4abcbc12b1100658a9a17590f4
Gerrit-Change-Number: 11751
Gerrit-PatchSet: 11
Gerrit-Owner: Andrew Wong <aw...@cloudera.com>
Gerrit-Reviewer: Adar Dembo <ad...@cloudera.com>
Gerrit-Reviewer: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Andrew Wong <aw...@cloudera.com>
Gerrit-Reviewer: Hao Hao <ha...@cloudera.com>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Tidy Bot (241)
[kudu-CR] KUDU-2543 pt 1: basic checks for authz tokens
Posted by "Alexey Serbin (Code Review)" <ge...@cloudera.org>.
Alexey Serbin has posted comments on this change. ( http://gerrit.cloudera.org:8080/11751 )
Change subject: KUDU-2543 pt 1: basic checks for authz tokens
......................................................................
Patch Set 12: Code-Review+2
(7 comments)
http://gerrit.cloudera.org:8080/#/c/11751/12//COMMIT_MSG
Commit Message:
http://gerrit.cloudera.org:8080/#/c/11751/12//COMMIT_MSG@13
PS12, Line 13: negotiation
nit: drop?
http://gerrit.cloudera.org:8080/#/c/11751/12/src/kudu/tserver/tablet_server-test-base.h
File src/kudu/tserver/tablet_server-test-base.h:
http://gerrit.cloudera.org:8080/#/c/11751/12/src/kudu/tserver/tablet_server-test-base.h@127
PS12, Line 127: static const char* kTableId;
: static const char* kTabletId;
nit: if making this public, maybe make sure it's not possible to change the pointers as well?
static const char* const k{Table,Talbet}Id;
http://gerrit.cloudera.org:8080/#/c/11751/9/src/kudu/tserver/tablet_server_authorization-test.cc
File src/kudu/tserver/tablet_server_authorization-test.cc:
http://gerrit.cloudera.org:8080/#/c/11751/9/src/kudu/tserver/tablet_server_authorization-test.cc@204
PS9, Line 204: CHECK_OK(signer.GenerateAuthzToken(kUser, privilege,
> Yes, specifically when debugging. Since each of these TokenCreators are run
SGTM
http://gerrit.cloudera.org:8080/#/c/11751/9/src/kudu/tserver/tablet_server_authorization-test.cc@212
PS9, Line 212:
> Done
Thanks!
http://gerrit.cloudera.org:8080/#/c/11751/9/src/kudu/tserver/tablet_server_authorization-test.cc@227
PS9, Line 227: token_creators.emplace_back([&] {
: LOG(INFO) << "Generating authn token instead of authz token";
: SignedTokenPB token;
: CHECK_OK(signer.GenerateAuthnToken(kUser, &token));
: return token;
: });
: token_creators.emplace_back([&] {
: LOG(INFO) << "Generating expired authz token";
: TokenSigningPrivateKeyPB tsk = GetTokenSigningPrivateKey(2);
: shared_ptr<TokenVerifier> verifier(new TokenVerifier());
: TokenSigner expired_signer(3600, /*authz_token_validity_seconds=*/1, 3600, verifier);
: CHECK_OK(expired_signer.ImportKeys({ tsk }));
: vector<TokenSigningPublicKeyPB> expired_public_keys = verifier->ExportKeys();
: CHECK_OK(mini_server_->server()->mutable_token_verifier()->ImportKeys(public_keys));
:
> It does, I have that in pt 2 of this patch series here https://gerrit.cloud
SGTM
http://gerrit.cloudera.org:8080/#/c/11751/9/src/kudu/tserver/tablet_service.cc
File src/kudu/tserver/tablet_service.cc:
http://gerrit.cloudera.org:8080/#/c/11751/9/src/kudu/tserver/tablet_service.cc@146
PS9, Line 146: DEFINE_bool(tserver_enforce_access_control, false,
> It might be nice, but I don't think it's necessary. We don't enforce such c
SGTM
http://gerrit.cloudera.org:8080/#/c/11751/9/src/kudu/tserver/tserver_service.proto
File src/kudu/tserver/tserver_service.proto:
http://gerrit.cloudera.org:8080/#/c/11751/9/src/kudu/tserver/tserver_service.proto@100
PS9, Line 100: optional ResourceMetricsPB resource_metrics = 7;
: }
:
> Done; good catch, this doesn't belong at all. It's a part of the ChecksumRe
Great, thank for the clarification.
--
To view, visit http://gerrit.cloudera.org:8080/11751
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I99555e0ab2d09d4abcbc12b1100658a9a17590f4
Gerrit-Change-Number: 11751
Gerrit-PatchSet: 12
Gerrit-Owner: Andrew Wong <aw...@cloudera.com>
Gerrit-Reviewer: Adar Dembo <ad...@cloudera.com>
Gerrit-Reviewer: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Andrew Wong <aw...@cloudera.com>
Gerrit-Reviewer: Hao Hao <ha...@cloudera.com>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Tidy Bot (241)
Gerrit-Comment-Date: Sun, 27 Jan 2019 22:35:11 +0000
Gerrit-HasComments: Yes
[kudu-CR] WIP KUDU-2543: pass around default authz tokens
Posted by "Andrew Wong (Code Review)" <ge...@cloudera.org>.
Andrew Wong has posted comments on this change. ( http://gerrit.cloudera.org:8080/11751 )
Change subject: WIP KUDU-2543: pass around default authz tokens
......................................................................
Patch Set 2:
(37 comments)
http://gerrit.cloudera.org:8080/#/c/11751/1//COMMIT_MSG
Commit Message:
http://gerrit.cloudera.org:8080/#/c/11751/1//COMMIT_MSG@16
PS1, Line 16:
> GetTableSchema
Done
http://gerrit.cloudera.org:8080/#/c/11751/1/src/kudu/client/batcher.cc
File src/kudu/client/batcher.cc:
http://gerrit.cloudera.org:8080/#/c/11751/1/src/kudu/client/batcher.cc@94
PS1, Line 94: using rpc::Rpc;
> warning: using decl 'Rpc' is unused [misc-unused-using-decls]
Done
http://gerrit.cloudera.org:8080/#/c/11751/1/src/kudu/client/batcher.cc@95
PS1, Line 95: using tserver::WriteRequestPB;
> warning: using decl 'RpcController' is unused [misc-unused-using-decls]
Done
http://gerrit.cloudera.org:8080/#/c/11751/1/src/kudu/client/batcher.cc@96
PS1, Line 96: using tserver::WriteResponsePB;
> warning: using decl 'ServerPicker' is unused [misc-unused-using-decls]
Done
http://gerrit.cloudera.org:8080/#/c/11751/1/src/kudu/client/batcher.cc@97
PS1, Line 97: using tserver::WriteResponsePB_PerRowErrorPB;
> warning: using decl 'SignedTokenPB' is unused [misc-unused-using-decls]
Done
http://gerrit.cloudera.org:8080/#/c/11751/1/src/kudu/client/batcher.cc@483
PS1, Line 483: o
> z ?
Done
http://gerrit.cloudera.org:8080/#/c/11751/1/src/kudu/client/client-internal.cc
File src/kudu/client/client-internal.cc:
http://gerrit.cloudera.org:8080/#/c/11751/1/src/kudu/client/client-internal.cc@664
PS1, Line 664: const string& table_name,
> If the response doesn't have an authorization token, should an existing tok
Good question. That would simplify revoking client privileges if we wanted to get around to implementing that. Otherwise, I'm trying to think of a scenario where this would be desirable. Assuming we always use authz tokens once the feature is shipped, this would only happen if the client starts talking to an older master, no? In which case I don't think it would matter.
http://gerrit.cloudera.org:8080/#/c/11751/1/src/kudu/client/client-internal.cc@749
PS1, Line 749: name = leader_add
> nit: naming wise I think something like 'RetrieveAuthorizationToken' or sim
Done
http://gerrit.cloudera.org:8080/#/c/11751/1/src/kudu/client/scanner-internal.h
File src/kudu/client/scanner-internal.h:
http://gerrit.cloudera.org:8080/#/c/11751/1/src/kudu/client/scanner-internal.h@92
PS1, Line 92: a
> here and above the comma isn't necessary.
Done
http://gerrit.cloudera.org:8080/#/c/11751/1/src/kudu/client/scanner-internal.cc
File src/kudu/client/scanner-internal.cc:
http://gerrit.cloudera.org:8080/#/c/11751/1/src/kudu/client/scanner-internal.cc@65
PS1, Line 65: using strings::Substitute;
> warning: using decl 'SignedTokenPB' is unused [misc-unused-using-decls]
Done
http://gerrit.cloudera.org:8080/#/c/11751/1/src/kudu/client/scanner-internal.cc@348
PS1, Line 348: }
> This is an expected outcome when connecting to an older master, right? May
Done
http://gerrit.cloudera.org:8080/#/c/11751/1/src/kudu/master/master.proto
File src/kudu/master/master.proto:
http://gerrit.cloudera.org:8080/#/c/11751/1/src/kudu/master/master.proto@635
PS1, Line 635:
:
> I think we want to have it always enabled, right? At that point it would o
True, updated to incorporate both statements.
http://gerrit.cloudera.org:8080/#/c/11751/1/src/kudu/master/master.proto@636
PS1, Line 636:
> returns
Done
http://gerrit.cloudera.org:8080/#/c/11751/1/src/kudu/master/master_service.cc
File src/kudu/master/master_service.cc:
http://gerrit.cloudera.org:8080/#/c/11751/1/src/kudu/master/master_service.cc@83
PS1, Line 83: using kudu::security::SignedTokenPB;
> warning: using decl 'ColumnPrivilegePB' is unused [misc-unused-using-decls]
Done
http://gerrit.cloudera.org:8080/#/c/11751/1/src/kudu/master/master_service.cc@422
PS1, Line 422: = server_-
> This behavior assumes other error cases (like empty remote_user().username(
Hrm, indeed. We should probably just return an error, unless having no username is something we support (don't think that's the case though with secured clusters), right?
http://gerrit.cloudera.org:8080/#/c/11751/1/src/kudu/rpc/retriable_rpc.h
File src/kudu/rpc/retriable_rpc.h:
http://gerrit.cloudera.org:8080/#/c/11751/1/src/kudu/rpc/retriable_rpc.h@99
PS1, Line 99:
> Authn
Done
http://gerrit.cloudera.org:8080/#/c/11751/1/src/kudu/rpc/retriable_rpc.h@175
PS1, Line 175:
: template <class Server, class RequestPB, class ResponsePB>
: void RetriableRpc<Server, RequestPB, ResponsePB>::GotNewAuthnTokenRetryCb(
: const Status& status) {
: GotNewTokenRetryCb(status, "authn");
: }
:
: template <class Server, class RequestPB, class ResponsePB>
: void RetriableRpc<Server, RequestPB, ResponsePB>::GotNewAuthzTokenRetryCb(
: const Status& status) {
: GotNewTokenRetryCb(status, "authz");
: }
:
> This looks identical to GetNewAuthnTokenAndRetryCb() with exception of VLOG
Done
http://gerrit.cloudera.org:8080/#/c/11751/1/src/kudu/rpc/rpc_header.proto
File src/kudu/rpc/rpc_header.proto:
http://gerrit.cloudera.org:8080/#/c/11751/1/src/kudu/rpc/rpc_header.proto@333
PS1, Line 333: authentication
> authorization
Done
http://gerrit.cloudera.org:8080/#/c/11751/1/src/kudu/rpc/rpc_header.proto@335
PS1, Line 335: FATAL_INVALID_AUTHENTICATION_TOKE
> This should be an ERROR, not FATAL, since the connection should be able to
Done
http://gerrit.cloudera.org:8080/#/c/11751/1/src/kudu/rpc/rpc_verification_util.h
File src/kudu/rpc/rpc_verification_util.h:
http://gerrit.cloudera.org:8080/#/c/11751/1/src/kudu/rpc/rpc_verification_util.h@37
PS1, Line 37: RPC
> RPC error code?
Done
http://gerrit.cloudera.org:8080/#/c/11751/1/src/kudu/rpc/rpc_verification_util.h@40
PS1, Line 40: ed.
> This comment looks very specific to me since there is no 'token' concept de
Done, though it's worth noting that VerificationResult is the result of verifying a token.
http://gerrit.cloudera.org:8080/#/c/11751/1/src/kudu/rpc/rpc_verification_util.h@41
PS1, Line 41: ParseVerificationRes
> nit: name it ParseVerificationResult to be more clear?
Done
http://gerrit.cloudera.org:8080/#/c/11751/1/src/kudu/rpc/rpc_verification_util.cc
File src/kudu/rpc/rpc_verification_util.cc:
http://gerrit.cloudera.org:8080/#/c/11751/1/src/kudu/rpc/rpc_verification_util.cc@27
PS1, Line 27: using security::VerificationResult;
> warning: using decl 'SignedTokenPB' is unused [misc-unused-using-decls]
Done
http://gerrit.cloudera.org:8080/#/c/11751/1/src/kudu/rpc/rpc_verification_util.cc@28
PS1, Line 28:
> warning: using decl 'TokenPB' is unused [misc-unused-using-decls]
Done
http://gerrit.cloudera.org:8080/#/c/11751/1/src/kudu/rpc/rpc_verification_util.cc@45
PS1, Line 45:
> nit here and below: why this variable is necessary? Could it be just
Done
http://gerrit.cloudera.org:8080/#/c/11751/1/src/kudu/rpc/rpc_verification_util.cc@46
PS1, Line 46:
> std::move ?
Done
http://gerrit.cloudera.org:8080/#/c/11751/1/src/kudu/rpc/server_negotiation.cc
File src/kudu/rpc/server_negotiation.cc:
http://gerrit.cloudera.org:8080/#/c/11751/1/src/kudu/rpc/server_negotiation.cc@650
PS1, Line 650: // TODO(KUDU-1924): propagate the specific token verification failure back to the client,
> Is this done now?
No, the Jira goes into more detail on what specific things could be sent back.
http://gerrit.cloudera.org:8080/#/c/11751/1/src/kudu/tserver/tablet_service.cc
File src/kudu/tserver/tablet_service.cc:
http://gerrit.cloudera.org:8080/#/c/11751/1/src/kudu/tserver/tablet_service.cc@142
PS1, Line 142:
> We should think about whether this configuration could be dynamically set b
That's a reasonable thing to consider, though the benefit of having a feature flag is a bit more fail-safe. E.g. if we discover an issue that prevents a cluster from being usable outright, it'd be nice to just flip a flag to get around it (if that sort of thing is acceptable from a security perspective).
http://gerrit.cloudera.org:8080/#/c/11751/1/src/kudu/tserver/tablet_service.cc@382
PS1, Line 382: template <class AuthorizableRequest>
> Should this be checking that the username in the token and the username fro
Done
http://gerrit.cloudera.org:8080/#/c/11751/1/src/kudu/tserver/tablet_service.cc@388
PS1, Line 388:
> Does FATAL_UNAUTHORIZED intent to cover both authentication and authorizati
Hrm, that's fair. FATAL_UNAUTHORIZED here means that the request is coming from a source that we expect to not have the right permissions to make the request (i.e. it's not just a matter of refreshing their token). In this case, a missing authz token likely means that the request is being made by an old client.
And I think we can use it for both; both mean that the client should stop getting anything from the servers (instead of retrying).
http://gerrit.cloudera.org:8080/#/c/11751/1/src/kudu/tserver/tablet_service.cc@402
PS1, Line 402:
> Why is FATAL_UNAUTHORIZED code chosen here instead of INVALID_AUTHZ_TOKEN?
Yeah, we've discusses this here and there; I think a fair summary is that FATAL_UNAUTHORIZED will be used when the user isn't authorized but has a valid token. In all other cases, I think we'll send back a retriable error code.
http://gerrit.cloudera.org:8080/#/c/11751/1/src/kudu/tserver/tablet_service.cc@881
PS1, Line 881: }
> not used?
Done
http://gerrit.cloudera.org:8080/#/c/11751/1/src/kudu/tserver/tablet_service.cc@892
PS1, Line 892: if (!VerifyAuthzTokenOrRespond(server_->token_verifier(), req, context, &token)) {
> I assume this should have a TODO?
Done
http://gerrit.cloudera.org:8080/#/c/11751/1/src/kudu/tserver/tablet_service.cc@1390
PS1, Line 1390:
> It seems already requests to existing scanners are not going to be examined
Addressing this via KUDU-1918.
Ah I still need to move the authz token into NewScanRequestPB.
http://gerrit.cloudera.org:8080/#/c/11751/1/src/kudu/tserver/tablet_service.cc@1394
PS1, Line 1394: TRACE_EVENT0("tserver", "TabletServiceImpl::Scan");
> Also needs a TODO?
Done
http://gerrit.cloudera.org:8080/#/c/11751/1/src/kudu/tserver/tablet_service.cc@1489
PS1, Line 1489:
> Maybe, add a TODO into this method regarding verification of authz token in
Better yet, this needs verification.
http://gerrit.cloudera.org:8080/#/c/11751/1/src/kudu/tserver/tserver.proto
File src/kudu/tserver/tserver.proto:
http://gerrit.cloudera.org:8080/#/c/11751/1/src/kudu/tserver/tserver.proto@307
PS1, Line 307: p if you are
> Add SignedTokenPB for ChecksumRequestPB in tserver.proto as well?
Done
--
To view, visit http://gerrit.cloudera.org:8080/11751
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I99555e0ab2d09d4abcbc12b1100658a9a17590f4
Gerrit-Change-Number: 11751
Gerrit-PatchSet: 2
Gerrit-Owner: Andrew Wong <aw...@cloudera.com>
Gerrit-Reviewer: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Andrew Wong <aw...@cloudera.com>
Gerrit-Reviewer: Dan Burkert <da...@apache.org>
Gerrit-Reviewer: Hao Hao <ha...@cloudera.com>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Tidy Bot (241)
Gerrit-Comment-Date: Thu, 15 Nov 2018 08:28:13 +0000
Gerrit-HasComments: Yes
[kudu-CR] KUDU-2543: pass around default authz tokens
Posted by "Andrew Wong (Code Review)" <ge...@cloudera.org>.
Hello Tidy Bot, Alexey Serbin, Dan Burkert, Kudu Jenkins, Hao Hao,
I'd like you to reexamine a change. Please visit
http://gerrit.cloudera.org:8080/11751
to look at the new patch set (#6).
Change subject: KUDU-2543: pass around default authz tokens
......................................................................
KUDU-2543: pass around default authz tokens
Adds authz token generation to the master's GetTableSchema endpoint,
with which clients can authorize themselves for specific tables. A
client will cache these tokens and use them appropriately for RPCs that
need them (e.g. Writes and Scans), reacquiring them when receiving word
that they are expired.
This adds a minimal amount privilege-checking (i.e. no privileges? no
can do) and introduces basic token verification (tokens should be well
formed, not expired, etc.) for authz tokens. I reused the authn
verification negotiation logic, but put it in the tablet server layer.
This is tested in the following ways:
- unit tests for the new client-side cache for authz tokens
- parameterized the token expiration test for authn and authz tokens to
have varying token expirations, testing when authn tokens expire but
not authz tokens, and vice versa
- added a test to ensure that requests with various invalid authz tokens
(malformed, missing, wrong user) will be retried with a new token from
the master, and that requests with no permissions don't
- added a test to ensure that the client retries attempts to get an
token authz token when the master is unavailable for various reasons
- added a test to ensure that clients retry when they get an unknown TSK
- added a test to ensure that clients are still compatible with old
servers
Change-Id: I99555e0ab2d09d4abcbc12b1100658a9a17590f4
---
M src/kudu/client/CMakeLists.txt
A src/kudu/client/authz_token_cache.cc
A src/kudu/client/authz_token_cache.h
M src/kudu/client/batcher.cc
M src/kudu/client/client-internal.cc
M src/kudu/client/client-internal.h
M src/kudu/client/client-test.cc
M src/kudu/client/client.h
M src/kudu/client/scanner-internal.cc
M src/kudu/client/scanner-internal.h
M src/kudu/integration-tests/CMakeLists.txt
M src/kudu/integration-tests/authn_token_expire-itest.cc
A src/kudu/integration-tests/authz_token-itest.cc
M src/kudu/master/catalog_manager.h
M src/kudu/master/master.proto
M src/kudu/master/master_service.cc
M src/kudu/rpc/CMakeLists.txt
M src/kudu/rpc/retriable_rpc.h
M src/kudu/rpc/rpc.cc
M src/kudu/rpc/rpc.h
M src/kudu/rpc/rpc_header.proto
A src/kudu/rpc/rpc_verification_util.cc
A src/kudu/rpc/rpc_verification_util.h
M src/kudu/rpc/server_negotiation.cc
M src/kudu/security/token_verifier.cc
M src/kudu/tserver/tablet_service.cc
M src/kudu/tserver/tserver.proto
M src/kudu/tserver/tserver_service.proto
28 files changed, 1,491 insertions(+), 95 deletions(-)
git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/51/11751/6
--
To view, visit http://gerrit.cloudera.org:8080/11751
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I99555e0ab2d09d4abcbc12b1100658a9a17590f4
Gerrit-Change-Number: 11751
Gerrit-PatchSet: 6
Gerrit-Owner: Andrew Wong <aw...@cloudera.com>
Gerrit-Reviewer: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Andrew Wong <aw...@cloudera.com>
Gerrit-Reviewer: Dan Burkert <da...@apache.org>
Gerrit-Reviewer: Hao Hao <ha...@cloudera.com>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Tidy Bot (241)
[kudu-CR] KUDU-2543 pt 1: basic checks for authz tokens
Posted by "Hao Hao (Code Review)" <ge...@cloudera.org>.
Hao Hao has posted comments on this change. ( http://gerrit.cloudera.org:8080/11751 )
Change subject: KUDU-2543 pt 1: basic checks for authz tokens
......................................................................
Patch Set 12: Code-Review+2
--
To view, visit http://gerrit.cloudera.org:8080/11751
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I99555e0ab2d09d4abcbc12b1100658a9a17590f4
Gerrit-Change-Number: 11751
Gerrit-PatchSet: 12
Gerrit-Owner: Andrew Wong <aw...@cloudera.com>
Gerrit-Reviewer: Adar Dembo <ad...@cloudera.com>
Gerrit-Reviewer: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Andrew Wong <aw...@cloudera.com>
Gerrit-Reviewer: Hao Hao <ha...@cloudera.com>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Tidy Bot (241)
Gerrit-Comment-Date: Wed, 23 Jan 2019 23:29:03 +0000
Gerrit-HasComments: No
[kudu-CR] KUDU-2543: pass around default authz tokens
Posted by "Andrew Wong (Code Review)" <ge...@cloudera.org>.
Andrew Wong has posted comments on this change. ( http://gerrit.cloudera.org:8080/11751 )
Change subject: KUDU-2543: pass around default authz tokens
......................................................................
Patch Set 6:
I'm going to split this into smaller chunks.
--
To view, visit http://gerrit.cloudera.org:8080/11751
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I99555e0ab2d09d4abcbc12b1100658a9a17590f4
Gerrit-Change-Number: 11751
Gerrit-PatchSet: 6
Gerrit-Owner: Andrew Wong <aw...@cloudera.com>
Gerrit-Reviewer: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Andrew Wong <aw...@cloudera.com>
Gerrit-Reviewer: Hao Hao <ha...@cloudera.com>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Tidy Bot (241)
Gerrit-Comment-Date: Fri, 21 Dec 2018 23:00:47 +0000
Gerrit-HasComments: No
[kudu-CR] KUDU-2543 pt 1: basic checks for authz tokens
Posted by "Andrew Wong (Code Review)" <ge...@cloudera.org>.
Andrew Wong has posted comments on this change. ( http://gerrit.cloudera.org:8080/11751 )
Change subject: KUDU-2543 pt 1: basic checks for authz tokens
......................................................................
Patch Set 10:
(21 comments)
http://gerrit.cloudera.org:8080/#/c/11751/9/src/kudu/tserver/tablet_server_authorization-test.cc
File src/kudu/tserver/tablet_server_authorization-test.cc:
http://gerrit.cloudera.org:8080/#/c/11751/9/src/kudu/tserver/tablet_server_authorization-test.cc@113
PS9, Line 113:
> nit: alignment
Done
http://gerrit.cloudera.org:8080/#/c/11751/9/src/kudu/tserver/tablet_server_authorization-test.cc@118
PS9, Line 118: return proxy->Write(req, &resp, rpc);
> nit: Does this information log message and others that accompany RPCs below
I think it is useful; _because_ our tests are generally chatty, IMO it's important to have a few lines like these indicating when something interesting is happening, as a sort of checkpoint when going through the logs.
http://gerrit.cloudera.org:8080/#/c/11751/9/src/kudu/tserver/tablet_server_authorization-test.cc@128
PS9, Line 128: if (token) {
> This can be dropped: it's already READ_LATEST by default.
Done
http://gerrit.cloudera.org:8080/#/c/11751/9/src/kudu/tserver/tablet_server_authorization-test.cc@138
PS9, Line 138:
: req.set_tablet_id(TabletServerTes
> nit: is LINT happy enough with this way of breaking the line?
Done, seems LINT was indeed happy, interestingly enough.
http://gerrit.cloudera.org:8080/#/c/11751/9/src/kudu/tserver/tablet_server_authorization-test.cc@142
PS9, Line 142: }
> Is setting this hint is really crucial? If yes, please add a comment why;
Done
http://gerrit.cloudera.org:8080/#/c/11751/9/src/kudu/tserver/tablet_server_authorization-test.cc@156
PS9, Line 156: }
> I think this can be omitted since it's READ_LATEST by default.
Done
http://gerrit.cloudera.org:8080/#/c/11751/9/src/kudu/tserver/tablet_server_authorization-test.cc@171
PS9, Line 171:
> nit: drop 'virtual' since 'override' is present
Done
http://gerrit.cloudera.org:8080/#/c/11751/9/src/kudu/tserver/tablet_server_authorization-test.cc@204
PS9, Line 204: // Flip the bits in the signature.
> nit here and below: do these LOG(INFO) add useful information into the test
Yes, specifically when debugging. Since each of these TokenCreators are run, if any fail, these logs are helpful in figuring out what went wrong.
http://gerrit.cloudera.org:8080/#/c/11751/9/src/kudu/tserver/tablet_server_authorization-test.cc@208
PS9, Line 208: }
: token.set_token_data(std::move(bad_signature));
: return token;
: });
> Isn't it just zeroing the signature? If so, maybe memset() would be easier
Ah, I meant to flip the bits. I'll add a comment.
http://gerrit.cloudera.org:8080/#/c/11751/9/src/kudu/tserver/tablet_server_authorization-test.cc@212
PS9, Line 212:
> Does it makes sense to add a scenario supplying an authz token without a si
Done
http://gerrit.cloudera.org:8080/#/c/11751/9/src/kudu/tserver/tablet_server_authorization-test.cc@227
PS9, Line 227: SignedTokenPB token;
: CHECK_OK(signer.GenerateAuthnToken(kUser, &token));
: return token;
: });
: token_creators.emplace_back([&] {
: LOG(INFO) << "Generating expired authz token";
: TokenSigningPrivateKeyPB tsk = GetTokenSigningPrivateKey(2);
: shared_ptr<TokenVerifier> verifier(new TokenVerifier());
: TokenSigner expired_signer(3600, /*authz_token_validity_seconds=*/1, 3600, verifier);
: CHECK_OK(expired_signer.ImportKeys({ tsk }));
: vector<TokenSigningPublicKeyPB> expired_public_keys = verifier->ExportKeys();
: CHECK_OK(mini_server_->server()->mutable_token_verifier()->ImportKeys(public_keys));
:
: SignedTokenPB token;
: C
> Does it make sense to add a scenario to sign authz token with a signing key
It does, I have that in pt 2 of this patch series here https://gerrit.cloudera.org/c/12122/3/src/kudu/integration-tests/authz_token-itest.cc#366
http://gerrit.cloudera.org:8080/#/c/11751/9/src/kudu/tserver/tablet_server_authorization-test.cc@250
PS9, Line 250: r (const auto& token_creator :
> Wrap into NO_FATALS()?
Done
http://gerrit.cloudera.org:8080/#/c/11751/9/src/kudu/tserver/tablet_server_authorization-test.cc@258
PS9, Line 258:
> Wrap into NO_FATALS()?
Done
http://gerrit.cloudera.org:8080/#/c/11751/9/src/kudu/tserver/tablet_server_authorization-test.cc@284
PS9, Line 284: SignedTokenPB token;
> Wrap into NO_FATALS()?
Done
http://gerrit.cloudera.org:8080/#/c/11751/9/src/kudu/tserver/tablet_server_authorization-test.cc@298
PS9, Line 298:
: }
> Would Values(&WriteGenerator, &ScanGenerator, &SplitKeyRangeGenerator, &Che
Done
http://gerrit.cloudera.org:8080/#/c/11751/9/src/kudu/tserver/tablet_service.cc
File src/kudu/tserver/tablet_service.cc:
http://gerrit.cloudera.org:8080/#/c/11751/9/src/kudu/tserver/tablet_service.cc@146
PS9, Line 146: DEFINE_bool(tserver_enforce_access_control, false,
> Do we want to ensure that all tablet servers are run with the same values o
It might be nice, but I don't think it's necessary. We don't enforce such consistency for other related flags, like `superuser_acl` or `user_acl`.
http://gerrit.cloudera.org:8080/#/c/11751/9/src/kudu/tserver/tablet_service.cc@390
PS9, Line 390: if (privilege.scan_privilege()) {
: return true;
: }
: if (privilege.column_privileges_size() > 0) {
: for (const auto& col_id_and_privilege : privilege.column_privileges()) {
: if (col_id_and_privilege.second.scan_privilege()) {
: return true;
: }
: }
: }
> nit: maybe, short-circuit it like the following:
Done
http://gerrit.cloudera.org:8080/#/c/11751/9/src/kudu/tserver/tablet_service.cc@406
PS9, Line 406: const TokenVerifier& tok
> Would 'const AuthorizableRequest&' suffice here? Why is it necessary to pa
Done
http://gerrit.cloudera.org:8080/#/c/11751/9/src/kudu/tserver/tablet_service.cc@436
PS9, Line 436: }
> nit: I think std::move() should work as well since we compile protobuf with
Done
http://gerrit.cloudera.org:8080/#/c/11751/9/src/kudu/tserver/tserver.proto
File src/kudu/tserver/tserver.proto:
http://gerrit.cloudera.org:8080/#/c/11751/9/src/kudu/tserver/tserver.proto@429
PS9, Line 429: enum TabletServerFeatures {
: UNKNOWN_FEATURE = 0;
: COLUMN_PREDICATES = 1;
: // Whether the server supports padding UNIXTIME_MICROS slots to 16 bytes.
: PAD_UNIXTIME_MICROS_TO_16_BYTES = 2;
> Do we want to ensure a tablet server is be able to verify authz tokens? I.
I'm not sure what benefit that would provide, considering it's normal to send a token to a tserver that doesn't support tokens (e.g. if communicating with an older versioned tserver).
http://gerrit.cloudera.org:8080/#/c/11751/9/src/kudu/tserver/tserver_service.proto
File src/kudu/tserver/tserver_service.proto:
http://gerrit.cloudera.org:8080/#/c/11751/9/src/kudu/tserver/tserver_service.proto@100
PS9, Line 100:
:
:
> I'm not sure I understand this -- that's the response part, right? Why don
Done; good catch, this doesn't belong at all. It's a part of the ChecksumRequestPB via NewScanRequestPB.
Yes, see https://github.com/apache/kudu/commit/e172df405aef47b1339c9879b835baf69b539f8c
--
To view, visit http://gerrit.cloudera.org:8080/11751
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I99555e0ab2d09d4abcbc12b1100658a9a17590f4
Gerrit-Change-Number: 11751
Gerrit-PatchSet: 10
Gerrit-Owner: Andrew Wong <aw...@cloudera.com>
Gerrit-Reviewer: Adar Dembo <ad...@cloudera.com>
Gerrit-Reviewer: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Andrew Wong <aw...@cloudera.com>
Gerrit-Reviewer: Hao Hao <ha...@cloudera.com>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Tidy Bot (241)
Gerrit-Comment-Date: Mon, 07 Jan 2019 08:08:39 +0000
Gerrit-HasComments: Yes
[kudu-CR] KUDU-2543 pt 1: basic checks for authz tokens
Posted by "Andrew Wong (Code Review)" <ge...@cloudera.org>.
Andrew Wong has removed a vote on this change.
Change subject: KUDU-2543 pt 1: basic checks for authz tokens
......................................................................
Removed Verified-1 by Kudu Jenkins (120)
--
To view, visit http://gerrit.cloudera.org:8080/11751
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: deleteVote
Gerrit-Change-Id: I99555e0ab2d09d4abcbc12b1100658a9a17590f4
Gerrit-Change-Number: 11751
Gerrit-PatchSet: 12
Gerrit-Owner: Andrew Wong <aw...@cloudera.com>
Gerrit-Reviewer: Adar Dembo <ad...@cloudera.com>
Gerrit-Reviewer: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Andrew Wong <aw...@cloudera.com>
Gerrit-Reviewer: Hao Hao <ha...@cloudera.com>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Tidy Bot (241)
[kudu-CR] KUDU-2543 pt 1: basic checks for authz tokens
Posted by "Hao Hao (Code Review)" <ge...@cloudera.org>.
Hao Hao has posted comments on this change. ( http://gerrit.cloudera.org:8080/11751 )
Change subject: KUDU-2543 pt 1: basic checks for authz tokens
......................................................................
Patch Set 11: Code-Review+2
--
To view, visit http://gerrit.cloudera.org:8080/11751
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I99555e0ab2d09d4abcbc12b1100658a9a17590f4
Gerrit-Change-Number: 11751
Gerrit-PatchSet: 11
Gerrit-Owner: Andrew Wong <aw...@cloudera.com>
Gerrit-Reviewer: Adar Dembo <ad...@cloudera.com>
Gerrit-Reviewer: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Andrew Wong <aw...@cloudera.com>
Gerrit-Reviewer: Hao Hao <ha...@cloudera.com>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Tidy Bot (241)
Gerrit-Comment-Date: Wed, 23 Jan 2019 19:39:55 +0000
Gerrit-HasComments: No
[kudu-CR] KUDU-2543 pt 1: basic checks for authz tokens
Posted by "Adar Dembo (Code Review)" <ge...@cloudera.org>.
Adar Dembo has posted comments on this change. ( http://gerrit.cloudera.org:8080/11751 )
Change subject: KUDU-2543 pt 1: basic checks for authz tokens
......................................................................
Patch Set 11: Code-Review+1
--
To view, visit http://gerrit.cloudera.org:8080/11751
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I99555e0ab2d09d4abcbc12b1100658a9a17590f4
Gerrit-Change-Number: 11751
Gerrit-PatchSet: 11
Gerrit-Owner: Andrew Wong <aw...@cloudera.com>
Gerrit-Reviewer: Adar Dembo <ad...@cloudera.com>
Gerrit-Reviewer: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Andrew Wong <aw...@cloudera.com>
Gerrit-Reviewer: Hao Hao <ha...@cloudera.com>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Tidy Bot (241)
Gerrit-Comment-Date: Wed, 23 Jan 2019 07:31:45 +0000
Gerrit-HasComments: No
[kudu-CR] KUDU-2543: pass around default authz tokens
Posted by "Andrew Wong (Code Review)" <ge...@cloudera.org>.
Andrew Wong has removed Dan Burkert from this change. ( http://gerrit.cloudera.org:8080/11751 )
Change subject: KUDU-2543: pass around default authz tokens
......................................................................
Removed reviewer Dan Burkert.
--
To view, visit http://gerrit.cloudera.org:8080/11751
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: deleteReviewer
Gerrit-Change-Id: I99555e0ab2d09d4abcbc12b1100658a9a17590f4
Gerrit-Change-Number: 11751
Gerrit-PatchSet: 6
Gerrit-Owner: Andrew Wong <aw...@cloudera.com>
Gerrit-Reviewer: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Andrew Wong <aw...@cloudera.com>
Gerrit-Reviewer: Hao Hao <ha...@cloudera.com>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Tidy Bot (241)
[kudu-CR] KUDU-2543 pt 1: basic checks for authz tokens
Posted by "Andrew Wong (Code Review)" <ge...@cloudera.org>.
Hello Tidy Bot, Alexey Serbin, Kudu Jenkins, Adar Dembo, Hao Hao,
I'd like you to reexamine a change. Please visit
http://gerrit.cloudera.org:8080/11751
to look at the new patch set (#10).
Change subject: KUDU-2543 pt 1: basic checks for authz tokens
......................................................................
KUDU-2543 pt 1: basic checks for authz tokens
In preparation for passing around authorization tokens, the tservers are
now fitted with minimal token-verifying logic that protects the write
and the various scan-like endpoints (i.e. scans, checksum scans, and
split-key requests), optionally enforcing that the client has provided a
valid authz token. I put the negotiation authn token verification logic
into its own function for reuse in the tserver layer.
It's worth noting that scan-like requests that have a concept of a "new"
request vs a "continue" request (i.e. scans, checksum scans) will only
need verification on "new" requests. "Continue" requests are handled in
that a scanner cannot be hijacked by a user who didn't create it.
A test is added to test various scenarios at the tserver level.
Change-Id: I99555e0ab2d09d4abcbc12b1100658a9a17590f4
---
M src/kudu/rpc/CMakeLists.txt
M src/kudu/rpc/rpc_header.proto
A src/kudu/rpc/rpc_verification_util.cc
A src/kudu/rpc/rpc_verification_util.h
M src/kudu/rpc/server_negotiation.cc
M src/kudu/security/token_verifier.cc
M src/kudu/tserver/CMakeLists.txt
M src/kudu/tserver/tablet_server-test-base.h
A src/kudu/tserver/tablet_server_authorization-test.cc
M src/kudu/tserver/tablet_service.cc
M src/kudu/tserver/tserver.proto
11 files changed, 596 insertions(+), 37 deletions(-)
git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/51/11751/10
--
To view, visit http://gerrit.cloudera.org:8080/11751
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I99555e0ab2d09d4abcbc12b1100658a9a17590f4
Gerrit-Change-Number: 11751
Gerrit-PatchSet: 10
Gerrit-Owner: Andrew Wong <aw...@cloudera.com>
Gerrit-Reviewer: Adar Dembo <ad...@cloudera.com>
Gerrit-Reviewer: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Andrew Wong <aw...@cloudera.com>
Gerrit-Reviewer: Hao Hao <ha...@cloudera.com>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Tidy Bot (241)
[kudu-CR] WIP KUDU-2543: pass around default authz tokens
Posted by "Alexey Serbin (Code Review)" <ge...@cloudera.org>.
Alexey Serbin has posted comments on this change. ( http://gerrit.cloudera.org:8080/11751 )
Change subject: WIP KUDU-2543: pass around default authz tokens
......................................................................
Patch Set 1:
(10 comments)
http://gerrit.cloudera.org:8080/#/c/11751/1/src/kudu/client/batcher.cc
File src/kudu/client/batcher.cc:
http://gerrit.cloudera.org:8080/#/c/11751/1/src/kudu/client/batcher.cc@483
PS1, Line 483: n
z ?
http://gerrit.cloudera.org:8080/#/c/11751/1/src/kudu/master/master_service.cc
File src/kudu/master/master_service.cc:
http://gerrit.cloudera.org:8080/#/c/11751/1/src/kudu/master/master_service.cc@422
PS1, Line 422: LOG(FATAL)
This behavior assumes other error cases (like empty remote_user().username()) are filtered out at an earlier phase. However, in the new code I don't see it verified.
http://gerrit.cloudera.org:8080/#/c/11751/1/src/kudu/rpc/retriable_rpc.h
File src/kudu/rpc/retriable_rpc.h:
http://gerrit.cloudera.org:8080/#/c/11751/1/src/kudu/rpc/retriable_rpc.h@175
PS1, Line 175: template <class Server, class RequestPB, class ResponsePB>
: void RetriableRpc<Server, RequestPB, ResponsePB>::GetNewAuthzTokenAndRetryCb(
: const Status& status) {
: if (status.ok()) {
: // Perform the RPC call with the newly fetched authz token.
: mutable_retrier()->mutable_controller()->Reset();
: SendRpc();
: } else {
: // Back to the retry sequence, hoping for better conditions after some time.
: VLOG(1) << "Failed to get new authz token: " << status.ToString();
: mutable_retrier()->DelayedRetry(this, status);
: }
: }
This looks identical to GetNewAuthnTokenAndRetryCb() with exception of VLOG() message. Does it make sense to unify those two methods?
http://gerrit.cloudera.org:8080/#/c/11751/1/src/kudu/rpc/rpc_verification_util.h
File src/kudu/rpc/rpc_verification_util.h:
http://gerrit.cloudera.org:8080/#/c/11751/1/src/kudu/rpc/rpc_verification_util.h@37
PS1, Line 37: RPC
RPC error code?
http://gerrit.cloudera.org:8080/#/c/11751/1/src/kudu/rpc/rpc_verification_util.cc
File src/kudu/rpc/rpc_verification_util.cc:
http://gerrit.cloudera.org:8080/#/c/11751/1/src/kudu/rpc/rpc_verification_util.cc@45
PS1, Line 45: Status s
nit here and below: why this variable is necessary? Could it be just
*error = ...;
return Status::NotAuthorized(...);
?
http://gerrit.cloudera.org:8080/#/c/11751/1/src/kudu/rpc/rpc_verification_util.cc@46
PS1, Line 46: *error = retry_error;
std::move ?
http://gerrit.cloudera.org:8080/#/c/11751/1/src/kudu/tserver/tablet_service.cc
File src/kudu/tserver/tablet_service.cc:
http://gerrit.cloudera.org:8080/#/c/11751/1/src/kudu/tserver/tablet_service.cc@388
PS1, Line 388: FATAL_INVALID_AUTHORIZATION_TOKEN
I would expect it to be FATAL_UNAUTHORIZED instead. Could you add the explanation into a comment regarding this choice?
http://gerrit.cloudera.org:8080/#/c/11751/1/src/kudu/tserver/tablet_service.cc@402
PS1, Line 402: ErrorStatusPB::FATAL_UNAUTHORIZED
Why is FATAL_UNAUTHORIZED code chosen here instead of INVALID_AUTHZ_TOKEN? It would be nice to explain that in a comment. Is that related to the authz token re-acquisition logic?
http://gerrit.cloudera.org:8080/#/c/11751/1/src/kudu/tserver/tablet_service.cc@1390
PS1, Line 1390: req->has_new_scan_request()
It seems already requests to existing scanners are not going to be examined regarding the access permissions. Does it sound like a security issue (e.g., someone could grab already existing scan knowing its ID even if they don't have proper scan privileges)?
If it does not sound like an issue, why not to move the authz_token into the NewScanRequestPB instead of keeping it in ScanRequestPB?
http://gerrit.cloudera.org:8080/#/c/11751/1/src/kudu/tserver/tablet_service.cc@1489
PS1, Line 1489: TabletServiceImpl::SplitKeyRange
Maybe, add a TODO into this method regarding verification of authz token in the request?
--
To view, visit http://gerrit.cloudera.org:8080/11751
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I99555e0ab2d09d4abcbc12b1100658a9a17590f4
Gerrit-Change-Number: 11751
Gerrit-PatchSet: 1
Gerrit-Owner: Andrew Wong <aw...@cloudera.com>
Gerrit-Reviewer: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Andrew Wong <aw...@cloudera.com>
Gerrit-Reviewer: Dan Burkert <da...@apache.org>
Gerrit-Reviewer: Hao Hao <ha...@cloudera.com>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Tidy Bot (241)
Gerrit-Comment-Date: Tue, 23 Oct 2018 17:59:16 +0000
Gerrit-HasComments: Yes
[kudu-CR] WIP KUDU-2543: pass around default authz tokens
Posted by "Andrew Wong (Code Review)" <ge...@cloudera.org>.
Andrew Wong has posted comments on this change. ( http://gerrit.cloudera.org:8080/11751 )
Change subject: WIP KUDU-2543: pass around default authz tokens
......................................................................
Patch Set 1:
(1 comment)
http://gerrit.cloudera.org:8080/#/c/11751/1/src/kudu/master/master_service.cc
File src/kudu/master/master_service.cc:
http://gerrit.cloudera.org:8080/#/c/11751/1/src/kudu/master/master_service.cc@416
PS1, Line 416: TablePrivilegePB table_privilege;
: table_privilege.set_table_id(resp->table_id());
: table_privilege.set_all_privileges(true);
As implemented, this is just mocking any calls to an AuthzProvider that would, e.g. make a call to Sentry and translate the Sentry privileges into the TablePrivilegePB format, or e.g. check that the connected user is a trusted user and assign all privileges.
--
To view, visit http://gerrit.cloudera.org:8080/11751
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I99555e0ab2d09d4abcbc12b1100658a9a17590f4
Gerrit-Change-Number: 11751
Gerrit-PatchSet: 1
Gerrit-Owner: Andrew Wong <aw...@cloudera.com>
Gerrit-Reviewer: Andrew Wong <aw...@cloudera.com>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Tidy Bot (241)
Gerrit-Comment-Date: Mon, 22 Oct 2018 23:12:25 +0000
Gerrit-HasComments: Yes
[kudu-CR] KUDU-2543 pt 1: basic checks for authz tokens
Posted by "Adar Dembo (Code Review)" <ge...@cloudera.org>.
Adar Dembo has posted comments on this change. ( http://gerrit.cloudera.org:8080/11751 )
Change subject: KUDU-2543 pt 1: basic checks for authz tokens
......................................................................
Patch Set 7:
(8 comments)
http://gerrit.cloudera.org:8080/#/c/11751/7/src/kudu/rpc/rpc_header.proto
File src/kudu/rpc/rpc_header.proto:
http://gerrit.cloudera.org:8080/#/c/11751/7/src/kudu/rpc/rpc_header.proto@316
PS7, Line 316: // The authorization token is invalid or expired; the client should obtain
: // a new one.
: ERROR_INVALID_AUTHORIZATION_TOKEN = 17;
Curious why an invalid authz token is just an error while an invalid authn token is fatal?
Also, is it important to distinguish between an authn and an authz token in the errors? Or could we generalize the existing error into "ERROR_INVALID_TOKEN"? I guess that would only work if the two were non-fatal errors.
http://gerrit.cloudera.org:8080/#/c/11751/7/src/kudu/rpc/rpc_verification_util.cc
File src/kudu/rpc/rpc_verification_util.cc:
http://gerrit.cloudera.org:8080/#/c/11751/7/src/kudu/rpc/rpc_verification_util.cc@59
PS7, Line 59: return Status::NotAuthorized(VerificationResultToString(result));
Looks like this can be pulled out of the three cases where it's explicitly set and combined.
Also, should there be a catch-all that does something useful?
http://gerrit.cloudera.org:8080/#/c/11751/7/src/kudu/tserver/CMakeLists.txt
File src/kudu/tserver/CMakeLists.txt:
http://gerrit.cloudera.org:8080/#/c/11751/7/src/kudu/tserver/CMakeLists.txt@180
PS7, Line 180: ADD_KUDU_TEST(tserver_authorization-test)
Nit: maybe tablet_server_authorization-test, or ts_authorization-test? Just thinking we should avoid introducing a new "tablet server" naming prefix for tests.
http://gerrit.cloudera.org:8080/#/c/11751/7/src/kudu/tserver/tablet_service.cc
File src/kudu/tserver/tablet_service.cc:
http://gerrit.cloudera.org:8080/#/c/11751/7/src/kudu/tserver/tablet_service.cc@1438
PS7, Line 1438: if (!VerifyAuthzTokenOrRespond(server_->token_verifier(),
: &req->new_scan_request(), context, &token)) {
: return;
: }
: const auto& privilege = token.authz().table_privilege();
: if (!MayHaveScanPrivileges(privilege)) {
: context->RespondRpcFailure(rpc::ErrorStatusPB::FATAL_UNAUTHORIZED,
: Status::NotAuthorized("not authorized to scan"));
: return;
: }
: // TODO(awong): check the privileges required for the contents of the scan
: // request by pulling out the columns and checking against individual
: // column privileges.
Looks like this can be shared amongst Scan/Checksum/SplitKeyRange?
http://gerrit.cloudera.org:8080/#/c/11751/7/src/kudu/tserver/tablet_service.cc@1562
PS7, Line 1562: scan
"split key range" I guess.
http://gerrit.cloudera.org:8080/#/c/11751/7/src/kudu/tserver/tablet_service.cc@1703
PS7, Line 1703: scan
checksum
http://gerrit.cloudera.org:8080/#/c/11751/7/src/kudu/tserver/tserver.proto
File src/kudu/tserver/tserver.proto:
http://gerrit.cloudera.org:8080/#/c/11751/7/src/kudu/tserver/tserver.proto@170
PS7, Line 170: message ListTabletsRequestPB {
Does this RPC need authorization since there's table metadata in the response?
http://gerrit.cloudera.org:8080/#/c/11751/7/src/kudu/tserver/tserver_authorization-test.cc
File src/kudu/tserver/tserver_authorization-test.cc:
http://gerrit.cloudera.org:8080/#/c/11751/7/src/kudu/tserver/tserver_authorization-test.cc@227
PS7, Line 227: for (const auto& send_req : requestors) {
Doesn't look like there's any shared state between requestors, so why not parameterize the test on this, so that each requestor winds up in its own gtest? Is the key setup at the beginning expensive?
--
To view, visit http://gerrit.cloudera.org:8080/11751
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I99555e0ab2d09d4abcbc12b1100658a9a17590f4
Gerrit-Change-Number: 11751
Gerrit-PatchSet: 7
Gerrit-Owner: Andrew Wong <aw...@cloudera.com>
Gerrit-Reviewer: Adar Dembo <ad...@cloudera.com>
Gerrit-Reviewer: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Andrew Wong <aw...@cloudera.com>
Gerrit-Reviewer: Hao Hao <ha...@cloudera.com>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Tidy Bot (241)
Gerrit-Comment-Date: Wed, 02 Jan 2019 20:41:38 +0000
Gerrit-HasComments: Yes
[kudu-CR] KUDU-2543 pt 1: basic checks for authz tokens
Posted by "Adar Dembo (Code Review)" <ge...@cloudera.org>.
Adar Dembo has posted comments on this change. ( http://gerrit.cloudera.org:8080/11751 )
Change subject: KUDU-2543 pt 1: basic checks for authz tokens
......................................................................
Patch Set 12: Code-Review+1
--
To view, visit http://gerrit.cloudera.org:8080/11751
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I99555e0ab2d09d4abcbc12b1100658a9a17590f4
Gerrit-Change-Number: 11751
Gerrit-PatchSet: 12
Gerrit-Owner: Andrew Wong <aw...@cloudera.com>
Gerrit-Reviewer: Adar Dembo <ad...@cloudera.com>
Gerrit-Reviewer: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Andrew Wong <aw...@cloudera.com>
Gerrit-Reviewer: Hao Hao <ha...@cloudera.com>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Tidy Bot (241)
Gerrit-Comment-Date: Wed, 23 Jan 2019 22:41:03 +0000
Gerrit-HasComments: No
[kudu-CR] WIP KUDU-2543: pass around default authz tokens
Posted by "Hao Hao (Code Review)" <ge...@cloudera.org>.
Hao Hao has posted comments on this change. ( http://gerrit.cloudera.org:8080/11751 )
Change subject: WIP KUDU-2543: pass around default authz tokens
......................................................................
Patch Set 1:
(4 comments)
http://gerrit.cloudera.org:8080/#/c/11751/1/src/kudu/rpc/rpc_verification_util.h
File src/kudu/rpc/rpc_verification_util.h:
http://gerrit.cloudera.org:8080/#/c/11751/1/src/kudu/rpc/rpc_verification_util.h@40
PS1, Line 40: with a new token
This comment looks very specific to me since there is no 'token' concept defined in the scope of this method.
http://gerrit.cloudera.org:8080/#/c/11751/1/src/kudu/rpc/rpc_verification_util.h@41
PS1, Line 41: ErrorForVerification
nit: name it ParseVerificationResult to be more clear?
http://gerrit.cloudera.org:8080/#/c/11751/1/src/kudu/tserver/tablet_service.cc
File src/kudu/tserver/tablet_service.cc:
http://gerrit.cloudera.org:8080/#/c/11751/1/src/kudu/tserver/tablet_service.cc@388
PS1, Line 388: FATAL_INVALID_AUTHORIZATION_TOKEN
> I would expect it to be FATAL_UNAUTHORIZED instead. Could you add the expl
Does FATAL_UNAUTHORIZED intent to cover both authentication and authorization failure?
http://gerrit.cloudera.org:8080/#/c/11751/1/src/kudu/tserver/tserver.proto
File src/kudu/tserver/tserver.proto:
http://gerrit.cloudera.org:8080/#/c/11751/1/src/kudu/tserver/tserver.proto@307
PS1, Line 307: ScanRequestPB
Add SignedTokenPB for ChecksumRequestPB in tserver.proto as well?
--
To view, visit http://gerrit.cloudera.org:8080/11751
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I99555e0ab2d09d4abcbc12b1100658a9a17590f4
Gerrit-Change-Number: 11751
Gerrit-PatchSet: 1
Gerrit-Owner: Andrew Wong <aw...@cloudera.com>
Gerrit-Reviewer: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Andrew Wong <aw...@cloudera.com>
Gerrit-Reviewer: Dan Burkert <da...@apache.org>
Gerrit-Reviewer: Hao Hao <ha...@cloudera.com>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Tidy Bot (241)
Gerrit-Comment-Date: Tue, 23 Oct 2018 22:12:36 +0000
Gerrit-HasComments: Yes
[kudu-CR] WIP KUDU-2543: pass around default authz tokens
Posted by "Dan Burkert (Code Review)" <ge...@cloudera.org>.
Dan Burkert has posted comments on this change. ( http://gerrit.cloudera.org:8080/11751 )
Change subject: WIP KUDU-2543: pass around default authz tokens
......................................................................
Patch Set 1:
Meta comment: it'd probably be worth splitting this into two patches with client and server parts separated, unless it would add additional complexity to do so.
--
To view, visit http://gerrit.cloudera.org:8080/11751
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I99555e0ab2d09d4abcbc12b1100658a9a17590f4
Gerrit-Change-Number: 11751
Gerrit-PatchSet: 1
Gerrit-Owner: Andrew Wong <aw...@cloudera.com>
Gerrit-Reviewer: Andrew Wong <aw...@cloudera.com>
Gerrit-Reviewer: Dan Burkert <da...@apache.org>
Gerrit-Reviewer: Hao Hao <ha...@cloudera.com>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Tidy Bot (241)
Gerrit-Comment-Date: Tue, 23 Oct 2018 00:11:15 +0000
Gerrit-HasComments: No
[kudu-CR] WIP KUDU-2543: pass around default authz tokens
Posted by "Dan Burkert (Code Review)" <ge...@cloudera.org>.
Dan Burkert has posted comments on this change. ( http://gerrit.cloudera.org:8080/11751 )
Change subject: WIP KUDU-2543: pass around default authz tokens
......................................................................
Patch Set 1:
(17 comments)
http://gerrit.cloudera.org:8080/#/c/11751/1//COMMIT_MSG
Commit Message:
http://gerrit.cloudera.org:8080/#/c/11751/1//COMMIT_MSG@16
PS1, Line 16: GetTabletSchema
GetTableSchema
http://gerrit.cloudera.org:8080/#/c/11751/1/src/kudu/client/client-internal.cc
File src/kudu/client/client-internal.cc:
http://gerrit.cloudera.org:8080/#/c/11751/1/src/kudu/client/client-internal.cc@664
PS1, Line 664: if (resp.has_authz_token()) {
If the response doesn't have an authorization token, should an existing token in the cache get removed?
http://gerrit.cloudera.org:8080/#/c/11751/1/src/kudu/client/client-internal.cc@749
PS1, Line 749: AuthorizeForTable
nit: naming wise I think something like 'RetrieveAuthorizationToken' or similar would be better, 'AuthorizeForTable' implies there's a specific action to authorize.
http://gerrit.cloudera.org:8080/#/c/11751/1/src/kudu/client/scanner-internal.h
File src/kudu/client/scanner-internal.h:
http://gerrit.cloudera.org:8080/#/c/11751/1/src/kudu/client/scanner-internal.h@92
PS1, Line 92: ,
here and above the comma isn't necessary.
http://gerrit.cloudera.org:8080/#/c/11751/1/src/kudu/client/scanner-internal.cc
File src/kudu/client/scanner-internal.cc:
http://gerrit.cloudera.org:8080/#/c/11751/1/src/kudu/client/scanner-internal.cc@197
PS1, Line 197: client $0
'user $0 for table $1'
http://gerrit.cloudera.org:8080/#/c/11751/1/src/kudu/client/scanner-internal.cc@348
PS1, Line 348: VLOG(1) << "no authz token for table " << table_->id();
This is an expected outcome when connecting to an older master, right? May want to add a comment to that effect.
http://gerrit.cloudera.org:8080/#/c/11751/1/src/kudu/master/master.proto
File src/kudu/master/master.proto:
http://gerrit.cloudera.org:8080/#/c/11751/1/src/kudu/master/master.proto@635
PS1, Line 635: and authz is enabled on
: // the cluster
I think we want to have it always enabled, right? At that point it would only be missing if the master was an older version.
http://gerrit.cloudera.org:8080/#/c/11751/1/src/kudu/master/master.proto@636
PS1, Line 636: reutrns
returns
http://gerrit.cloudera.org:8080/#/c/11751/1/src/kudu/rpc/retriable_rpc.h
File src/kudu/rpc/retriable_rpc.h:
http://gerrit.cloudera.org:8080/#/c/11751/1/src/kudu/rpc/retriable_rpc.h@99
PS1, Line 99: z
Authn
http://gerrit.cloudera.org:8080/#/c/11751/1/src/kudu/rpc/rpc_header.proto
File src/kudu/rpc/rpc_header.proto:
http://gerrit.cloudera.org:8080/#/c/11751/1/src/kudu/rpc/rpc_header.proto@333
PS1, Line 333: authentication
authorization
http://gerrit.cloudera.org:8080/#/c/11751/1/src/kudu/rpc/rpc_header.proto@335
PS1, Line 335: FATAL_INVALID_AUTHORIZATION_TOKEN
This should be an ERROR, not FATAL, since the connection should be able to continue after the client grabs a new authz token.
http://gerrit.cloudera.org:8080/#/c/11751/1/src/kudu/rpc/server_negotiation.cc
File src/kudu/rpc/server_negotiation.cc:
http://gerrit.cloudera.org:8080/#/c/11751/1/src/kudu/rpc/server_negotiation.cc@650
PS1, Line 650: // TODO(KUDU-1924): propagate the specific token verification failure back to the client,
Is this done now?
http://gerrit.cloudera.org:8080/#/c/11751/1/src/kudu/tserver/tablet_service.cc
File src/kudu/tserver/tablet_service.cc:
http://gerrit.cloudera.org:8080/#/c/11751/1/src/kudu/tserver/tablet_service.cc@142
PS1, Line 142: DEFINE_bool(enforce_access_control, false,
We should think about whether this configuration could be dynamically set by checking whether the master is issuing authz tokens, and if so turning it on.
http://gerrit.cloudera.org:8080/#/c/11751/1/src/kudu/tserver/tablet_service.cc@382
PS1, Line 382: static bool VerifyAuthzTokenOrRespond(const TokenVerifier& token_verifier,
Should this be checking that the username in the token and the username from the context match?
http://gerrit.cloudera.org:8080/#/c/11751/1/src/kudu/tserver/tablet_service.cc@881
PS1, Line 881: boost::optional<TablePrivilegePB> table_privilege;
not used?
http://gerrit.cloudera.org:8080/#/c/11751/1/src/kudu/tserver/tablet_service.cc@892
PS1, Line 892: context->RespondRpcFailure(rpc::ErrorStatusPB::FATAL_UNAUTHORIZED,
I assume this should have a TODO?
http://gerrit.cloudera.org:8080/#/c/11751/1/src/kudu/tserver/tablet_service.cc@1394
PS1, Line 1394: }
Also needs a TODO?
--
To view, visit http://gerrit.cloudera.org:8080/11751
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I99555e0ab2d09d4abcbc12b1100658a9a17590f4
Gerrit-Change-Number: 11751
Gerrit-PatchSet: 1
Gerrit-Owner: Andrew Wong <aw...@cloudera.com>
Gerrit-Reviewer: Andrew Wong <aw...@cloudera.com>
Gerrit-Reviewer: Dan Burkert <da...@apache.org>
Gerrit-Reviewer: Hao Hao <ha...@cloudera.com>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Tidy Bot (241)
Gerrit-Comment-Date: Tue, 23 Oct 2018 00:10:27 +0000
Gerrit-HasComments: Yes
[kudu-CR] KUDU-2543 pt 1: basic checks for authz tokens
Posted by "Adar Dembo (Code Review)" <ge...@cloudera.org>.
Adar Dembo has posted comments on this change. ( http://gerrit.cloudera.org:8080/11751 )
Change subject: KUDU-2543 pt 1: basic checks for authz tokens
......................................................................
Patch Set 9: Code-Review+1
Will defer to Alexey.
--
To view, visit http://gerrit.cloudera.org:8080/11751
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I99555e0ab2d09d4abcbc12b1100658a9a17590f4
Gerrit-Change-Number: 11751
Gerrit-PatchSet: 9
Gerrit-Owner: Andrew Wong <aw...@cloudera.com>
Gerrit-Reviewer: Adar Dembo <ad...@cloudera.com>
Gerrit-Reviewer: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Andrew Wong <aw...@cloudera.com>
Gerrit-Reviewer: Hao Hao <ha...@cloudera.com>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Tidy Bot (241)
Gerrit-Comment-Date: Fri, 04 Jan 2019 19:38:52 +0000
Gerrit-HasComments: No
[kudu-CR] KUDU-2543 pt 1: basic checks for authz tokens
Posted by "Alexey Serbin (Code Review)" <ge...@cloudera.org>.
Alexey Serbin has posted comments on this change. ( http://gerrit.cloudera.org:8080/11751 )
Change subject: KUDU-2543 pt 1: basic checks for authz tokens
......................................................................
Patch Set 8:
(2 comments)
http://gerrit.cloudera.org:8080/#/c/11751/8/src/kudu/rpc/rpc_verification_util.h
File src/kudu/rpc/rpc_verification_util.h:
http://gerrit.cloudera.org:8080/#/c/11751/8/src/kudu/rpc/rpc_verification_util.h@34
PS8, Line 34: // 'retry_error' is the error code used to denote whether verification should
: // be retried.
To me this looks more like a type of token that's being verified. Maybe, instead combine the code from VerifyAuthzTokenOrRespond() and the part of ServerNegotiation::AuthenticateByToken() that performs token verification and differentiate the code by the type of token used?
http://gerrit.cloudera.org:8080/#/c/11751/8/src/kudu/rpc/rpc_verification_util.cc
File src/kudu/rpc/rpc_verification_util.cc:
http://gerrit.cloudera.org:8080/#/c/11751/8/src/kudu/rpc/rpc_verification_util.cc@36
PS8, Line 36: security
nit for here and below: if that 'using security::VerificationResult' is present, why to specify the namespace here?
--
To view, visit http://gerrit.cloudera.org:8080/11751
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I99555e0ab2d09d4abcbc12b1100658a9a17590f4
Gerrit-Change-Number: 11751
Gerrit-PatchSet: 8
Gerrit-Owner: Andrew Wong <aw...@cloudera.com>
Gerrit-Reviewer: Adar Dembo <ad...@cloudera.com>
Gerrit-Reviewer: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Andrew Wong <aw...@cloudera.com>
Gerrit-Reviewer: Hao Hao <ha...@cloudera.com>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Tidy Bot (241)
Gerrit-Comment-Date: Thu, 03 Jan 2019 06:53:18 +0000
Gerrit-HasComments: Yes
[kudu-CR] KUDU-2543 pt 1: basic checks for authz tokens
Posted by "Andrew Wong (Code Review)" <ge...@cloudera.org>.
Hello Tidy Bot, Alexey Serbin, Kudu Jenkins, Hao Hao,
I'd like you to reexamine a change. Please visit
http://gerrit.cloudera.org:8080/11751
to look at the new patch set (#7).
Change subject: KUDU-2543 pt 1: basic checks for authz tokens
......................................................................
KUDU-2543 pt 1: basic checks for authz tokens
In preparation for passing around authorization tokens, the tservers are
now fitted with minimal token-verifying logic that protects the write
and the various scan-like endpoints (i.e. scans, checksum scans, and
split-key requests), optionally enforcing that the client has provided a
valid authz token. I put the negotiation authn token verification logic
into its own function for reuse in the tserver layer.
It's worth noting that scan-like requests that have a concept of a "new"
request vs a "continue" request (i.e. scans, checksum scans) will only
need verification on "new" requests. "Continue" requests are handled in
that a scanner cannot be hijacked by a user who didn't create it.
A test is added to test various scenarios at the tserver level.
Change-Id: I99555e0ab2d09d4abcbc12b1100658a9a17590f4
---
M src/kudu/rpc/CMakeLists.txt
M src/kudu/rpc/rpc_header.proto
A src/kudu/rpc/rpc_verification_util.cc
A src/kudu/rpc/rpc_verification_util.h
M src/kudu/rpc/server_negotiation.cc
M src/kudu/security/token_verifier.cc
M src/kudu/tserver/CMakeLists.txt
M src/kudu/tserver/tablet_service.cc
M src/kudu/tserver/tserver.proto
A src/kudu/tserver/tserver_authorization-test.cc
M src/kudu/tserver/tserver_service.proto
11 files changed, 557 insertions(+), 34 deletions(-)
git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/51/11751/7
--
To view, visit http://gerrit.cloudera.org:8080/11751
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I99555e0ab2d09d4abcbc12b1100658a9a17590f4
Gerrit-Change-Number: 11751
Gerrit-PatchSet: 7
Gerrit-Owner: Andrew Wong <aw...@cloudera.com>
Gerrit-Reviewer: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Andrew Wong <aw...@cloudera.com>
Gerrit-Reviewer: Hao Hao <ha...@cloudera.com>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Tidy Bot (241)
[kudu-CR] KUDU-2543 pt 1: basic checks for authz tokens
Posted by "Hao Hao (Code Review)" <ge...@cloudera.org>.
Hao Hao has posted comments on this change. ( http://gerrit.cloudera.org:8080/11751 )
Change subject: KUDU-2543 pt 1: basic checks for authz tokens
......................................................................
Patch Set 10:
(3 comments)
LGTM, just minor nits.
http://gerrit.cloudera.org:8080/#/c/11751/10/src/kudu/tserver/tablet_server_authorization-test.cc
File src/kudu/tserver/tablet_server_authorization-test.cc:
http://gerrit.cloudera.org:8080/#/c/11751/10/src/kudu/tserver/tablet_server_authorization-test.cc@182
PS10, Line 182: 3600
nit: can you add a comment on why this number is used?
http://gerrit.cloudera.org:8080/#/c/11751/10/src/kudu/tserver/tablet_service.cc
File src/kudu/tserver/tablet_service.cc:
http://gerrit.cloudera.org:8080/#/c/11751/10/src/kudu/tserver/tablet_service.cc@152
PS10, Line 152: tserver_inject_invalid_authz_token_ratio
Can you add a comment on when this is expected to be used?
http://gerrit.cloudera.org:8080/#/c/11751/9/src/kudu/tserver/tserver_service.proto
File src/kudu/tserver/tserver_service.proto:
http://gerrit.cloudera.org:8080/#/c/11751/9/src/kudu/tserver/tserver_service.proto@100
PS9, Line 100:
:
:
> Done; good catch, this doesn't belong at all. It's a part of the ChecksumRe
Can you add a comment in ChecksumRequestPB that the authz token is embedded in NewScanRequestPB to be more clear?
--
To view, visit http://gerrit.cloudera.org:8080/11751
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I99555e0ab2d09d4abcbc12b1100658a9a17590f4
Gerrit-Change-Number: 11751
Gerrit-PatchSet: 10
Gerrit-Owner: Andrew Wong <aw...@cloudera.com>
Gerrit-Reviewer: Adar Dembo <ad...@cloudera.com>
Gerrit-Reviewer: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Andrew Wong <aw...@cloudera.com>
Gerrit-Reviewer: Hao Hao <ha...@cloudera.com>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Tidy Bot (241)
Gerrit-Comment-Date: Tue, 08 Jan 2019 00:55:07 +0000
Gerrit-HasComments: Yes
[kudu-CR] WIP KUDU-2543: pass around default authz tokens
Posted by "Andrew Wong (Code Review)" <ge...@cloudera.org>.
Hello Tidy Bot, Alexey Serbin, Dan Burkert, Kudu Jenkins, Hao Hao,
I'd like you to reexamine a change. Please visit
http://gerrit.cloudera.org:8080/11751
to look at the new patch set (#2).
Change subject: WIP KUDU-2543: pass around default authz tokens
......................................................................
WIP KUDU-2543: pass around default authz tokens
WIP: some edge cases surrounding dropped connections and master leader
changes need to be implemented and tested.
WIP: also need to iron out the scans case; currently only client writes
are tested.
WIP: test what happens when we run new clients with older clusters?
Adds authz token generation to the master's GetTableSchema endpoint,
with which clients can authorize themselves for specific tables via
authz token. A client will cache these tokens and use them appropriately
for RPCs that need them (e.g. Writes and Scans), reacquiring them when
receiving word that they are expired.
This adds a minimal amount privilege-checking (No privileges? No can
do.) and introduces basic token validations (e.g. should be well formed,
not expired, etc.). I reused the authn verification RPC logic, but put
it in the tablet server layer.
This is tested in the following ways:
- added a test to ensure that write requests with malformed
authorization tokens will be retried with a new token from the master
- added a test to ensure that write requests with no permissions at all
do not retry and instead surface an error to the caller
Change-Id: I99555e0ab2d09d4abcbc12b1100658a9a17590f4
---
M src/kudu/client/batcher.cc
M src/kudu/client/client-internal.cc
M src/kudu/client/client-internal.h
M src/kudu/client/client-test.cc
M src/kudu/client/client.h
M src/kudu/client/scanner-internal.cc
M src/kudu/client/scanner-internal.h
M src/kudu/master/master.proto
M src/kudu/master/master_service.cc
M src/kudu/rpc/CMakeLists.txt
M src/kudu/rpc/retriable_rpc.h
M src/kudu/rpc/rpc.h
M src/kudu/rpc/rpc_header.proto
A src/kudu/rpc/rpc_verification_util.cc
A src/kudu/rpc/rpc_verification_util.h
M src/kudu/rpc/server_negotiation.cc
M src/kudu/tserver/tablet_service.cc
M src/kudu/tserver/tserver.proto
M src/kudu/tserver/tserver_service.proto
19 files changed, 678 insertions(+), 53 deletions(-)
git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/51/11751/2
--
To view, visit http://gerrit.cloudera.org:8080/11751
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I99555e0ab2d09d4abcbc12b1100658a9a17590f4
Gerrit-Change-Number: 11751
Gerrit-PatchSet: 2
Gerrit-Owner: Andrew Wong <aw...@cloudera.com>
Gerrit-Reviewer: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Andrew Wong <aw...@cloudera.com>
Gerrit-Reviewer: Dan Burkert <da...@apache.org>
Gerrit-Reviewer: Hao Hao <ha...@cloudera.com>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Tidy Bot (241)
[kudu-CR] KUDU-2543 pt 1: basic checks for authz tokens
Posted by "Alexey Serbin (Code Review)" <ge...@cloudera.org>.
Alexey Serbin has posted comments on this change. ( http://gerrit.cloudera.org:8080/11751 )
Change subject: KUDU-2543 pt 1: basic checks for authz tokens
......................................................................
Patch Set 9:
(21 comments)
http://gerrit.cloudera.org:8080/#/c/11751/9/src/kudu/tserver/tablet_server_authorization-test.cc
File src/kudu/tserver/tablet_server_authorization-test.cc:
http://gerrit.cloudera.org:8080/#/c/11751/9/src/kudu/tserver/tablet_server_authorization-test.cc@113
PS9, Line 113:
nit: alignment
http://gerrit.cloudera.org:8080/#/c/11751/9/src/kudu/tserver/tablet_server_authorization-test.cc@118
PS9, Line 118: LOG(INFO) << "Sending write request";
nit: Does this information log message and others that accompany RPCs below add some useful info? If not, maybe drop those since our test are chatty enough already?
http://gerrit.cloudera.org:8080/#/c/11751/9/src/kudu/tserver/tablet_server_authorization-test.cc@128
PS9, Line 128: scan->set_read_mode(READ_LATEST);
This can be dropped: it's already READ_LATEST by default.
http://gerrit.cloudera.org:8080/#/c/11751/9/src/kudu/tserver/tablet_server_authorization-test.cc@138
PS9, Line 138: const SignedTokenPB*
: token
nit: is LINT happy enough with this way of breaking the line?
http://gerrit.cloudera.org:8080/#/c/11751/9/src/kudu/tserver/tablet_server_authorization-test.cc@142
PS9, Line 142: req.set_target_chunk_size_bytes(1);
Is setting this hint is really crucial? If yes, please add a comment why; otherwise don't set it, maybe?
http://gerrit.cloudera.org:8080/#/c/11751/9/src/kudu/tserver/tablet_server_authorization-test.cc@156
PS9, Line 156: scan->set_read_mode(READ_LATEST);
I think this can be omitted since it's READ_LATEST by default.
http://gerrit.cloudera.org:8080/#/c/11751/9/src/kudu/tserver/tablet_server_authorization-test.cc@171
PS9, Line 171: virtual
nit: drop 'virtual' since 'override' is present
http://gerrit.cloudera.org:8080/#/c/11751/9/src/kudu/tserver/tablet_server_authorization-test.cc@204
PS9, Line 204: LOG(INFO) << "Generating token with a bad signature";
nit here and below: do these LOG(INFO) add useful information into the test? If not so much, maybe convert them into comments.
http://gerrit.cloudera.org:8080/#/c/11751/9/src/kudu/tserver/tablet_server_authorization-test.cc@208
PS9, Line 208: for (int i = 0; i < bad_signature.length(); i++) {
: char* byte = &bad_signature[i];
: *byte ^= *byte;
: }
Isn't it just zeroing the signature? If so, maybe memset() would be easier to write and comprehend here?
http://gerrit.cloudera.org:8080/#/c/11751/9/src/kudu/tserver/tablet_server_authorization-test.cc@212
PS9, Line 212: bad_signature
Does it makes sense to add a scenario supplying an authz token without a signature?
http://gerrit.cloudera.org:8080/#/c/11751/9/src/kudu/tserver/tablet_server_authorization-test.cc@227
PS9, Line 227: token_creators.emplace_back([&] {
: LOG(INFO) << "Generating expired authz token";
: TokenSigningPrivateKeyPB tsk = GetTokenSigningPrivateKey(2);
: shared_ptr<TokenVerifier> verifier(new TokenVerifier());
: TokenSigner expired_signer(3600, /*authz_token_validity_seconds=*/1, 3600, verifier);
: CHECK_OK(expired_signer.ImportKeys({ tsk }));
: vector<TokenSigningPublicKeyPB> expired_public_keys = verifier->ExportKeys();
: CHECK_OK(mini_server_->server()->mutable_token_verifier()->ImportKeys(public_keys));
:
: SignedTokenPB token;
: CHECK_OK(expired_signer.GenerateAuthzToken(kUser, privilege, &token));
: // Wait for the token to expire.
: SleepFor(MonoDelta::FromSeconds(3));
: return token;
: });
Does it make sense to add a scenario to sign authz token with a signing key that isn't known to the verifier?
http://gerrit.cloudera.org:8080/#/c/11751/9/src/kudu/tserver/tablet_server_authorization-test.cc@250
PS9, Line 250: CheckInvalidAuthzToken(s, rpc)
Wrap into NO_FATALS()?
http://gerrit.cloudera.org:8080/#/c/11751/9/src/kudu/tserver/tablet_server_authorization-test.cc@258
PS9, Line 258: CheckInvalidAuthzToken(s, rpc)
Wrap into NO_FATALS()?
http://gerrit.cloudera.org:8080/#/c/11751/9/src/kudu/tserver/tablet_server_authorization-test.cc@284
PS9, Line 284: CheckInvalidAuthzToken(s, rpc)
Wrap into NO_FATALS()?
http://gerrit.cloudera.org:8080/#/c/11751/9/src/kudu/tserver/tablet_server_authorization-test.cc@298
PS9, Line 298: ValuesIn(vector<RequestorFunc>({ &WriteGenerator, &ScanGenerator,
: &SplitKeyRangeGenerator, &ChecksumGenerator })
Would Values(&WriteGenerator, &ScanGenerator, &SplitKeyRangeGenerator, &ChecksumGenerator) work here?
http://gerrit.cloudera.org:8080/#/c/11751/9/src/kudu/tserver/tablet_service.cc
File src/kudu/tserver/tablet_service.cc:
http://gerrit.cloudera.org:8080/#/c/11751/9/src/kudu/tserver/tablet_service.cc@146
PS9, Line 146: DEFINE_bool(tserver_enforce_access_control, false,
Do we want to ensure that all tablet servers are run with the same values of the FLAGS_tserver_enforce_access_control?
http://gerrit.cloudera.org:8080/#/c/11751/9/src/kudu/tserver/tablet_service.cc@390
PS9, Line 390: bool has_column_privileges = false;
: if (privilege.column_privileges_size() > 0) {
: for (const auto& col_id_and_privilege : privilege.column_privileges()) {
: if (col_id_and_privilege.second.scan_privilege()) {
: has_column_privileges = true;
: break;
: }
: }
: }
: return privilege.scan_privilege() || has_column_privileges;
nit: maybe, short-circuit it like the following:
if (privilege.scan_privilege()) {
return true;
}
... the code to find at least one column priviledge ...
http://gerrit.cloudera.org:8080/#/c/11751/9/src/kudu/tserver/tablet_service.cc@406
PS9, Line 406: AuthorizableRequest* req
Would 'const AuthorizableRequest&' suffice here? Why is it necessary to pass a pointer here?
http://gerrit.cloudera.org:8080/#/c/11751/9/src/kudu/tserver/tablet_service.cc@436
PS9, Line 436: token->Swap(&token_pb);
nit: I think std::move() should work as well since we compile protobuf with C++11 support.
http://gerrit.cloudera.org:8080/#/c/11751/9/src/kudu/tserver/tserver.proto
File src/kudu/tserver/tserver.proto:
http://gerrit.cloudera.org:8080/#/c/11751/9/src/kudu/tserver/tserver.proto@429
PS9, Line 429: enum TabletServerFeatures {
: UNKNOWN_FEATURE = 0;
: COLUMN_PREDICATES = 1;
: // Whether the server supports padding UNIXTIME_MICROS slots to 16 bytes.
: PAD_UNIXTIME_MICROS_TO_16_BYTES = 2;
Do we want to ensure a tablet server is be able to verify authz tokens? I.e., do we want to introduce a tablet server feature signalling about ability of tablet server to verify authz tokens?
http://gerrit.cloudera.org:8080/#/c/11751/9/src/kudu/tserver/tserver_service.proto
File src/kudu/tserver/tserver_service.proto:
http://gerrit.cloudera.org:8080/#/c/11751/9/src/kudu/tserver/tserver_service.proto@100
PS9, Line 100:
: // An authorization token with which to authorize this request.
: optional security.SignedTokenPB authz_token = 8;
I'm not sure I understand this -- that's the response part, right? Why don't we have authz_token in ChecksumRequestPB?
From another chapter, but do we make sure that user_id for ContinueChecksumRequestPB is the same as in the ChecksumRequestPB that originated the original checksum scan?
--
To view, visit http://gerrit.cloudera.org:8080/11751
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I99555e0ab2d09d4abcbc12b1100658a9a17590f4
Gerrit-Change-Number: 11751
Gerrit-PatchSet: 9
Gerrit-Owner: Andrew Wong <aw...@cloudera.com>
Gerrit-Reviewer: Adar Dembo <ad...@cloudera.com>
Gerrit-Reviewer: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Andrew Wong <aw...@cloudera.com>
Gerrit-Reviewer: Hao Hao <ha...@cloudera.com>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Tidy Bot (241)
Gerrit-Comment-Date: Mon, 07 Jan 2019 01:03:55 +0000
Gerrit-HasComments: Yes
[kudu-CR] KUDU-2543 pt 1: basic checks for authz tokens
Posted by "Andrew Wong (Code Review)" <ge...@cloudera.org>.
Andrew Wong has submitted this change and it was merged. ( http://gerrit.cloudera.org:8080/11751 )
Change subject: KUDU-2543 pt 1: basic checks for authz tokens
......................................................................
KUDU-2543 pt 1: basic checks for authz tokens
In preparation for passing around authorization tokens, the tservers are
now fitted with minimal token-verifying logic that protects the write
and the various scan-like endpoints (i.e. scans, checksum scans, and
split-key requests), optionally enforcing that the client has provided a
valid authz token. I put the negotiation authn token verification logic
into its own function for reuse in the tserver layer.
It's worth noting that scan-like requests that have a concept of a "new"
request vs a "continue" request (i.e. scans, checksum scans) will only
need verification on "new" requests. "Continue" requests are handled in
that a scanner cannot be hijacked by a user who didn't create it.
A test is added to test various scenarios at the tserver level.
Change-Id: I99555e0ab2d09d4abcbc12b1100658a9a17590f4
Reviewed-on: http://gerrit.cloudera.org:8080/11751
Tested-by: Andrew Wong <aw...@cloudera.com>
Reviewed-by: Adar Dembo <ad...@cloudera.com>
Reviewed-by: Hao Hao <ha...@cloudera.com>
Reviewed-by: Alexey Serbin <as...@cloudera.com>
---
M src/kudu/rpc/CMakeLists.txt
M src/kudu/rpc/rpc_header.proto
A src/kudu/rpc/rpc_verification_util.cc
A src/kudu/rpc/rpc_verification_util.h
M src/kudu/rpc/server_negotiation.cc
M src/kudu/security/token_verifier.cc
M src/kudu/tserver/CMakeLists.txt
M src/kudu/tserver/tablet_server-test-base.h
A src/kudu/tserver/tablet_server_authorization-test.cc
M src/kudu/tserver/tablet_service.cc
M src/kudu/tserver/tserver.proto
M src/kudu/tserver/tserver_service.proto
12 files changed, 600 insertions(+), 37 deletions(-)
Approvals:
Andrew Wong: Verified
Adar Dembo: Looks good to me, but someone else must approve
Hao Hao: Looks good to me, approved
Alexey Serbin: Looks good to me, approved
--
To view, visit http://gerrit.cloudera.org:8080/11751
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I99555e0ab2d09d4abcbc12b1100658a9a17590f4
Gerrit-Change-Number: 11751
Gerrit-PatchSet: 13
Gerrit-Owner: Andrew Wong <aw...@cloudera.com>
Gerrit-Reviewer: Adar Dembo <ad...@cloudera.com>
Gerrit-Reviewer: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Andrew Wong <aw...@cloudera.com>
Gerrit-Reviewer: Hao Hao <ha...@cloudera.com>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Tidy Bot (241)
[kudu-CR] KUDU-2543 pt 1: basic checks for authz tokens
Posted by "Andrew Wong (Code Review)" <ge...@cloudera.org>.
Hello Tidy Bot, Alexey Serbin, Kudu Jenkins, Adar Dembo, Hao Hao,
I'd like you to reexamine a change. Please visit
http://gerrit.cloudera.org:8080/11751
to look at the new patch set (#9).
Change subject: KUDU-2543 pt 1: basic checks for authz tokens
......................................................................
KUDU-2543 pt 1: basic checks for authz tokens
In preparation for passing around authorization tokens, the tservers are
now fitted with minimal token-verifying logic that protects the write
and the various scan-like endpoints (i.e. scans, checksum scans, and
split-key requests), optionally enforcing that the client has provided a
valid authz token. I put the negotiation authn token verification logic
into its own function for reuse in the tserver layer.
It's worth noting that scan-like requests that have a concept of a "new"
request vs a "continue" request (i.e. scans, checksum scans) will only
need verification on "new" requests. "Continue" requests are handled in
that a scanner cannot be hijacked by a user who didn't create it.
A test is added to test various scenarios at the tserver level.
Change-Id: I99555e0ab2d09d4abcbc12b1100658a9a17590f4
---
M src/kudu/rpc/CMakeLists.txt
M src/kudu/rpc/rpc_header.proto
A src/kudu/rpc/rpc_verification_util.cc
A src/kudu/rpc/rpc_verification_util.h
M src/kudu/rpc/server_negotiation.cc
M src/kudu/security/token_verifier.cc
M src/kudu/tserver/CMakeLists.txt
M src/kudu/tserver/tablet_server-test-base.h
A src/kudu/tserver/tablet_server_authorization-test.cc
M src/kudu/tserver/tablet_service.cc
M src/kudu/tserver/tserver.proto
M src/kudu/tserver/tserver_service.proto
12 files changed, 595 insertions(+), 37 deletions(-)
git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/51/11751/9
--
To view, visit http://gerrit.cloudera.org:8080/11751
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I99555e0ab2d09d4abcbc12b1100658a9a17590f4
Gerrit-Change-Number: 11751
Gerrit-PatchSet: 9
Gerrit-Owner: Andrew Wong <aw...@cloudera.com>
Gerrit-Reviewer: Adar Dembo <ad...@cloudera.com>
Gerrit-Reviewer: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Andrew Wong <aw...@cloudera.com>
Gerrit-Reviewer: Hao Hao <ha...@cloudera.com>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Tidy Bot (241)
[kudu-CR] KUDU-2543 pt 1: basic checks for authz tokens
Posted by "Adar Dembo (Code Review)" <ge...@cloudera.org>.
Adar Dembo has posted comments on this change. ( http://gerrit.cloudera.org:8080/11751 )
Change subject: KUDU-2543 pt 1: basic checks for authz tokens
......................................................................
Patch Set 8:
(4 comments)
http://gerrit.cloudera.org:8080/#/c/11751/7/src/kudu/rpc/rpc_verification_util.cc
File src/kudu/rpc/rpc_verification_util.cc:
http://gerrit.cloudera.org:8080/#/c/11751/7/src/kudu/rpc/rpc_verification_util.cc@59
PS7, Line 59: return Status::NotAuthorized(VerificationResultToString(result));
> Done
Hmm, wouldn't a LOG(FATAL) in the default case be safer? If we miss the compilation warning, and someone runs this code, the function will end up returning an error but with 'error' unset.
http://gerrit.cloudera.org:8080/#/c/11751/8/src/kudu/tserver/tablet_server_authorization-test.cc
File src/kudu/tserver/tablet_server_authorization-test.cc:
http://gerrit.cloudera.org:8080/#/c/11751/8/src/kudu/tserver/tablet_server_authorization-test.cc@104
PS8, Line 104: struct RequestGeneratorParam {
Are the struct and the lambdas necessary? Could you just define each generator as a static function, then wrap them up in a vector<std::function<...>>? Or better yet, avoid the vector altogether and use an initializer list in testing::ValuesIn?
I mean it works this way, but it's unusual to see lambdas defined in that scope, and it's not clear why the wrapping struct is necessary.
http://gerrit.cloudera.org:8080/#/c/11751/8/src/kudu/tserver/tablet_server_authorization-test.cc@175
PS8, Line 175: CHECK_OK(SchemaToColumnPBs(schema, scan->mutable_projected_columns()));
Could RETURN_NOT_OK here? And in the other generators?
http://gerrit.cloudera.org:8080/#/c/11751/8/src/kudu/tserver/tablet_service.cc
File src/kudu/tserver/tablet_service.cc:
http://gerrit.cloudera.org:8080/#/c/11751/8/src/kudu/tserver/tablet_service.cc@451
PS8, Line 451: DCHECK(req->GetTypeName() == "NewScanRequestPB" ||
: req->GetTypeName() == "SplitKeyRangeResponse") << req->GetTypeName();
Why is this necessary? Won't compilation fail if an AuthorizableScanRequest without authz_token() is used?
--
To view, visit http://gerrit.cloudera.org:8080/11751
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I99555e0ab2d09d4abcbc12b1100658a9a17590f4
Gerrit-Change-Number: 11751
Gerrit-PatchSet: 8
Gerrit-Owner: Andrew Wong <aw...@cloudera.com>
Gerrit-Reviewer: Adar Dembo <ad...@cloudera.com>
Gerrit-Reviewer: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Andrew Wong <aw...@cloudera.com>
Gerrit-Reviewer: Hao Hao <ha...@cloudera.com>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Tidy Bot (241)
Gerrit-Comment-Date: Thu, 03 Jan 2019 04:50:57 +0000
Gerrit-HasComments: Yes
[kudu-CR] KUDU-2543 pt 1: basic checks for authz tokens
Posted by "Andrew Wong (Code Review)" <ge...@cloudera.org>.
Andrew Wong has posted comments on this change. ( http://gerrit.cloudera.org:8080/11751 )
Change subject: KUDU-2543 pt 1: basic checks for authz tokens
......................................................................
Patch Set 11:
(3 comments)
http://gerrit.cloudera.org:8080/#/c/11751/10/src/kudu/tserver/tablet_server_authorization-test.cc
File src/kudu/tserver/tablet_server_authorization-test.cc:
http://gerrit.cloudera.org:8080/#/c/11751/10/src/kudu/tserver/tablet_server_authorization-test.cc@182
PS10, Line 182: anua
> nit: can you add a comment on why this number is used?
Done
http://gerrit.cloudera.org:8080/#/c/11751/10/src/kudu/tserver/tablet_service.cc
File src/kudu/tserver/tablet_service.cc:
http://gerrit.cloudera.org:8080/#/c/11751/10/src/kudu/tserver/tablet_service.cc@152
PS10, Line 152: tserver_inject_invalid_authz_token_ratio
> Can you add a comment on when this is expected to be used?
Done
http://gerrit.cloudera.org:8080/#/c/11751/9/src/kudu/tserver/tserver_service.proto
File src/kudu/tserver/tserver_service.proto:
http://gerrit.cloudera.org:8080/#/c/11751/9/src/kudu/tserver/tserver_service.proto@100
PS9, Line 100: optional ResourceMetricsPB resource_metrics = 7;
: }
:
> Can you add a comment in ChecksumRequestPB that the authz token is embedded
Done
--
To view, visit http://gerrit.cloudera.org:8080/11751
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I99555e0ab2d09d4abcbc12b1100658a9a17590f4
Gerrit-Change-Number: 11751
Gerrit-PatchSet: 11
Gerrit-Owner: Andrew Wong <aw...@cloudera.com>
Gerrit-Reviewer: Adar Dembo <ad...@cloudera.com>
Gerrit-Reviewer: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Andrew Wong <aw...@cloudera.com>
Gerrit-Reviewer: Hao Hao <ha...@cloudera.com>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Tidy Bot (241)
Gerrit-Comment-Date: Wed, 23 Jan 2019 01:29:51 +0000
Gerrit-HasComments: Yes
[kudu-CR] KUDU-2543 pt 1: basic checks for authz tokens
Posted by "Alexey Serbin (Code Review)" <ge...@cloudera.org>.
Alexey Serbin has posted comments on this change. ( http://gerrit.cloudera.org:8080/11751 )
Change subject: KUDU-2543 pt 1: basic checks for authz tokens
......................................................................
Patch Set 8:
(2 comments)
http://gerrit.cloudera.org:8080/#/c/11751/8/src/kudu/rpc/rpc_header.proto
File src/kudu/rpc/rpc_header.proto:
http://gerrit.cloudera.org:8080/#/c/11751/8/src/kudu/rpc/rpc_header.proto@335
PS8, Line 335: The connection is no
: // longer authenticated, so the client should obtain a new authn token and
: // reconnect.
I'm not sure that adds any clarify or useful information. IIRC, in KRPC the authenticity of a peer is verified during connection negotiation, and once a connection negotiation successfully completed, we never send FATAL_INVALID_AUTHENTICATION_TOKEN after that over the connection because the authn token is not present in further communications over an negotiated connection. I.e., there cannot be a situation that first connection was authenticated, but after some time it becomes 'no longer authenticated'.
http://gerrit.cloudera.org:8080/#/c/11751/8/src/kudu/tserver/tablet_service.cc
File src/kudu/tserver/tablet_service.cc:
http://gerrit.cloudera.org:8080/#/c/11751/8/src/kudu/tserver/tablet_service.cc@421
PS8, Line 421: failed to authorize token
nit: I'm not sure that's semantically correct -- tokens do not need authorization, usually some actions/operations need that. Maybe, report "token verification failure" instead?
--
To view, visit http://gerrit.cloudera.org:8080/11751
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I99555e0ab2d09d4abcbc12b1100658a9a17590f4
Gerrit-Change-Number: 11751
Gerrit-PatchSet: 8
Gerrit-Owner: Andrew Wong <aw...@cloudera.com>
Gerrit-Reviewer: Adar Dembo <ad...@cloudera.com>
Gerrit-Reviewer: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Andrew Wong <aw...@cloudera.com>
Gerrit-Reviewer: Hao Hao <ha...@cloudera.com>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Tidy Bot (241)
Gerrit-Comment-Date: Thu, 03 Jan 2019 06:09:01 +0000
Gerrit-HasComments: Yes
[kudu-CR] KUDU-2543 pt 1: basic checks for authz tokens
Posted by "Andrew Wong (Code Review)" <ge...@cloudera.org>.
Hello Tidy Bot, Alexey Serbin, Kudu Jenkins, Adar Dembo, Hao Hao,
I'd like you to reexamine a change. Please visit
http://gerrit.cloudera.org:8080/11751
to look at the new patch set (#8).
Change subject: KUDU-2543 pt 1: basic checks for authz tokens
......................................................................
KUDU-2543 pt 1: basic checks for authz tokens
In preparation for passing around authorization tokens, the tservers are
now fitted with minimal token-verifying logic that protects the write
and the various scan-like endpoints (i.e. scans, checksum scans, and
split-key requests), optionally enforcing that the client has provided a
valid authz token. I put the negotiation authn token verification logic
into its own function for reuse in the tserver layer.
It's worth noting that scan-like requests that have a concept of a "new"
request vs a "continue" request (i.e. scans, checksum scans) will only
need verification on "new" requests. "Continue" requests are handled in
that a scanner cannot be hijacked by a user who didn't create it.
A test is added to test various scenarios at the tserver level.
Change-Id: I99555e0ab2d09d4abcbc12b1100658a9a17590f4
---
M src/kudu/rpc/CMakeLists.txt
M src/kudu/rpc/rpc_header.proto
A src/kudu/rpc/rpc_verification_util.cc
A src/kudu/rpc/rpc_verification_util.h
M src/kudu/rpc/server_negotiation.cc
M src/kudu/security/token_verifier.cc
M src/kudu/tserver/CMakeLists.txt
M src/kudu/tserver/tablet_server-test-base.h
A src/kudu/tserver/tablet_server_authorization-test.cc
M src/kudu/tserver/tablet_service.cc
M src/kudu/tserver/tserver.proto
M src/kudu/tserver/tserver_service.proto
12 files changed, 596 insertions(+), 37 deletions(-)
git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/51/11751/8
--
To view, visit http://gerrit.cloudera.org:8080/11751
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I99555e0ab2d09d4abcbc12b1100658a9a17590f4
Gerrit-Change-Number: 11751
Gerrit-PatchSet: 8
Gerrit-Owner: Andrew Wong <aw...@cloudera.com>
Gerrit-Reviewer: Adar Dembo <ad...@cloudera.com>
Gerrit-Reviewer: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Andrew Wong <aw...@cloudera.com>
Gerrit-Reviewer: Hao Hao <ha...@cloudera.com>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Tidy Bot (241)
[kudu-CR] KUDU-2543 pt 1: basic checks for authz tokens
Posted by "Andrew Wong (Code Review)" <ge...@cloudera.org>.
Andrew Wong has posted comments on this change. ( http://gerrit.cloudera.org:8080/11751 )
Change subject: KUDU-2543 pt 1: basic checks for authz tokens
......................................................................
Patch Set 12: Verified+1
Failure was a known flake caused by KUDU-1736
--
To view, visit http://gerrit.cloudera.org:8080/11751
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I99555e0ab2d09d4abcbc12b1100658a9a17590f4
Gerrit-Change-Number: 11751
Gerrit-PatchSet: 12
Gerrit-Owner: Andrew Wong <aw...@cloudera.com>
Gerrit-Reviewer: Adar Dembo <ad...@cloudera.com>
Gerrit-Reviewer: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Andrew Wong <aw...@cloudera.com>
Gerrit-Reviewer: Hao Hao <ha...@cloudera.com>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Tidy Bot (241)
Gerrit-Comment-Date: Wed, 23 Jan 2019 22:41:01 +0000
Gerrit-HasComments: No
[kudu-CR] KUDU-2543 pt 1: basic checks for authz tokens
Posted by "Andrew Wong (Code Review)" <ge...@cloudera.org>.
Andrew Wong has posted comments on this change. ( http://gerrit.cloudera.org:8080/11751 )
Change subject: KUDU-2543 pt 1: basic checks for authz tokens
......................................................................
Patch Set 9:
(8 comments)
http://gerrit.cloudera.org:8080/#/c/11751/8/src/kudu/rpc/rpc_header.proto
File src/kudu/rpc/rpc_header.proto:
http://gerrit.cloudera.org:8080/#/c/11751/8/src/kudu/rpc/rpc_header.proto@335
PS8, Line 335: The connection
: // negotiation failed, and the client should obtain a new authn token and
: // try to rec
> I'm not sure that adds any clarify or useful information. IIRC, in KRPC th
Good point, this reads incorrectly, that a connection is established in the first place.
http://gerrit.cloudera.org:8080/#/c/11751/8/src/kudu/rpc/rpc_verification_util.h
File src/kudu/rpc/rpc_verification_util.h:
http://gerrit.cloudera.org:8080/#/c/11751/8/src/kudu/rpc/rpc_verification_util.h@34
PS8, Line 34: // 'retry_error' is the error code to be returned to denote that verification
: // should be r
> To me this looks more like a type of token that's being verified. Maybe, i
You're right that this is currently dictated by the kind of token presented, as far as callers are concerned. That said, I don't think it's worth combining the code, only to differentiate them based on the token type, particularly since they're only used in one place each at the moment.
http://gerrit.cloudera.org:8080/#/c/11751/7/src/kudu/rpc/rpc_verification_util.cc
File src/kudu/rpc/rpc_verification_util.cc:
http://gerrit.cloudera.org:8080/#/c/11751/7/src/kudu/rpc/rpc_verification_util.cc@59
PS7, Line 59: }
> Hmm, wouldn't a LOG(FATAL) in the default case be safer? If we miss the com
Done
http://gerrit.cloudera.org:8080/#/c/11751/8/src/kudu/rpc/rpc_verification_util.cc
File src/kudu/rpc/rpc_verification_util.cc:
http://gerrit.cloudera.org:8080/#/c/11751/8/src/kudu/rpc/rpc_verification_util.cc@36
PS8, Line 36: error);
> nit for here and below: if that 'using security::VerificationResult' is pre
Done
http://gerrit.cloudera.org:8080/#/c/11751/8/src/kudu/tserver/tablet_server_authorization-test.cc
File src/kudu/tserver/tablet_server_authorization-test.cc:
http://gerrit.cloudera.org:8080/#/c/11751/8/src/kudu/tserver/tablet_server_authorization-test.cc@104
PS8, Line 104: typedef std::function<Status(const Schema&, const SignedTokenPB*, TabletServerServiceProxy*,
> Are the struct and the lambdas necessary? Could you just define each genera
Done
I'd seen it done this way, though I realize now it's largely for grouping various things together (e.g. generators and validators). You're right that this'd be simpler as described since I'm not doing any such grouping, so I'll do that.
http://gerrit.cloudera.org:8080/#/c/11751/8/src/kudu/tserver/tablet_server_authorization-test.cc@175
PS8, Line 175: };
> Could RETURN_NOT_OK here? And in the other generators?
Done
http://gerrit.cloudera.org:8080/#/c/11751/8/src/kudu/tserver/tablet_service.cc
File src/kudu/tserver/tablet_service.cc:
http://gerrit.cloudera.org:8080/#/c/11751/8/src/kudu/tserver/tablet_service.cc@421
PS8, Line 421: authz token verification
> nit: I'm not sure that's semantically correct -- tokens do not need authori
Done
http://gerrit.cloudera.org:8080/#/c/11751/8/src/kudu/tserver/tablet_service.cc@451
PS8, Line 451: if (!VerifyAuthzTokenOrRespond(token_verifier, req, context, token)) {
: return false;
> Why is this necessary? Won't compilation fail if an AuthorizableScanRequest
Yeah, it's not, really. Mostly just to be sure we won't do something silly like pass in a WriteRequestPB or something, which also has an authz_token(). It may be a bit overkill, so I'll just remove it.
--
To view, visit http://gerrit.cloudera.org:8080/11751
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I99555e0ab2d09d4abcbc12b1100658a9a17590f4
Gerrit-Change-Number: 11751
Gerrit-PatchSet: 9
Gerrit-Owner: Andrew Wong <aw...@cloudera.com>
Gerrit-Reviewer: Adar Dembo <ad...@cloudera.com>
Gerrit-Reviewer: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Andrew Wong <aw...@cloudera.com>
Gerrit-Reviewer: Hao Hao <ha...@cloudera.com>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Tidy Bot (241)
Gerrit-Comment-Date: Fri, 04 Jan 2019 01:43:06 +0000
Gerrit-HasComments: Yes
[kudu-CR] KUDU-2543 pt 1: basic checks for authz tokens
Posted by "Andrew Wong (Code Review)" <ge...@cloudera.org>.
Andrew Wong has posted comments on this change. ( http://gerrit.cloudera.org:8080/11751 )
Change subject: KUDU-2543 pt 1: basic checks for authz tokens
......................................................................
Patch Set 8:
(11 comments)
http://gerrit.cloudera.org:8080/#/c/11751/7/src/kudu/rpc/rpc_header.proto
File src/kudu/rpc/rpc_header.proto:
http://gerrit.cloudera.org:8080/#/c/11751/7/src/kudu/rpc/rpc_header.proto@316
PS7, Line 316: // The authorization token is invalid or expired. Unlike
: // FATAL_INVALID_AUTHENTICATION_TOKEN, receipt of this code does not mean
: // that the connection should be droppe
> Curious why an invalid authz token is just an error while an invalid authn
Based on the comment at L289, these indicate that the connection shouldn't be dropped. We must drop the connection for invalid authn tokens, since they authenticate the connection itself; a new connection should be negotiated with a new authn token. This isn't the case for authz tokens; an invalid authz token doesn't hold any bearing on the status of the connection.
I'll amend the comments to describe this.
http://gerrit.cloudera.org:8080/#/c/11751/7/src/kudu/rpc/rpc_verification_util.cc
File src/kudu/rpc/rpc_verification_util.cc:
http://gerrit.cloudera.org:8080/#/c/11751/7/src/kudu/rpc/rpc_verification_util.cc@45
PS7, Line 45: }
> warning: std::move of the variable 'retry_error' of the trivially-copyable
Done
http://gerrit.cloudera.org:8080/#/c/11751/7/src/kudu/rpc/rpc_verification_util.cc@59
PS7, Line 59: return Status::NotAuthorized(VerificationResultToString(result));
> Looks like this can be pulled out of the three cases where it's explicitly
Done
Don't think so; these are all the cases right now, and if we ever introduce a new verification result, this should be updated, otherwise a compiler warning should surface. It's worth noting that `VerificationResult` is coming from a server-side function, not the client, so there's no risk of a hacked client feeding some bogus enum here.
http://gerrit.cloudera.org:8080/#/c/11751/7/src/kudu/tserver/CMakeLists.txt
File src/kudu/tserver/CMakeLists.txt:
http://gerrit.cloudera.org:8080/#/c/11751/7/src/kudu/tserver/CMakeLists.txt@180
PS7, Line 180: ADD_KUDU_TEST(tablet_server_authorization-test)
> Nit: maybe tablet_server_authorization-test, or ts_authorization-test? Just
Done
http://gerrit.cloudera.org:8080/#/c/11751/7/src/kudu/tserver/tablet_service.cc
File src/kudu/tserver/tablet_service.cc:
http://gerrit.cloudera.org:8080/#/c/11751/7/src/kudu/tserver/tablet_service.cc@399
PS7, Line 399: return privilege.scan_privilege() || has_column_privileges;
> warning: redundant boolean literal in conditional return statement [readabi
Done
http://gerrit.cloudera.org:8080/#/c/11751/7/src/kudu/tserver/tablet_service.cc@1438
PS7, Line 1438: metrics->set_cfile_cache_hit_bytes(
: context->trace()->metrics()->GetMetric(cfile::CFILE_CACHE_HIT_BYTES_METRIC_NAME));
: }
: } // anonymous namespace
:
: void TabletServiceImpl::Scan(const ScanRequestPB* req,
: ScanResponsePB* resp,
: rpc::RpcContext* context) {
: TRACE_EVENT0("tserver", "TabletServiceImpl::Scan");
: // Validate the request: user must pass a new_scan_request or
: // a scanner ID, but not both.
: if (PREDICT_FALSE(req->has_scanner_id() &&
: req->
> Looks like this can be shared amongst Scan/Checksum/SplitKeyRange?
Done
http://gerrit.cloudera.org:8080/#/c/11751/7/src/kudu/tserver/tablet_service.cc@1562
PS7, Line 1562:
> "split key range" I guess.
Done
http://gerrit.cloudera.org:8080/#/c/11751/7/src/kudu/tserver/tablet_service.cc@1703
PS7, Line 1703:
> checksum
Done
http://gerrit.cloudera.org:8080/#/c/11751/7/src/kudu/tserver/tserver.proto
File src/kudu/tserver/tserver.proto:
http://gerrit.cloudera.org:8080/#/c/11751/7/src/kudu/tserver/tserver.proto@170
PS7, Line 170: message ListTabletsRequestPB {
> Does this RPC need authorization since there's table metadata in the respon
Not quite, see https://gerrit.cloudera.org/c/11752/1/src/kudu/tserver/tablet_service.h
http://gerrit.cloudera.org:8080/#/c/11751/7/src/kudu/tserver/tserver_authorization-test.cc
File src/kudu/tserver/tserver_authorization-test.cc:
http://gerrit.cloudera.org:8080/#/c/11751/7/src/kudu/tserver/tserver_authorization-test.cc@174
PS7, Line 174:
> warning: argument name 'authz_token_validity' in comment does not match par
Done
http://gerrit.cloudera.org:8080/#/c/11751/7/src/kudu/tserver/tserver_authorization-test.cc@227
PS7, Line 227:
> Doesn't look like there's any shared state between requestors, so why not p
Done
--
To view, visit http://gerrit.cloudera.org:8080/11751
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I99555e0ab2d09d4abcbc12b1100658a9a17590f4
Gerrit-Change-Number: 11751
Gerrit-PatchSet: 8
Gerrit-Owner: Andrew Wong <aw...@cloudera.com>
Gerrit-Reviewer: Adar Dembo <ad...@cloudera.com>
Gerrit-Reviewer: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Andrew Wong <aw...@cloudera.com>
Gerrit-Reviewer: Hao Hao <ha...@cloudera.com>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Tidy Bot (241)
Gerrit-Comment-Date: Thu, 03 Jan 2019 02:44:19 +0000
Gerrit-HasComments: Yes
[kudu-CR] KUDU-2543 pt 1: basic checks for authz tokens
Posted by "Adar Dembo (Code Review)" <ge...@cloudera.org>.
Adar Dembo has posted comments on this change. ( http://gerrit.cloudera.org:8080/11751 )
Change subject: KUDU-2543 pt 1: basic checks for authz tokens
......................................................................
Patch Set 10: Code-Review+1
--
To view, visit http://gerrit.cloudera.org:8080/11751
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I99555e0ab2d09d4abcbc12b1100658a9a17590f4
Gerrit-Change-Number: 11751
Gerrit-PatchSet: 10
Gerrit-Owner: Andrew Wong <aw...@cloudera.com>
Gerrit-Reviewer: Adar Dembo <ad...@cloudera.com>
Gerrit-Reviewer: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Andrew Wong <aw...@cloudera.com>
Gerrit-Reviewer: Hao Hao <ha...@cloudera.com>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Tidy Bot (241)
Gerrit-Comment-Date: Mon, 07 Jan 2019 17:28:38 +0000
Gerrit-HasComments: No