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

Add support for create view options (security_invoker, etc) #432

Open
hiemanshu opened this issue Nov 22, 2024 · 0 comments
Open

Add support for create view options (security_invoker, etc) #432

hiemanshu opened this issue Nov 22, 2024 · 0 comments

Comments

@hiemanshu
Copy link

hiemanshu commented Nov 22, 2024

Since Postgres 15, views support security_invoker (and a few other options) https://www.depesz.com/2022/03/22/waiting-for-postgresql-15-add-support-for-security-invoker-views/ and looks like there's currently no support to do that. I'd love to have a simple API for create_view to be able to specify view options, doing something like this:

create_view :user_profile_accesses, security_invoker: true

Do you have any plans on working on this? If not I'm happy to pick it up and add it. Would love to get on the same page about what the API would look like.

We use RLS, and want to use views + RLS, and security_invoker is required, because views use the access of the view owenr, rather than the view invoker if security_invoker is not set to true

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

No branches or pull requests

1 participant