You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@kudu.apache.org by "Zoltan Chovan (Code Review)" <ge...@cloudera.org> on 2026/10/30 13:36:36 UTC
[kudu-CR] KUDU-3586 [tests] Add proxy user end-to-end test coverage
Zoltan Chovan has uploaded a new patch set (#5) to the change originally created by mintao. ( http://gerrit.cloudera.org:8080/24832 )
Change subject: KUDU-3586 [tests] Add proxy user end-to-end test coverage
......................................................................
KUDU-3586 [tests] Add proxy user end-to-end test coverage
Thread the create-principal control request through the Java test
infrastructure (MiniKuduCluster.createUserPrincipal(), forwarded by
KuduTestHarness) so that Java tests can create arbitrary user principals
in the mini KDC before kinit.
Add TestProxyUser, a secure, cluster-backed test covering the Java
client side of proxy user support:
- testProxyUserActsAsTarget: a client authenticated via GSSAPI as
'proxy-service' connects with effectiveUser('proxy-target'). The
created table's owner must be the proxied target user, proving the
SASL authorization identity propagates through the JDK's GSSAPI SASL
client, passes server-side proxy authorization, and drives authz
attribution. Reads and writes are also exercised.
- testProxyUserDeniedTarget: an effective user that is in --user-acl
but not in the proxy user ACL is rejected by the proxy check alone,
and the client reports the reason from the server without retrying.
- testProxyUserHostDenied: a real user allowed to act as the target,
but only from other addresses, is rejected by the host rule.
- testProxyUserGroupRule: a group rule allows acting as the current OS
user, a member of its primary group.
- testSameUserNeedsNoProxyRules: acting as the authenticated user does
not require proxy user rules; the principal used has none.
- testExportedCredentialsActAsTarget: credentials exported by a proxied
client are imported by a client without Kerberos credentials, which
acts as the effective user.
The proxy service account is not in --user-acl, since servers authorize
proxied RPCs against the effective user.
Co-authored-by: hzmintao <mi...@gmail.com>
Change-Id: I182cecc5c63e7b921c9c3a77ca3c121931632587
---
A java/kudu-client/src/test/java/org/apache/kudu/client/TestProxyUser.java
M java/kudu-test-utils/src/main/java/org/apache/kudu/test/KuduTestHarness.java
M java/kudu-test-utils/src/main/java/org/apache/kudu/test/cluster/MiniKuduCluster.java
3 files changed, 262 insertions(+), 0 deletions(-)
git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/32/24832/5
--
To view, visit http://gerrit.cloudera.org:8080/24832
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings
Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I182cecc5c63e7b921c9c3a77ca3c121931632587
Gerrit-Change-Number: 24832
Gerrit-PatchSet: 5
Gerrit-Owner: mintao <mi...@gmail.com>
Gerrit-Reviewer: Alexey Serbin <al...@apache.org>
Gerrit-Reviewer: Kudu Jenkins (120)
Gerrit-Reviewer: Marton Greber <gr...@gmail.com>
Gerrit-Reviewer: Zoltan Chovan <zc...@cloudera.com>