Fang-Yu Rao has posted comments on this change. ( 
http://gerrit.cloudera.org:8080/24785 )

Change subject: IMPALA-15323: Produce Ranger audit events for CREATE/DROP ROLE
......................................................................


Patch Set 6:

(1 comment)

I have addressed Quanlong's comment on patch set 5. Let me know if there are 
additional suggestions. Thanks!

http://gerrit.cloudera.org:8080/#/c/24785/5/fe/src/test/java/org/apache/impala/authorization/ranger/RangerCatalogdAuthorizationManagerTest.java
File 
fe/src/test/java/org/apache/impala/authorization/ranger/RangerCatalogdAuthorizationManagerTest.java:

http://gerrit.cloudera.org:8080/#/c/24785/5/fe/src/test/java/org/apache/impala/authorization/ranger/RangerCatalogdAuthorizationManagerTest.java@131
PS5, Line 131:     }, OWNER_USER.getName(), TEST_ROLE_2, /* expectSuccess */ 
false);
> Since these are tests on audit events, can we expect authzManager.createRol
Thanks Quanlong! Your suggestion is feasible. :-)

I also found that even if we call authzManager.dropRole() as OWNER_USER to drop 
a non-existent role, Ranger server would still return an error like "User 
<requesting_user_name> does not have permission for this operation" and the 
audit event could still be produced. So in the case when the requesting user is 
OWNER_USER, we don't have to create a role in advance. This could further 
simplify the test.

I will simplify the test as suggested in the next patch.



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

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I3fcfe0dcf54041aca57ed66ddef95b0ddd15b6fb
Gerrit-Change-Number: 24785
Gerrit-PatchSet: 6
Gerrit-Owner: Fang-Yu Rao <[email protected]>
Gerrit-Reviewer: Csaba Ringhofer <[email protected]>
Gerrit-Reviewer: Fang-Yu Rao <[email protected]>
Gerrit-Reviewer: Impala Public Jenkins <[email protected]>
Gerrit-Reviewer: Jason Fehr <[email protected]>
Gerrit-Reviewer: Michael Smith <[email protected]>
Gerrit-Reviewer: Quanlong Huang <[email protected]>
Gerrit-Comment-Date: Fri, 30 Oct 2026 05:13:48 +0000
Gerrit-HasComments: Yes

Reply via email to