Skip to content

Commit

Permalink
Give permission to read user(id, name) to redash_reader
Browse files Browse the repository at this point in the history
  • Loading branch information
arikfr committed Jul 26, 2015
1 parent 76cb73f commit b14b6d1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions setup/bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ if [ $pg_user_exists -ne 0 ]; then
REDASH_READER_PASSWORD=$(pwgen -1)
sudo -u postgres psql -c "CREATE ROLE redash_reader WITH PASSWORD '$REDASH_READER_PASSWORD' NOCREATEROLE NOCREATEDB NOSUPERUSER LOGIN"
sudo -u redash psql -c "grant select(id,name,type) ON data_sources to redash_reader;" redash
sudo -u redash psql -c "grant select(id,name) ON users to redash_reader;" redash
sudo -u redash psql -c "grant select on activity_log, events, queries, dashboards, widgets, visualizations, query_results to redash_reader;" redash

cd /opt/redash/current
Expand Down

0 comments on commit b14b6d1

Please sign in to comment.