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

[PGSQL] Extend Grant kind to support more than database object #217

Open
Bastichou opened this issue Feb 20, 2025 · 2 comments · May be fixed by #218
Open

[PGSQL] Extend Grant kind to support more than database object #217

Bastichou opened this issue Feb 20, 2025 · 2 comments · May be fixed by #218
Labels
enhancement New feature or request

Comments

@Bastichou
Copy link
Contributor

Support schema,objects,objectType specifications on Grant kind to grand permission on other object than the database.

This feature request will cover the following issues:

What problem are you facing?

Currently the GRANT object only support granting privileges to the Database object: GRANT %s ON DATABASE %s TO %s %s %s

Grant kind only supports granting permissions on Database object.
The Grant kind doest allow fine-grained permission on sub-object such as schemas, extensions, tables, columns etc.

How could Crossplane help solve your problem?

Introducing Schema, ObjectType and Objects to better qualify the grant specification is probably the way to do (this is how this Terraform provider is taking care of this) but this would be a breaking change (unless we set object database as default maybe).

Slack discussion link: https://crossplane.slack.com/archives/C0384KWFD52/p1739825314454329

@unni-facets
Copy link

@Bastichou I'd like to contribute to this issue. please let me know if I can work on this

@Bastichou
Copy link
Contributor Author

I started working on this PR (realy stage draft), feel free to comment.
We can sync on Slack if you wanna give me more inputs or recommandations :)

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: No status
2 participants