You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sql: add VIEWEVENTLOG system privilege for event log visibility
Previously, viewing the event log required `admin` or
`VIEWCLUSTERMETADATA`, both of which are overprivileged for users who
only need to read cluster events (e.g. SREs and auditors correlating
events during incidents).
This change introduces a new `VIEWEVENTLOG` system privilege that
grants read-only access to `system.eventlog`. The gRPC Events API now
accepts either `VIEWEVENTLOG` or the existing `VIEWCLUSTERMETADATA`
privilege, and the error message mentions both options. The privilege
also grants implicit `SELECT` on `system.eventlog` so the DB Console
SQL-based events page works correctly.
Non-admin users can now be granted event log visibility via:
```sql
GRANT SYSTEM VIEWEVENTLOG TO <user>;
```
Fixes: #169421
Epic: none
Release note (sql change): Added a new `VIEWEVENTLOG` system privilege
that grants read-only access to the event log. Non-admin users can be
granted event log visibility via `GRANT SYSTEM VIEWEVENTLOG TO <user>`
without needing `VIEWCLUSTERMETADATA` or the `admin` role.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
0 commit comments