timescale/promscale_extension

Automatically detect and warn on DB objects without explicit GRANT to prom_* roles

Open

#91 opened on Feb 25, 2022

View on GitHub
 (0 comments) (0 reactions) (0 assignees)PLpgSQL (19 forks)auto 404
good first issue

Repository metrics

Stars
 (37 stars)
PR merge metrics
 (PR metrics pending)

Description

In the current Promscale SQL, there are a small number of objects which do not have an explicit GRANT to one of the prom_reader, prom_writer, ... roles. This means that these objects are not participating in the permissions system properly.

In principle we know that every object should have at least one acl entry which references one of the prom_* roles.

It should be relatively simple to write a CI job which validates that all objects in the prom_* schemas also have at least one acl assigned to one of the prom_* roles.

Contributor guide