forked from cockroachdb/cockroach
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sql: add
sql.log.user_audit.reduced_config.enabled
to support single
role checks for role-based audit logs This change introduces the `sql.log.user_audit.reduced_config.enabled` cluster setting. When enabled, this cluster setting computes a "reduced" audit configuration based on the user's current role memberships and the current value for the `sql.log.user_audit` cluster setting. The "reduced" audit configuration is computed at the _first SQL event emit by the user after the setting is enabled_. Enabling the cluster setting allows us to compute the audit configuration once at session start, instead of computing at each SQL event (providing ~5% increase in throughput). The tradeoff is that changes to the audit configuration (user role memberships or cluster setting configuration) are not reflected within session. Users will need to start a new session to see these changes in their auditing behaviour. Release note (sql change): Introduce new cluster setting `sql.log.user_audit.reduced_config.enabled`. When enabled, this cluster setting computes a "reduced" audit configuration based on the user's current role memberships and the current value for the `sql.log.user_audit` cluster setting. The "reduced" audit configuration is computed at the _first SQL event emit by the user after the setting is enabled_. Enabling the cluster setting allows us to compute the audit configuration once at session start, instead of computing at each SQL event (providing ~5% increase in throughput). The tradeoff is that changes to the audit configuration (user role memberships or cluster setting configuration) are not reflected within session. Users will need to start a new session to see these changes in their auditing behaviour. https://cockroachlabs.atlassian.net/browse/DOC-1355 #Informs: cockroachdb#33316 #Epic: CRDB-8035
- Loading branch information
Thomas Hardy
committed
Jun 5, 2023
1 parent
e2f691d
commit cbf8e43
Showing
5 changed files
with
186 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters