Skip to content

Commit

Permalink
Soften RBAC for mz_prepared_statement_history
Browse files Browse the repository at this point in the history
We need this to use a temporal filter on activity log information. We're not exposing customer data in this relation so there's no reason to keep the restriction so tight.
  • Loading branch information
SangJunBak committed Jan 30, 2025
1 parent a6171a6 commit 46b80bf
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/catalog/src/builtin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3030,7 +3030,12 @@ pub static MZ_PREPARED_STATEMENT_HISTORY: LazyLock<BuiltinSource> =
data_source: IntrospectionType::PreparedStatementHistory,
desc: MZ_PREPARED_STATEMENT_HISTORY_DESC.clone(),
is_retained_metrics_object: false,
access: vec![MONITOR_SELECT],
access: vec![
SUPPORT_SELECT,
ANALYTICS_SELECT,
MONITOR_REDACTED_SELECT,
MONITOR_SELECT,
],
});

pub static MZ_SQL_TEXT: LazyLock<BuiltinSource> = LazyLock::new(|| BuiltinSource {
Expand Down

0 comments on commit 46b80bf

Please sign in to comment.