Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

User resource supporting permissions on tables #100

Closed
jplgec opened this issue Jun 3, 2024 · 4 comments · Fixed by #103
Closed

User resource supporting permissions on tables #100

jplgec opened this issue Jun 3, 2024 · 4 comments · Fixed by #103
Assignees

Comments

@jplgec
Copy link

jplgec commented Jun 3, 2024

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
Copy link
Owner

azaurus1 commented Jun 3, 2024

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
Copy link
Author

jplgec commented Jun 4, 2024

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
Copy link
Owner

azaurus1 commented Jun 4, 2024

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

@azaurus1 azaurus1 self-assigned this Jun 4, 2024
@azaurus1 azaurus1 linked a pull request Jun 6, 2024 that will close this issue
@azaurus1
Copy link
Owner

azaurus1 commented Jun 6, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants