Hi there! Where can I find the syntax for ACL for ...
# troubleshooting
m
Hi there! Where can I find the syntax for ACL for logical databases? Like how the syntax for tables is
controller.admin.access.control.principals.dev.tables=table_1,table_2
from https://docs.pinot.apache.org/operators/tutorials/authentication/basic-auth-access-control? I have a 'dev' and 'prod' user and I want to create a 'dev' and 'prod' database. This way I can create new tables without having to worry about granting ACL access to each new table, which is an inconvenient additional step. Thank you so much! I'm really loving this slack community, what a great resource!
I went through the linked document, the release notes for 1.2.0, searched the slack, didn't find an example in this design discussion document, and even tried looking at the source code. What I'd expect is:
controller.admin.access.control.principals.dev.databases=dev_db
controller.admin.access.control.principals.prod.databases=prod_db
and
pinot.broker.access.control.principals.dev.databases=dev_db
pinot.broker.access.control.principals.prod.databases=prod_b
y
Actually there is no concept of database in Pinot. All tables are created on the same schema/database. You should find your way to dynamically manage parameters mentioned in the link you shared as you added new user/table
m
Hi Yusuf, thank you for the reply! My understanding is that logical databases are new as of 1.2.0: https://docs.pinot.apache.org/basics/releases/1.2.0 “V2 Engine now supports a "database" construct, enabling table namespace isolation within the same Pinot cluster.” And what I’m looking for is this info from that link: “Access control policies can be set at the database level.”