Skip to content
This repository has been archived by the owner on Nov 21, 2024. It is now read-only.

Commit

Permalink
add grafana role during built-in migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
CRBl69 committed Jul 4, 2024
1 parent 35eca4c commit 20cfd54
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions cfg/cspell-dictionary.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ mdformat
mosquitto
mqtt
mqttoptions
noqa
notif
pgrep
plpgsql
Expand Down
5 changes: 5 additions & 0 deletions sql_extensions/sql/00002_add_grafana_role.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
-- noqa: disable=PRS
CREATE ROLE grafana ENCRYPTED PASSWORD 'grafana' LOGIN;

GRANT SELECT ON ALL TABLES IN SCHEMA public TO grafana;
ALTER DEFAULT PRIVILEGES IN SCHEMA public GRANT SELECT ON TABLES TO grafana;

0 comments on commit 20cfd54

Please sign in to comment.