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

How to do "GRANT ALL ON SCHEMA public TO demo;" in postgres grant? #145

Open
sokoow opened this issue Aug 8, 2023 · 6 comments
Open

How to do "GRANT ALL ON SCHEMA public TO demo;" in postgres grant? #145

sokoow opened this issue Aug 8, 2023 · 6 comments
Labels
enhancement New feature or request

Comments

@sokoow
Copy link

sokoow commented Aug 8, 2023

What problem are you facing?

I'm trying for postgres Grant to invoke:

GRANT ALL ON SCHEMA public TO demo;

but can't find anything that would allow me to do it. Is there any way?

How could Crossplane help solve your problem?

I'd expect for grant object to have such an option.

@sokoow sokoow added the enhancement New feature or request label Aug 8, 2023
@Bastichou
Copy link
Contributor

Hi,
I was checking quite a similar feature but seems like the grant privileges at the table/schema level is not supported by the provider.

I'm considering trying to contribute to add this feature. But I'm not really familiar with Go.
I was checking this:

@YuriFarias741
Copy link

YuriFarias741 commented Aug 31, 2023

Hi @sokoow and @Bastichou
I am currently facing issues on the same spectrum as you guys are, having grant privileges at table/schema level is needed to solve the major scenarios i am running into with the provider

Did you guys have any luck working around these limitations?

@Bastichou
Copy link
Contributor

Hi,

Unfortunately not yet.. I just had time to have a look to the base code. Like I said this would be my first contribution so I don't have any ETA.

@JaniszM
Copy link

JaniszM commented Mar 27, 2024

Same here. GRANT privilege ON table/schema is an essential and highly needed feature. Without this, there is no way to manage user permissions declaratively :(

@FelixLusseau
Copy link

FelixLusseau commented May 6, 2024

Hi,

I agree with the previous comments especially as the Public schema is no longer really public since the version 15 of PostgreSQL (cf https://www.cybertec-postgresql.com/en/error-permission-denied-schema-public/).

This feature is important for one of my projects because we will not stay on PostgreSQL version 14 forever...

@Bastichou
Copy link
Contributor

Hi guys,

I have a work in progress to fix this issue.
Too early yet to have a PR but i'll keep you posted.

Goal is to add the management of Schema resource and then extend the Grant resource to allow schema reference.

https:/Bastichou/provider-sql/tree/feat/support-pgsql-schema-resource

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
None yet
Development

No branches or pull requests

5 participants