Skip to content

Limit only to functions - more secure than row-level? #1360

Discussion options

You must be logged in to vote

So - my big question is, is there a way that I can disable ALL table access and only allow access via functions? That way I could ensure that security was maintained?

Yes. You can create a private schema where all your tables live and then only have functions on the public schema. This way you only have to worry about execute privileges on your functions - and not worry about crud privileges on your tables, because they're invisible to clients.

This is indeed the most strict/secure model under the schema isolation concept.

Or - is there among other thingsa way to handle complex row-level security (for example, writing to a "Task" table might mean that the userid is within the same grou…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@nruffilo
Comment options

Answer selected by steve-chavez
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants