Skip to content

postgres/grants

Reports a migration that grants all privileges.

Part of the postgres configuration, at the recommended level. It runs at the commit stage, once per scope. gspot runs this check itself.

A full grant includes truncating the table, adding triggers, and each privilege a later Postgres adds, which nobody meant to give.

Name the privileges the role needs, such as SELECT alone.

The statement GRANT ALL ON TABLE public.items TO app_reader; reports a broad grant. If the role only reads rows, use GRANT SELECT ON TABLE public.items TO app_reader;.

Turn it off for some files, with a reason:

gspot ignore postgres/grants --paths "<glob>" --reason "<why>"