Skip to content

Commit

Permalink
Grant readonly user access to augury as well, for local dev
Browse files Browse the repository at this point in the history
  • Loading branch information
cavis committed Jul 16, 2024
1 parent f070d54 commit c41ea61
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion spire/templates/shared-clickhouse/instance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,10 @@ Resources:
04_setup_users:
command: !Sub |
#!/bin/bash
# Rollups
# Readonly
clickhouse-client -q "CREATE USER OR REPLACE ${RollupsUsername} IDENTIFIED BY '${RollupsPassword}' SETTINGS PROFILE 'readonly'"
clickhouse-client -q "GRANT SHOW TABLES, SELECT ON ${RollupsDatabase}.* TO ${RollupsUsername}"
clickhouse-client -q "GRANT SHOW TABLES, SELECT ON ${AuguryDatabase}.* TO ${RollupsUsername}"
# Augury
clickhouse-client -q "CREATE USER OR REPLACE ${AuguryUsername} IDENTIFIED BY '${AuguryPassword}'"
clickhouse-client -q "GRANT ALL ON ${AuguryDatabase}.* TO ${AuguryUsername}"
Expand Down

0 comments on commit c41ea61

Please sign in to comment.