-
Notifications
You must be signed in to change notification settings - Fork 0
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
Feat/provisioning #7
Conversation
GRANT SELECT ("id", "accessLevel") ON group_folder_defaults TO baton; | ||
GRANT SELECT ("id", "accessLevel") on group_resources TO baton; | ||
GRANT SELECT ("id", "accessLevel") on group_resource_folder_defaults TO baton; | ||
GRANT SELECT, INSERT, UPDATE ("id", "accessLevel") ON group_pages TO baton; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nitpick: maybe we want to mention that if you don't want to do provisioning, you can grant just select on these things.
Also, if we are provisioning, don't we want to grant delete too?
@@ -8,21 +8,23 @@ Check out [Baton](https://github.com/conductorone/baton) to learn more the proje | |||
## Setup | |||
1. While connected to the Retool database, create a new user for the connector to connect to Postgres as. Be sure to create and save the secure password for this user: | |||
```postgresql | |||
CREATE USER conductorone WITH PASSWORD 'secure-password'; | |||
CREATE USER baton WITH PASSWORD 'secure-password'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops. Nice catch.
I wonder if we can rely on updating the database here to add users to groups, or if there is any logic that the server does when a user is added to a group? I suppose we could compare a dump of the database before and after a member is added to a group? |
I played around with this on my local retool instance and it just seems to mess with the user_groups table. 🤷♂️ |
Add provisioning of group membership.