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

View WITH ( security_invoker = TRUE ) is not detected #234

Open
mrjackdavis opened this issue Nov 13, 2023 · 0 comments
Open

View WITH ( security_invoker = TRUE ) is not detected #234

mrjackdavis opened this issue Nov 13, 2023 · 0 comments

Comments

@mrjackdavis
Copy link

Hey,

Firstly great project. I come here via https://github.com/bikeshedder/tusker to report this issue

I use RLS fairly heavily in my project and I've found security_invoker setting is not respected when diffing a view. This is exceptionally dangerous because by default it causes me to leak sensitive data.

Given:

CREATE OR REPLACE my_view WITH ( security_invoker = TRUE ) AS ... against an empty db

Expected:

CREATE OR REPLACE my_view WITH ( security_invoker = TRUE ) AS ...

Actual

CREATE OR REPLACE my_view AS ...


I expect this is related to #182

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