Skip to content

Read restriction on geometry_columns is unnecessary #513

@pramsey

Description

@pramsey

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions