File-Based Access Control#
Enable file-based access control.
Usage#
Provision the module:
minitrino provision -m file-access-control
Connect to the coordinator container’s Trino CLI:
minitrino exec -i 'trino-cli --user admin'
Confirm catalog visibility:
SHOW CATALOGS;
Catalog
---------
jmx
memory
system
tpcds
tpch
Switch to a non-admin user:
minitrino exec -i 'trino-cli --user alice'
Confirm catalog visibility:
SHOW CATALOGS;
Catalog
---------
system
Access Control Rules#
The access control rules are located in the rules.json file which defines
groups of users that map to certain access control permissions. The users for
the groups are defined in the groups.txt file (See the
file-group-provider
module for more information).
Group |
Access |
|---|---|
|
Full access to all objects in the cluster |
|
Access to the tables within the |
|
Access to the tables within the |
Dependent Modules#
file-group-provider: Maps users to groups using a mapping file.