Add RBAC support to write benchmark#173
Draft
pingtimeout wants to merge 3 commits intoapache:mainfrom
Draft
Conversation
This commit adds the ability to create principal, principal roles,
catalog roles and grant privileges to each entity created by the
`CreateTreeDataset` workload.
The number of RBAC entities created is configurable.
By default, RBAC entity creation is disabled. The following parameters
have been added to the benchmarks configuration file:
```
rbac.enabled = false
rbac.num-principals = 5
rbac.catalog-role-names = ["catalog_reader", "catalog_contributor"]
rbac.principal-role-names = ["data_engineer", "data_scientist"]
```
The first principal (P_0) is always assigned the `service_administrator`
role. Remaining principals are assigned specific principal roles in a
round robin fashion (e.g. data_engineer, data_scientist, depending on
the value of `principal-role-names`).
The policy assignment does not try to match any realistic deployment and
is only there to stress the RBAC subsystem. The grants per entity type
are as follows:
* For namespaces
* catalog_administrator: `NAMESPACE_FULL_METADATA`
* all other configured roles: `NAMESPACE_LIST`
* For tables
* catalog_administrator: `TABLE_FULL_METADATA`, `TABLE_READ_DATA`, `TABLE_WRITE_DATA`
* half of the other configured roles: TABLE_LIST, `TABLE_READ_DATA`
* half of the other configured roles: TABLE_LIST, `TABLE_WRITE_DATA`
* For views
* catalog_administrator: `VIEW_FULL_METADATA`
* half of the other configured roles: `VIEW_LIST`,
`VIEW_WRITE_PROPERTIES`
* half of the other configured roles: `VIEW_LIST`,
`VIEW_WRITE_PROPERTIES`
This is an attempt at reproducing
apache/polaris#3685.
0ed1f0d to
b259551
Compare
This was referenced Feb 19, 2026
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This commit adds the ability to create principal, principal roles,
catalog roles and grant privileges to each entity created by the
CreateTreeDatasetworkload.The number of RBAC entities created is configurable.
By default, RBAC entity creation is disabled. The following parameters
have been added to the benchmarks configuration file:
The first principal (P_0) is always assigned the
service_administratorrole. Remaining principals are assigned specific principal roles in a
round robin fashion (e.g. data_engineer, data_scientist, depending on
the value of
principal-role-names).The policy assignment does not try to match any realistic deployment and
is only there to stress the RBAC subsystem. The grants per entity type
are as follows:
NAMESPACE_FULL_METADATANAMESPACE_LISTTABLE_FULL_METADATA,TABLE_READ_DATA,TABLE_WRITE_DATATABLE_READ_DATATABLE_WRITE_DATAVIEW_FULL_METADATAVIEW_LIST,VIEW_WRITE_PROPERTIESVIEW_LIST,VIEW_WRITE_PROPERTIESThis is an attempt at reproducing
apache/polaris#3685.