You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@kudu.apache.org by "Hongjiang Zhang (Code Review)" <ge...@cloudera.org> on 2021/01/15 07:56:42 UTC
[kudu-CR] KUDU-3230: Fix the issue of hardcode sasl proto name
Hongjiang Zhang has uploaded this change for review. ( http://gerrit.cloudera.org:8080/16956
Change subject: KUDU-3230: Fix the issue of hardcode sasl_proto_name
......................................................................
KUDU-3230: Fix the issue of hardcode sasl_proto_name
'kudu' is used as sasl service name which is also used as kerberos
principal name when Kerberos is enabled, as a result, users can only
use 'kudu' than other principals. It is not flexible.
It is better allow to use customized sasl_proto_name by specifying other
arguments for kudu-master and kudu-tserver.
Change-Id: Ia1c8f9d9f772d000d9a588e4e9d6028711a62915
---
M src/kudu/integration-tests/security-itest.cc
M src/kudu/rpc/messenger.cc
2 files changed, 18 insertions(+), 4 deletions(-)
git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/56/16956/1
--
To view, visit http://gerrit.cloudera.org:8080/16956
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ia1c8f9d9f772d000d9a588e4e9d6028711a62915
Gerrit-Change-Number: 16956
Gerrit-PatchSet: 1
Gerrit-Owner: Hongjiang Zhang <ho...@ebay.com>
[kudu-CR] KUDU-3230: Fix the issue of hardcode sasl proto name
Posted by "Hongjiang Zhang (Code Review)" <ge...@cloudera.org>.
Hello Alexey Serbin, Kudu Jenkins,
I'd like you to reexamine a change. Please visit
http://gerrit.cloudera.org:8080/16956
to look at the new patch set (#6).
Change subject: KUDU-3230: Fix the issue of hardcode sasl_proto_name
......................................................................
KUDU-3230: Fix the issue of hardcode sasl_proto_name
'kudu' is used as sasl service name which is also used as kerberos
principal name when Kerberos is enabled, as a result, users can only
use 'kudu' than other principals. It is not flexible.
It is better allow to customize sasl_krb5_principal_name by specifying other
arguments for kudu-master and kudu-tserver.
Change-Id: Ia1c8f9d9f772d000d9a588e4e9d6028711a62915
---
M src/kudu/integration-tests/security-itest.cc
M src/kudu/rpc/messenger.cc
2 files changed, 29 insertions(+), 1 deletion(-)
git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/56/16956/6
--
To view, visit http://gerrit.cloudera.org:8080/16956
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: Ia1c8f9d9f772d000d9a588e4e9d6028711a62915
Gerrit-Change-Number: 16956
Gerrit-PatchSet: 6
Gerrit-Owner: Hongjiang Zhang <ho...@ebay.com>
Gerrit-Reviewer: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Kudu Jenkins (120)
[kudu-CR] KUDU-3230: Fix the issue of hardcode sasl proto name
Posted by "Hongjiang Zhang (Code Review)" <ge...@cloudera.org>.
Hello Alexey Serbin, Kudu Jenkins,
I'd like you to reexamine a change. Please visit
http://gerrit.cloudera.org:8080/16956
to look at the new patch set (#16).
Change subject: KUDU-3230: Fix the issue of hardcode sasl_proto_name
......................................................................
KUDU-3230: Fix the issue of hardcode sasl_proto_name
'kudu' is used as sasl service name which is also used as kerberos
principal name when Kerberos is enabled, as a result, users can only
use 'kudu' than other principals. It is not flexible.
It is better allow to customize sasl_krb5_principal_name by specifying other
arguments for kudu-master and kudu-tserver.
Change-Id: Ia1c8f9d9f772d000d9a588e4e9d6028711a62915
---
M src/kudu/integration-tests/security-itest.cc
M src/kudu/rpc/messenger.cc
M src/kudu/rpc/negotiation-test.cc
3 files changed, 43 insertions(+), 1 deletion(-)
git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/56/16956/16
--
To view, visit http://gerrit.cloudera.org:8080/16956
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: Ia1c8f9d9f772d000d9a588e4e9d6028711a62915
Gerrit-Change-Number: 16956
Gerrit-PatchSet: 16
Gerrit-Owner: Hongjiang Zhang <ho...@ebay.com>
Gerrit-Reviewer: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Kudu Jenkins (120)
[kudu-CR] KUDU-3230: Fix the issue of hardcode sasl proto name
Posted by "Hongjiang Zhang (Code Review)" <ge...@cloudera.org>.
Hello Alexey Serbin, Kudu Jenkins, Bankim Bhavsar,
I'd like you to reexamine a change. Please visit
http://gerrit.cloudera.org:8080/16956
to look at the new patch set (#20).
Change subject: KUDU-3230: Fix the issue of hardcode sasl_proto_name
......................................................................
KUDU-3230: Fix the issue of hardcode sasl_proto_name
'kudu' is used as sasl service name which is also used as kerberos
principal name when Kerberos is enabled, as a result, users can only
use 'kudu' than other principals. It is not flexible.
It is better allow to customize sasl_krb5_principal_name by specifying other
arguments for kudu-master and kudu-tserver.
Change-Id: Ia1c8f9d9f772d000d9a588e4e9d6028711a62915
---
M src/kudu/integration-tests/security-itest.cc
M src/kudu/rpc/messenger.cc
M src/kudu/rpc/negotiation-test.cc
3 files changed, 45 insertions(+), 1 deletion(-)
git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/56/16956/20
--
To view, visit http://gerrit.cloudera.org:8080/16956
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: Ia1c8f9d9f772d000d9a588e4e9d6028711a62915
Gerrit-Change-Number: 16956
Gerrit-PatchSet: 20
Gerrit-Owner: Hongjiang Zhang <ho...@ebay.com>
Gerrit-Reviewer: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Bankim Bhavsar <ba...@cloudera.com>
Gerrit-Reviewer: Kudu Jenkins (120)
[kudu-CR] KUDU-3230: Fix the issue of hardcode sasl proto name
Posted by "Hongjiang Zhang (Code Review)" <ge...@cloudera.org>.
Hello Alexey Serbin, Kudu Jenkins, Bankim Bhavsar,
I'd like you to reexamine a change. Please visit
http://gerrit.cloudera.org:8080/16956
to look at the new patch set (#17).
Change subject: KUDU-3230: Fix the issue of hardcode sasl_proto_name
......................................................................
KUDU-3230: Fix the issue of hardcode sasl_proto_name
'kudu' is used as sasl service name which is also used as kerberos
principal name when Kerberos is enabled, as a result, users can only
use 'kudu' than other principals. It is not flexible.
It is better allow to customize sasl_krb5_principal_name by specifying other
arguments for kudu-master and kudu-tserver.
Change-Id: Ia1c8f9d9f772d000d9a588e4e9d6028711a62915
---
M src/kudu/integration-tests/security-itest.cc
M src/kudu/rpc/messenger.cc
M src/kudu/rpc/negotiation-test.cc
3 files changed, 46 insertions(+), 1 deletion(-)
git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/56/16956/17
--
To view, visit http://gerrit.cloudera.org:8080/16956
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: Ia1c8f9d9f772d000d9a588e4e9d6028711a62915
Gerrit-Change-Number: 16956
Gerrit-PatchSet: 17
Gerrit-Owner: Hongjiang Zhang <ho...@ebay.com>
Gerrit-Reviewer: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Bankim Bhavsar <ba...@cloudera.com>
Gerrit-Reviewer: Kudu Jenkins (120)
[kudu-CR] KUDU-3230: Fix the issue of hardcode sasl proto name
Posted by "Hongjiang Zhang (Code Review)" <ge...@cloudera.org>.
Hello Kudu Jenkins,
I'd like you to reexamine a change. Please visit
http://gerrit.cloudera.org:8080/16956
to look at the new patch set (#2).
Change subject: KUDU-3230: Fix the issue of hardcode sasl_proto_name
......................................................................
KUDU-3230: Fix the issue of hardcode sasl_proto_name
'kudu' is used as sasl service name which is also used as kerberos
principal name when Kerberos is enabled, as a result, users can only
use 'kudu' than other principals. It is not flexible.
It is better allow to use customized sasl_proto_name by specifying other
arguments for kudu-master and kudu-tserver.
Change-Id: Ia1c8f9d9f772d000d9a588e4e9d6028711a62915
---
M src/kudu/integration-tests/security-itest.cc
M src/kudu/rpc/messenger.cc
2 files changed, 21 insertions(+), 1 deletion(-)
git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/56/16956/2
--
To view, visit http://gerrit.cloudera.org:8080/16956
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: Ia1c8f9d9f772d000d9a588e4e9d6028711a62915
Gerrit-Change-Number: 16956
Gerrit-PatchSet: 2
Gerrit-Owner: Hongjiang Zhang <ho...@ebay.com>
Gerrit-Reviewer: Kudu Jenkins (120)
[kudu-CR] KUDU-3230: Fix the issue of hardcode sasl proto name
Posted by "Hongjiang Zhang (Code Review)" <ge...@cloudera.org>.
Hello Alexey Serbin, Kudu Jenkins,
I'd like you to reexamine a change. Please visit
http://gerrit.cloudera.org:8080/16956
to look at the new patch set (#10).
Change subject: KUDU-3230: Fix the issue of hardcode sasl_proto_name
......................................................................
KUDU-3230: Fix the issue of hardcode sasl_proto_name
'kudu' is used as sasl service name which is also used as kerberos
principal name when Kerberos is enabled, as a result, users can only
use 'kudu' than other principals. It is not flexible.
It is better allow to customize sasl_krb5_principal_name by specifying other
arguments for kudu-master and kudu-tserver.
Change-Id: Ia1c8f9d9f772d000d9a588e4e9d6028711a62915
---
M src/kudu/integration-tests/security-itest.cc
M src/kudu/rpc/messenger.cc
M src/kudu/rpc/negotiation-test.cc
3 files changed, 40 insertions(+), 1 deletion(-)
git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/56/16956/10
--
To view, visit http://gerrit.cloudera.org:8080/16956
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: Ia1c8f9d9f772d000d9a588e4e9d6028711a62915
Gerrit-Change-Number: 16956
Gerrit-PatchSet: 10
Gerrit-Owner: Hongjiang Zhang <ho...@ebay.com>
Gerrit-Reviewer: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Kudu Jenkins (120)
[kudu-CR] KUDU-3230: Fix the issue of hardcode sasl proto name
Posted by "Hongjiang Zhang (Code Review)" <ge...@cloudera.org>.
Hello Alexey Serbin, Kudu Jenkins,
I'd like you to reexamine a change. Please visit
http://gerrit.cloudera.org:8080/16956
to look at the new patch set (#5).
Change subject: KUDU-3230: Fix the issue of hardcode sasl_proto_name
......................................................................
KUDU-3230: Fix the issue of hardcode sasl_proto_name
'kudu' is used as sasl service name which is also used as kerberos
principal name when Kerberos is enabled, as a result, users can only
use 'kudu' than other principals. It is not flexible.
It is better allow to customize sasl_krb5_principal_name by specifying other
arguments for kudu-master and kudu-tserver.
Change-Id: Ia1c8f9d9f772d000d9a588e4e9d6028711a62915
---
M src/kudu/integration-tests/security-itest.cc
M src/kudu/mini-cluster/external_mini_cluster.cc
M src/kudu/rpc/messenger.cc
3 files changed, 30 insertions(+), 1 deletion(-)
git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/56/16956/5
--
To view, visit http://gerrit.cloudera.org:8080/16956
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: Ia1c8f9d9f772d000d9a588e4e9d6028711a62915
Gerrit-Change-Number: 16956
Gerrit-PatchSet: 5
Gerrit-Owner: Hongjiang Zhang <ho...@ebay.com>
Gerrit-Reviewer: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Kudu Jenkins (120)
[kudu-CR] KUDU-3230: Fix the issue of hardcode sasl proto name
Posted by "Hongjiang Zhang (Code Review)" <ge...@cloudera.org>.
Hello Alexey Serbin, Kudu Jenkins,
I'd like you to reexamine a change. Please visit
http://gerrit.cloudera.org:8080/16956
to look at the new patch set (#9).
Change subject: KUDU-3230: Fix the issue of hardcode sasl_proto_name
......................................................................
KUDU-3230: Fix the issue of hardcode sasl_proto_name
'kudu' is used as sasl service name which is also used as kerberos
principal name when Kerberos is enabled, as a result, users can only
use 'kudu' than other principals. It is not flexible.
It is better allow to customize sasl_krb5_principal_name by specifying other
arguments for kudu-master and kudu-tserver.
Change-Id: Ia1c8f9d9f772d000d9a588e4e9d6028711a62915
---
M src/kudu/integration-tests/security-itest.cc
M src/kudu/rpc/messenger.cc
M src/kudu/rpc/negotiation-test.cc
3 files changed, 32 insertions(+), 1 deletion(-)
git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/56/16956/9
--
To view, visit http://gerrit.cloudera.org:8080/16956
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: Ia1c8f9d9f772d000d9a588e4e9d6028711a62915
Gerrit-Change-Number: 16956
Gerrit-PatchSet: 9
Gerrit-Owner: Hongjiang Zhang <ho...@ebay.com>
Gerrit-Reviewer: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Kudu Jenkins (120)
[kudu-CR] KUDU-3230: Fix the issue of hardcode sasl proto name
Posted by "Hongjiang Zhang (Code Review)" <ge...@cloudera.org>.
Hello Alexey Serbin, Kudu Jenkins,
I'd like you to reexamine a change. Please visit
http://gerrit.cloudera.org:8080/16956
to look at the new patch set (#12).
Change subject: KUDU-3230: Fix the issue of hardcode sasl_proto_name
......................................................................
KUDU-3230: Fix the issue of hardcode sasl_proto_name
'kudu' is used as sasl service name which is also used as kerberos
principal name when Kerberos is enabled, as a result, users can only
use 'kudu' than other principals. It is not flexible.
It is better allow to customize sasl_krb5_principal_name by specifying other
arguments for kudu-master and kudu-tserver.
Change-Id: Ia1c8f9d9f772d000d9a588e4e9d6028711a62915
---
M src/kudu/integration-tests/security-itest.cc
M src/kudu/rpc/messenger.cc
M src/kudu/rpc/negotiation-test.cc
3 files changed, 41 insertions(+), 1 deletion(-)
git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/56/16956/12
--
To view, visit http://gerrit.cloudera.org:8080/16956
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: Ia1c8f9d9f772d000d9a588e4e9d6028711a62915
Gerrit-Change-Number: 16956
Gerrit-PatchSet: 12
Gerrit-Owner: Hongjiang Zhang <ho...@ebay.com>
Gerrit-Reviewer: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Kudu Jenkins (120)
[kudu-CR] KUDU-3230: Fix the issue of hardcode sasl proto name
Posted by "Hongjiang Zhang (Code Review)" <ge...@cloudera.org>.
Hongjiang Zhang has abandoned this change. ( http://gerrit.cloudera.org:8080/16956 )
Change subject: KUDU-3230: Fix the issue of hardcode sasl_proto_name
......................................................................
Abandoned
It seems this fix was not as critical as expected, in addition it cannot pass UT. So, I decide to abandon it.
--
To view, visit http://gerrit.cloudera.org:8080/16956
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: abandon
Gerrit-Change-Id: Ia1c8f9d9f772d000d9a588e4e9d6028711a62915
Gerrit-Change-Number: 16956
Gerrit-PatchSet: 20
Gerrit-Owner: Hongjiang Zhang <ho...@ebay.com>
Gerrit-Reviewer: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Bankim Bhavsar <ba...@cloudera.com>
Gerrit-Reviewer: Kudu Jenkins (120)
[kudu-CR] KUDU-3230: Fix the issue of hardcode sasl proto name
Posted by "Hongjiang Zhang (Code Review)" <ge...@cloudera.org>.
Hello Alexey Serbin, Kudu Jenkins,
I'd like you to reexamine a change. Please visit
http://gerrit.cloudera.org:8080/16956
to look at the new patch set (#11).
Change subject: KUDU-3230: Fix the issue of hardcode sasl_proto_name
......................................................................
KUDU-3230: Fix the issue of hardcode sasl_proto_name
'kudu' is used as sasl service name which is also used as kerberos
principal name when Kerberos is enabled, as a result, users can only
use 'kudu' than other principals. It is not flexible.
It is better allow to customize sasl_krb5_principal_name by specifying other
arguments for kudu-master and kudu-tserver.
Change-Id: Ia1c8f9d9f772d000d9a588e4e9d6028711a62915
---
M src/kudu/integration-tests/security-itest.cc
M src/kudu/rpc/messenger.cc
M src/kudu/rpc/negotiation-test.cc
3 files changed, 41 insertions(+), 1 deletion(-)
git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/56/16956/11
--
To view, visit http://gerrit.cloudera.org:8080/16956
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: Ia1c8f9d9f772d000d9a588e4e9d6028711a62915
Gerrit-Change-Number: 16956
Gerrit-PatchSet: 11
Gerrit-Owner: Hongjiang Zhang <ho...@ebay.com>
Gerrit-Reviewer: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Kudu Jenkins (120)
[kudu-CR] KUDU-3230: Fix the issue of hardcode sasl proto name
Posted by "Alexey Serbin (Code Review)" <ge...@cloudera.org>.
Alexey Serbin has posted comments on this change. ( http://gerrit.cloudera.org:8080/16956 )
Change subject: KUDU-3230: Fix the issue of hardcode sasl_proto_name
......................................................................
Patch Set 2:
(2 comments)
http://gerrit.cloudera.org:8080/#/c/16956/2//COMMIT_MSG
Commit Message:
PS2:
It would be great to add a test to verify that a client is able to negotiate a secure connection with the server using a custom Kerberos credentials.
http://gerrit.cloudera.org:8080/#/c/16956/2/src/kudu/integration-tests/security-itest.cc
File src/kudu/integration-tests/security-itest.cc:
http://gerrit.cloudera.org:8080/#/c/16956/2/src/kudu/integration-tests/security-itest.cc@228
PS2, Line 228: TEST_F(SecurityITest, TestSaslProtoName) {
: // set a non-default name
: FLAGS_sasl_krb5_principal_name = "imap";
: std::shared_ptr<Messenger> messenger;
: CHECK_OK(rpc::MessengerBuilder("test-messenger")
: .set_num_reactors(1)
: .set_max_negotiation_threads(1)
: .Build(&messenger));
: ASSERT_EQ(messenger->sasl_proto_name(),
: FLAGS_sasl_krb5_principal_name);
What does this test tries to verify?
--
To view, visit http://gerrit.cloudera.org:8080/16956
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Ia1c8f9d9f772d000d9a588e4e9d6028711a62915
Gerrit-Change-Number: 16956
Gerrit-PatchSet: 2
Gerrit-Owner: Hongjiang Zhang <ho...@ebay.com>
Gerrit-Reviewer: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Comment-Date: Wed, 20 Jan 2021 18:06:55 +0000
Gerrit-HasComments: Yes
[kudu-CR] KUDU-3230: Fix the issue of hardcode sasl proto name
Posted by "Alexey Serbin (Code Review)" <ge...@cloudera.org>.
Alexey Serbin has posted comments on this change. ( http://gerrit.cloudera.org:8080/16956 )
Change subject: KUDU-3230: Fix the issue of hardcode sasl_proto_name
......................................................................
Patch Set 16:
(2 comments)
http://gerrit.cloudera.org:8080/#/c/16956/16/src/kudu/integration-tests/security-itest.cc
File src/kudu/integration-tests/security-itest.cc:
http://gerrit.cloudera.org:8080/#/c/16956/16/src/kudu/integration-tests/security-itest.cc@227
PS16, Line 227: Test customized SASL protocol name.
It would be nice to outline the sequence of the actions and the expected outcome. I.e., are Kudu server components supposed to run with the customized Kerberos credentials? What Kerberos credentials the client is going to use to access the cluster? Basically, outline the essence of the scenario here pointing to the important preconditions and outline the expected outcome. In the code below, you could add comments to outline some particular details, as needed.
http://gerrit.cloudera.org:8080/#/c/16956/16/src/kudu/integration-tests/security-itest.cc@230
PS16, Line 230: FLAGS_sasl_krb5_principal_name
I'm not sure I understand what's the purpose of setting this flag right here: is it just to have custom principal name for the client or the servers are supposed to use the custom SPN as well? If the latter, the proper way to do so is adding custom flags for kudu-master process run as a part of the ExternalMiniCluster. An example can be found in the SaslPlainFallback test scenario.
--
To view, visit http://gerrit.cloudera.org:8080/16956
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Ia1c8f9d9f772d000d9a588e4e9d6028711a62915
Gerrit-Change-Number: 16956
Gerrit-PatchSet: 16
Gerrit-Owner: Hongjiang Zhang <ho...@ebay.com>
Gerrit-Reviewer: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Bankim Bhavsar <ba...@cloudera.com>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Comment-Date: Wed, 27 Jan 2021 18:42:20 +0000
Gerrit-HasComments: Yes
[kudu-CR] KUDU-3230: Fix the issue of hardcode sasl proto name
Posted by "Hongjiang Zhang (Code Review)" <ge...@cloudera.org>.
Hello Alexey Serbin, Kudu Jenkins, Bankim Bhavsar,
I'd like you to reexamine a change. Please visit
http://gerrit.cloudera.org:8080/16956
to look at the new patch set (#18).
Change subject: KUDU-3230: Fix the issue of hardcode sasl_proto_name
......................................................................
KUDU-3230: Fix the issue of hardcode sasl_proto_name
'kudu' is used as sasl service name which is also used as kerberos
principal name when Kerberos is enabled, as a result, users can only
use 'kudu' than other principals. It is not flexible.
It is better allow to customize sasl_krb5_principal_name by specifying other
arguments for kudu-master and kudu-tserver.
Change-Id: Ia1c8f9d9f772d000d9a588e4e9d6028711a62915
---
M src/kudu/integration-tests/security-itest.cc
M src/kudu/rpc/messenger.cc
M src/kudu/rpc/negotiation-test.cc
3 files changed, 46 insertions(+), 1 deletion(-)
git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/56/16956/18
--
To view, visit http://gerrit.cloudera.org:8080/16956
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: Ia1c8f9d9f772d000d9a588e4e9d6028711a62915
Gerrit-Change-Number: 16956
Gerrit-PatchSet: 18
Gerrit-Owner: Hongjiang Zhang <ho...@ebay.com>
Gerrit-Reviewer: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Bankim Bhavsar <ba...@cloudera.com>
Gerrit-Reviewer: Kudu Jenkins (120)
[kudu-CR] KUDU-3230: Fix the issue of hardcode sasl proto name
Posted by "Hongjiang Zhang (Code Review)" <ge...@cloudera.org>.
Hello Alexey Serbin, Kudu Jenkins,
I'd like you to reexamine a change. Please visit
http://gerrit.cloudera.org:8080/16956
to look at the new patch set (#13).
Change subject: KUDU-3230: Fix the issue of hardcode sasl_proto_name
......................................................................
KUDU-3230: Fix the issue of hardcode sasl_proto_name
'kudu' is used as sasl service name which is also used as kerberos
principal name when Kerberos is enabled, as a result, users can only
use 'kudu' than other principals. It is not flexible.
It is better allow to customize sasl_krb5_principal_name by specifying other
arguments for kudu-master and kudu-tserver.
Change-Id: Ia1c8f9d9f772d000d9a588e4e9d6028711a62915
---
M src/kudu/integration-tests/security-itest.cc
M src/kudu/rpc/messenger.cc
M src/kudu/rpc/negotiation-test.cc
3 files changed, 40 insertions(+), 1 deletion(-)
git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/56/16956/13
--
To view, visit http://gerrit.cloudera.org:8080/16956
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: Ia1c8f9d9f772d000d9a588e4e9d6028711a62915
Gerrit-Change-Number: 16956
Gerrit-PatchSet: 13
Gerrit-Owner: Hongjiang Zhang <ho...@ebay.com>
Gerrit-Reviewer: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Kudu Jenkins (120)
[kudu-CR] KUDU-3230: Fix the issue of hardcode sasl proto name
Posted by "Hongjiang Zhang (Code Review)" <ge...@cloudera.org>.
Hello Alexey Serbin, Kudu Jenkins,
I'd like you to reexamine a change. Please visit
http://gerrit.cloudera.org:8080/16956
to look at the new patch set (#4).
Change subject: KUDU-3230: Fix the issue of hardcode sasl_proto_name
......................................................................
KUDU-3230: Fix the issue of hardcode sasl_proto_name
'kudu' is used as sasl service name which is also used as kerberos
principal name when Kerberos is enabled, as a result, users can only
use 'kudu' than other principals. It is not flexible.
It is better allow to customize sasl_krb5_principal_name by specifying other
arguments for kudu-master and kudu-tserver.
Change-Id: Ia1c8f9d9f772d000d9a588e4e9d6028711a62915
---
M src/kudu/integration-tests/security-itest.cc
M src/kudu/rpc/messenger.cc
2 files changed, 29 insertions(+), 1 deletion(-)
git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/56/16956/4
--
To view, visit http://gerrit.cloudera.org:8080/16956
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: Ia1c8f9d9f772d000d9a588e4e9d6028711a62915
Gerrit-Change-Number: 16956
Gerrit-PatchSet: 4
Gerrit-Owner: Hongjiang Zhang <ho...@ebay.com>
Gerrit-Reviewer: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Kudu Jenkins (120)
[kudu-CR] KUDU-3230: Fix the issue of hardcode sasl proto name
Posted by "Hongjiang Zhang (Code Review)" <ge...@cloudera.org>.
Hello Alexey Serbin, Kudu Jenkins,
I'd like you to reexamine a change. Please visit
http://gerrit.cloudera.org:8080/16956
to look at the new patch set (#8).
Change subject: KUDU-3230: Fix the issue of hardcode sasl_proto_name
......................................................................
KUDU-3230: Fix the issue of hardcode sasl_proto_name
'kudu' is used as sasl service name which is also used as kerberos
principal name when Kerberos is enabled, as a result, users can only
use 'kudu' than other principals. It is not flexible.
It is better allow to customize sasl_krb5_principal_name by specifying other
arguments for kudu-master and kudu-tserver.
Change-Id: Ia1c8f9d9f772d000d9a588e4e9d6028711a62915
---
M src/kudu/integration-tests/security-itest.cc
M src/kudu/rpc/messenger.cc
M src/kudu/rpc/negotiation-test.cc
3 files changed, 33 insertions(+), 1 deletion(-)
git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/56/16956/8
--
To view, visit http://gerrit.cloudera.org:8080/16956
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: Ia1c8f9d9f772d000d9a588e4e9d6028711a62915
Gerrit-Change-Number: 16956
Gerrit-PatchSet: 8
Gerrit-Owner: Hongjiang Zhang <ho...@ebay.com>
Gerrit-Reviewer: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Kudu Jenkins (120)
[kudu-CR] KUDU-3230: Fix the issue of hardcode sasl proto name
Posted by "Bankim Bhavsar (Code Review)" <ge...@cloudera.org>.
Bankim Bhavsar has posted comments on this change. ( http://gerrit.cloudera.org:8080/16956 )
Change subject: KUDU-3230: Fix the issue of hardcode sasl_proto_name
......................................................................
Patch Set 16:
(2 comments)
http://gerrit.cloudera.org:8080/#/c/16956/16/src/kudu/integration-tests/security-itest.cc
File src/kudu/integration-tests/security-itest.cc:
http://gerrit.cloudera.org:8080/#/c/16956/16/src/kudu/integration-tests/security-itest.cc@240
PS16, Line 240: //string klist;
: //ASSERT_OK(cluster_->kdc()->Klist(&klist));
: //ASSERT_STR_CONTAINS(klist, spn);
Could you remove this commented out code?
http://gerrit.cloudera.org:8080/#/c/16956/16/src/kudu/rpc/messenger.cc
File src/kudu/rpc/messenger.cc:
http://gerrit.cloudera.org:8080/#/c/16956/16/src/kudu/rpc/messenger.cc@64
PS16, Line 64: return v.find_first_of("\t\n ") == std::string::npos;
More comprehensive to use isspace() check as it covers other whitespace characters as well.
https://en.cppreference.com/w/cpp/string/byte/isspace
--
To view, visit http://gerrit.cloudera.org:8080/16956
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Ia1c8f9d9f772d000d9a588e4e9d6028711a62915
Gerrit-Change-Number: 16956
Gerrit-PatchSet: 16
Gerrit-Owner: Hongjiang Zhang <ho...@ebay.com>
Gerrit-Reviewer: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Bankim Bhavsar <ba...@cloudera.com>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Comment-Date: Wed, 27 Jan 2021 18:00:01 +0000
Gerrit-HasComments: Yes
[kudu-CR] KUDU-3230: Fix the issue of hardcode sasl proto name
Posted by "Hongjiang Zhang (Code Review)" <ge...@cloudera.org>.
Hello Alexey Serbin, Kudu Jenkins,
I'd like you to reexamine a change. Please visit
http://gerrit.cloudera.org:8080/16956
to look at the new patch set (#7).
Change subject: KUDU-3230: Fix the issue of hardcode sasl_proto_name
......................................................................
KUDU-3230: Fix the issue of hardcode sasl_proto_name
'kudu' is used as sasl service name which is also used as kerberos
principal name when Kerberos is enabled, as a result, users can only
use 'kudu' than other principals. It is not flexible.
It is better allow to customize sasl_krb5_principal_name by specifying other
arguments for kudu-master and kudu-tserver.
Change-Id: Ia1c8f9d9f772d000d9a588e4e9d6028711a62915
---
M src/kudu/integration-tests/security-itest.cc
M src/kudu/rpc/messenger.cc
M src/kudu/rpc/negotiation-test.cc
3 files changed, 40 insertions(+), 1 deletion(-)
git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/56/16956/7
--
To view, visit http://gerrit.cloudera.org:8080/16956
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: Ia1c8f9d9f772d000d9a588e4e9d6028711a62915
Gerrit-Change-Number: 16956
Gerrit-PatchSet: 7
Gerrit-Owner: Hongjiang Zhang <ho...@ebay.com>
Gerrit-Reviewer: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Kudu Jenkins (120)
[kudu-CR] KUDU-3230: Fix the issue of hardcode sasl proto name
Posted by "Hongjiang Zhang (Code Review)" <ge...@cloudera.org>.
Hello Alexey Serbin, Kudu Jenkins,
I'd like you to reexamine a change. Please visit
http://gerrit.cloudera.org:8080/16956
to look at the new patch set (#14).
Change subject: KUDU-3230: Fix the issue of hardcode sasl_proto_name
......................................................................
KUDU-3230: Fix the issue of hardcode sasl_proto_name
'kudu' is used as sasl service name which is also used as kerberos
principal name when Kerberos is enabled, as a result, users can only
use 'kudu' than other principals. It is not flexible.
It is better allow to customize sasl_krb5_principal_name by specifying other
arguments for kudu-master and kudu-tserver.
Change-Id: Ia1c8f9d9f772d000d9a588e4e9d6028711a62915
---
M src/kudu/integration-tests/security-itest.cc
M src/kudu/rpc/messenger.cc
M src/kudu/rpc/negotiation-test.cc
3 files changed, 43 insertions(+), 1 deletion(-)
git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/56/16956/14
--
To view, visit http://gerrit.cloudera.org:8080/16956
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: Ia1c8f9d9f772d000d9a588e4e9d6028711a62915
Gerrit-Change-Number: 16956
Gerrit-PatchSet: 14
Gerrit-Owner: Hongjiang Zhang <ho...@ebay.com>
Gerrit-Reviewer: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Kudu Jenkins (120)
[kudu-CR] KUDU-3230: Fix the issue of hardcode sasl proto name
Posted by "Hongjiang Zhang (Code Review)" <ge...@cloudera.org>.
Hello Alexey Serbin, Kudu Jenkins,
I'd like you to reexamine a change. Please visit
http://gerrit.cloudera.org:8080/16956
to look at the new patch set (#15).
Change subject: KUDU-3230: Fix the issue of hardcode sasl_proto_name
......................................................................
KUDU-3230: Fix the issue of hardcode sasl_proto_name
'kudu' is used as sasl service name which is also used as kerberos
principal name when Kerberos is enabled, as a result, users can only
use 'kudu' than other principals. It is not flexible.
It is better allow to customize sasl_krb5_principal_name by specifying other
arguments for kudu-master and kudu-tserver.
Change-Id: Ia1c8f9d9f772d000d9a588e4e9d6028711a62915
---
M src/kudu/integration-tests/security-itest.cc
M src/kudu/rpc/messenger.cc
M src/kudu/rpc/negotiation-test.cc
3 files changed, 43 insertions(+), 1 deletion(-)
git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/56/16956/15
--
To view, visit http://gerrit.cloudera.org:8080/16956
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: Ia1c8f9d9f772d000d9a588e4e9d6028711a62915
Gerrit-Change-Number: 16956
Gerrit-PatchSet: 15
Gerrit-Owner: Hongjiang Zhang <ho...@ebay.com>
Gerrit-Reviewer: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Kudu Jenkins (120)
[kudu-CR] KUDU-3230: Fix the issue of hardcode sasl proto name
Posted by "Alexey Serbin (Code Review)" <ge...@cloudera.org>.
Alexey Serbin has posted comments on this change. ( http://gerrit.cloudera.org:8080/16956 )
Change subject: KUDU-3230: Fix the issue of hardcode sasl_proto_name
......................................................................
Patch Set 17:
(2 comments)
It seems the tests are still failing?
http://gerrit.cloudera.org:8080/#/c/16956/17/src/kudu/integration-tests/security-itest.cc
File src/kudu/integration-tests/security-itest.cc:
http://gerrit.cloudera.org:8080/#/c/16956/17/src/kudu/integration-tests/security-itest.cc@229
PS17, Line 229: test-admin
Should this match current value of the FLAGS_sasl_krb5_principal_name ?
http://gerrit.cloudera.org:8080/#/c/16956/17/src/kudu/rpc/messenger.cc
File src/kudu/rpc/messenger.cc:
http://gerrit.cloudera.org:8080/#/c/16956/17/src/kudu/rpc/messenger.cc@59
PS17, Line 59: principal
Is this supposed to accept full principal name here or it's supposed to be the primary part only?
https://web.mit.edu/kerberos/krb5-1.5/krb5-1.5.4/doc/krb5-user/What-is-a-Kerberos-Principal_003f.html
--
To view, visit http://gerrit.cloudera.org:8080/16956
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: Ia1c8f9d9f772d000d9a588e4e9d6028711a62915
Gerrit-Change-Number: 16956
Gerrit-PatchSet: 17
Gerrit-Owner: Hongjiang Zhang <ho...@ebay.com>
Gerrit-Reviewer: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Bankim Bhavsar <ba...@cloudera.com>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Comment-Date: Wed, 10 Feb 2021 19:58:37 +0000
Gerrit-HasComments: Yes
[kudu-CR] KUDU-3230: Fix the issue of hardcode sasl proto name
Posted by "Hongjiang Zhang (Code Review)" <ge...@cloudera.org>.
Hello Alexey Serbin, Kudu Jenkins, Bankim Bhavsar,
I'd like you to reexamine a change. Please visit
http://gerrit.cloudera.org:8080/16956
to look at the new patch set (#19).
Change subject: KUDU-3230: Fix the issue of hardcode sasl_proto_name
......................................................................
KUDU-3230: Fix the issue of hardcode sasl_proto_name
'kudu' is used as sasl service name which is also used as kerberos
principal name when Kerberos is enabled, as a result, users can only
use 'kudu' than other principals. It is not flexible.
It is better allow to customize sasl_krb5_principal_name by specifying other
arguments for kudu-master and kudu-tserver.
Change-Id: Ia1c8f9d9f772d000d9a588e4e9d6028711a62915
---
M src/kudu/integration-tests/security-itest.cc
M src/kudu/rpc/messenger.cc
M src/kudu/rpc/negotiation-test.cc
3 files changed, 46 insertions(+), 1 deletion(-)
git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/56/16956/19
--
To view, visit http://gerrit.cloudera.org:8080/16956
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: Ia1c8f9d9f772d000d9a588e4e9d6028711a62915
Gerrit-Change-Number: 16956
Gerrit-PatchSet: 19
Gerrit-Owner: Hongjiang Zhang <ho...@ebay.com>
Gerrit-Reviewer: Alexey Serbin <as...@cloudera.com>
Gerrit-Reviewer: Bankim Bhavsar <ba...@cloudera.com>
Gerrit-Reviewer: Kudu Jenkins (120)