-
Notifications
You must be signed in to change notification settings - Fork 65
Open
Labels
Description
I see we are being pretty hard-core about preventing leakage from low-level access keys, by, for example disallowing access to pg_* tables that might ordinarily be visible to read users.
However, for geometry_columns this is unnecessary (I think) because the views will only allow users to see tables to which they have read permission. I demonstrated this with a test user on my own database.
CREATE USER test LOGIN;
GRANT SELECT ON foobar TO test;
Then connect as test and run SELECT * FROM geometry_columns. Only the foobar table shows up.
In general though, even this is not quite idea as we really want to allow read users to programatically list every table they have access to, not just every spatial table.
rafatower