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

Support DefaultPrivileges #117

Open
gogovan-vincentngai opened this issue Nov 10, 2022 · 1 comment · May be fixed by #199
Open

Support DefaultPrivileges #117

gogovan-vincentngai opened this issue Nov 10, 2022 · 1 comment · May be fixed by #199
Labels
enhancement New feature or request

Comments

@gogovan-vincentngai
Copy link

gogovan-vincentngai commented Nov 10, 2022

What problem are you facing?

I would like to grant permission for Postgresql database
From my understard , if we only grant permission to the database without DefaultPrivileges
new created table will not have the permission
However when i check the doc ,it seems does not support this
https://doc.crds.dev/github.com/crossplane-contrib/provider-sql/postgresql.sql.crossplane.io/Database/[email protected]
For Terraform it does have this
https://registry.terraform.io/providers/cyrilgdn/postgresql/latest/docs/resources/postgresql_default_privileges

螢幕截圖 2022-11-10 上午11 43 32

@gogovan-vincentngai gogovan-vincentngai added the enhancement New feature or request label Nov 10, 2022
@xocasdashdash xocasdashdash linked a pull request Oct 27, 2024 that will close this issue
2 tasks
@olikyr
Copy link

olikyr commented Nov 13, 2024

@gogovan-vincentngai and Joaquín Fernández Campo, do we really need to define "object" privileges using the provider? As for my understanding, the provider could help us define the database and its owner (and schemas is a nice to have); From this point on, projects will rely on db management tools like liquibase as soon as you give them a database owner.
Idk if you agree with me on this point? What would be the use case where the provider should also manage privileges on tables?

@Duologic Duologic moved this to In progress in Provider SQL Nov 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: In progress
Development

Successfully merging a pull request may close this issue.

2 participants