v.23.12New Feature
Added readonly setting for S3 disk access in ClickHouse
Added a new settingreadonlywhich can be used to specify an S3 disk is read only. It can be useful to create a table on a disk ofs3_plaintype, while having read only access to the underlying S3 bucket. #57977 (Pengyuan Bian).
Why it matters
This feature allows users to configure an S3 disk as read-only, which is useful when creating tables ons3_plain type disks without granting write access to the underlying S3 bucket. It enhances security and prevents accidental modifications.How to use it
Set thereadonly parameter to true in the configuration of your S3 disk. For example:disks:
my_s3_disk:
type: s3_plain
endpoint: <endpoint_url>
readonly: true
access_key_id: <your_access_key>
secret_access_key: <your_secret_key>Then create tables using this disk to have read-only access to the S3 storage.