forked from trinodb/trino
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure first table matched rule in access control
although it doesn't have masked columns or table filters
- Loading branch information
1 parent
4dd11db
commit 0b2e428
Showing
6 changed files
with
218 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
46 changes: 46 additions & 0 deletions
46
lib/trino-plugin-toolkit/src/test/resources/file-based-system-access-table-mixed-groups.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
{ | ||
"tables": [ | ||
{ | ||
"catalog": "some-catalog", | ||
"schema": "my_schema", | ||
"table": "my_table", | ||
"privileges": ["SELECT", "GRANT_SELECT", "OWNERSHIP", "INSERT", "DELETE", "UPDATE"], | ||
"group": "group1" | ||
}, | ||
{ | ||
"catalog": "some-catalog", | ||
"schema": "my_schema", | ||
"table": "my_table", | ||
"columns" : [ | ||
{ | ||
"name": "col_a", | ||
"mask": "'mask_a'" | ||
}, | ||
{ | ||
"name": "col_b", | ||
"mask": "'mask_b'" | ||
} | ||
], | ||
"privileges": ["SELECT", "GRANT_SELECT"], | ||
"group": "group2" | ||
}, | ||
{ | ||
"catalog": "some-catalog", | ||
"schema": "my_schema", | ||
"table": "my_table", | ||
"columns" : [ | ||
{ | ||
"name": "col_a", | ||
"mask": "'mask_a'" | ||
}, | ||
{ | ||
"name": "col_b", | ||
"mask": "'mask_b'" | ||
} | ||
], | ||
"privileges": ["SELECT", "GRANT_SELECT"], | ||
"filter": "country='US'", | ||
"group": "group3" | ||
} | ||
] | ||
} |
43 changes: 43 additions & 0 deletions
43
lib/trino-plugin-toolkit/src/test/resources/table-mixed-groups.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
{ | ||
"tables": [ | ||
{ | ||
"schema": "my_schema", | ||
"table": "my_table", | ||
"privileges": ["SELECT", "GRANT_SELECT", "OWNERSHIP", "INSERT", "DELETE", "UPDATE"], | ||
"group": "group1" | ||
}, | ||
{ | ||
"schema": "my_schema", | ||
"table": "my_table", | ||
"columns" : [ | ||
{ | ||
"name": "col_a", | ||
"mask": "'mask_a'" | ||
}, | ||
{ | ||
"name": "col_b", | ||
"mask": "'mask_b'" | ||
} | ||
], | ||
"privileges": ["SELECT", "GRANT_SELECT"], | ||
"group": "group2" | ||
}, | ||
{ | ||
"schema": "my_schema", | ||
"table": "my_table", | ||
"columns" : [ | ||
{ | ||
"name": "col_a", | ||
"mask": "'mask_a'" | ||
}, | ||
{ | ||
"name": "col_b", | ||
"mask": "'mask_b'" | ||
} | ||
], | ||
"privileges": ["SELECT", "GRANT_SELECT"], | ||
"filter": "country='US'", | ||
"group": "group3" | ||
} | ||
] | ||
} |