ctubbsii commented on code in PR #6203:
URL: https://github.com/apache/accumulo/pull/6203#discussion_r2908889263
##########
test/src/main/java/org/apache/accumulo/test/functional/PermissionsIT.java:
##########
@@ -703,8 +710,16 @@ public void tablePermissionTest() throws Exception {
loginAs(rootUser);
verifyHasOnlyTheseTablePermissions(c, c.whoami(),
SystemTables.METADATA.tableName(),
TablePermission.READ, TablePermission.ALTER_TABLE);
- String tableName = getUniqueNames(1)[0] + "__TABLE_PERMISSION_TEST__";
+ // check test user permissions on FATE and SCAN_REF tables
+ loginAs(testUser);
+ verifyHasOnlyTheseTablePermissions(c, test_user_client.whoami(),
+ SystemTables.FATE.tableName());
+ verifyHasOnlyTheseTablePermissions(c, test_user_client.whoami(),
+ SystemTables.SCAN_REF.tableName());
+
Review Comment:
> because SecurityOperation has an explicit check that gives the system user
all permissions
Even that should probably be locked down. It doesn't need access to most
tables, just read/write access to the system tables. But, that's out of scope
of this PR and can be done separately.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]