azaurus1 / terraform-provider-pinot

A terraform provider for Apache Pinot
https://registry.terraform.io/providers/azaurus1/pinot/latest
Mozilla Public License 2.0
8 stars 1 forks source link

User resource supporting permissions on tables #100

Closed jplgec closed 3 weeks ago

jplgec commented 3 weeks ago

I want to create users which have permissions on certain tables only. The current version of the provider doesn't seem to support that. Do you have any plans to add this?

azaurus1 commented 3 weeks ago

Hi @jplgec, could you clarify a bit more, how did you want to set the permissions for tables, is it via ACLs or with the RBAC provided by StarTree?

jplgec commented 3 weeks ago

I am talking about ACLs, I would like to move away from custom scripts and use the terraform provider to create a user like this:

curl --location 'localhost:9000/users' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic <auth_token>' \
--data '{
    "username" : "username",
    "password" : "<password>",
    "component" : "BROKER",
    "role" : "USER",
    "permissions" : ["READ"],
    "tables" : ["my_table_OFFLINE"]
}

I want to be able to create a user that is only allowed to read "my_table_OFFLINE", like in the above example.

azaurus1 commented 3 weeks ago

Ok yeah, I am happy to add this, should be implemented within the next couple of days

azaurus1 commented 3 weeks ago

Hi @jplgec, this is now implemented in v0.7.5