Repository navigation
Enable all access control improvements by default - #58584
Merged
Merged
Conversation
Contributor
|
This is an automated comment for commit 6bc27df with description of existing statuses. It's updated for the latest CI running ❌ Click here to open a full report in a separate page Successful checks
|
azat
reviewed
Feb 19, 2024
| For example, if there two users A, B and a row policy is defined only for A, then | ||
| if this setting is true the user B will see all rows, and if this setting is false the user B will see no rows. | ||
| By default this setting is false for compatibility with earlier access configurations. --> | ||
| <users_without_row_policies_can_read_rows>false</users_without_row_policies_can_read_rows> |
Member
There was a problem hiding this comment.
Maybe it wroth to change the default values of the getters as well, i.e.:
$ gg 'getBool("access_control_improvements'
src/Access/AccessControl.cpp: setEnabledUsersWithoutRowPoliciesCanReadRows(config_.getBool("access_control_improvements.users_without_row_policies_can_read_rows", false));
src/Access/AccessControl.cpp: setOnClusterQueriesRequireClusterGrant(config_.getBool("access_control_improvements.on_cluster_queries_require_cluster_grant", false));
src/Access/AccessControl.cpp: setSelectFromSystemDatabaseRequiresGrant(config_.getBool("access_control_improvements.select_from_system_db_requires_grant", false));
src/Access/AccessControl.cpp: setSelectFromInformationSchemaRequiresGrant(config_.getBool("access_control_improvements.select_from_information_schema_requires_grant", false));
src/Access/AccessControl.cpp: setSettingsConstraintsReplacePrevious(config_.getBool("access_control_improvements.settings_constraints_replace_previous", false));
Member
Author
There was a problem hiding this comment.
Yes, it makes sense. Please send a PR.
29 tasks
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
Enable various changes to improve the access control in the configuration file. These changes affect the behavior, and you check the
config.xmlin theaccess_control_improvementssection. In case you are not confident, keep the values in the configuration file as they were in the previous version.