Greg Solovyev has uploaded this change for review. ( 
http://gerrit.cloudera.org:8080/12490


Change subject: KUDU-1900: add loopback check and test
......................................................................

KUDU-1900: add loopback check and test

This change modifies Socket::IsLoopbackConnection to check
if remote IP is in 127.0.0.0/8 subnet. With this change
all connections from 127.0.0.0/8 are treated as local.

This change adds force_external_client_ip parameter to
AuthTokenIssuingTest. Before this change, AuthTokenIssuingTest
relied on Kudu treating connections between non-matching
addresses in 127.0.0.0/8 subnet as external. With this change,
the test forces Kudu client to use an non-loopback IP
address for test cases that verify external connections.
If an external IP address is not available, test cases that
require an external IP will be skipped.

This change adds a test case to AuthTokenIssuingTest
which verifies that auth token is passed through
unencrypted local connections.

Change-Id: I3483a9729ddeeb7901e3738532a45b49e713208f

address comments

Change-Id: I74b41235af1d1d8da3506f8c7ac93f226d093040
---
M src/kudu/integration-tests/security-itest.cc
M src/kudu/util/net/socket.cc
2 files changed, 138 insertions(+), 27 deletions(-)



  git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/90/12490/1
--
To view, visit http://gerrit.cloudera.org:8080/12490
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I74b41235af1d1d8da3506f8c7ac93f226d093040
Gerrit-Change-Number: 12490
Gerrit-PatchSet: 1
Gerrit-Owner: Greg Solovyev <[email protected]>

Reply via email to