access_control_improvements
アクセス制御システムのオプションの改善に関する設定です。| Setting | Description | Default |
|---|---|---|
enable_read_write_grants | S3、HDFS、Kafka などの外部データソースに対する READ 権限と WRITE 権限の分離を有効にします。バージョン 25.7 以降で利用できます。true に設定すると、両方を対象とする単一の権限ではなく、ソースに対する READ 権限と WRITE 権限を個別に付与できます。 | false |
on_cluster_queries_require_cluster_grant | ON CLUSTER クエリの実行に CLUSTER 権限が必要かどうかを設定します。 | true |
role_cache_expiration_time_seconds | 最終アクセスからロールが Role Cache に保持される秒数を設定します。 | 600 |
select_from_information_schema_requires_grant | SELECT * FROM information_schema.<table> の実行に何らかの権限が必要かどうか、および任意のユーザーが実行できるかどうかを設定します。true に設定すると、このクエリの実行には通常のテーブルと同様に GRANT SELECT ON information_schema.<table> が必要になります。 | true |
select_from_system_db_requires_grant | SELECT * FROM system.<table> の実行に何らかの権限が必要かどうか、および任意のユーザーが実行できるかどうかを設定します。true に設定すると、このクエリの実行には非システムテーブルと同様に GRANT SELECT ON system.<table> が必要になります。例外: 一部のシステムテーブル (tables、columns、databases、および one、contributors などの定数テーブル) は引き続き誰でもアクセスできます。また、SHOW 権限 (たとえば SHOW USERS) が付与されている場合は、対応するシステムテーブル (つまり system.users) にアクセスできます。 | true |
settings_constraints_replace_previous | ある設定に対する settings profile 内の制約が、その設定に対する以前の制約 (他の profile で定義されたもの) の効果を、新しい制約で設定されていないフィールドも含めて打ち消すかどうかを設定します。また、changeable_in_readonly 制約タイプも有効にします。 | true |
table_engines_require_grant | 特定の table engine を使用してテーブルを作成する際に権限が必要かどうかを設定します。ClickHouse Cloud ではサポートされていません。 | false |
throw_on_unmatched_row_policies | テーブルに行ポリシーが存在するものの、そのいずれも current user に適用されない場合に、そのテーブルの読み取り時に例外をスローするかどうかを設定します | false |
users_without_row_policies_can_read_rows | 許可型の行ポリシーを持たないユーザーが、それでも SELECT クエリで行を読み取れるかどうかを設定します。たとえば、ユーザー A と B の 2 人がいて、行ポリシーが A に対してのみ定義されている場合、この設定が true ならユーザー B はすべての行を参照できます。この設定が false なら、ユーザー B には 1 行も表示されません。 | true |
<access_control_improvements>
<throw_on_unmatched_row_policies>true</throw_on_unmatched_row_policies>
<users_without_row_policies_can_read_rows>true</users_without_row_policies_can_read_rows>
<on_cluster_queries_require_cluster_grant>true</on_cluster_queries_require_cluster_grant>
<select_from_system_db_requires_grant>true</select_from_system_db_requires_grant>
<select_from_information_schema_requires_grant>true</select_from_information_schema_requires_grant>
<settings_constraints_replace_previous>true</settings_constraints_replace_previous>
<table_engines_require_grant>false</table_engines_require_grant>
<role_cache_expiration_time_seconds>600</role_cache_expiration_time_seconds>
<enable_read_write_grants>false</enable_read_write_grants>
</access_control_improvements>