Since this is visible to the bucket owners, it can be presumed to be a functional feature. Providing the ability to deactivate the feature could be beneficial in such scenarios.
Fixes: https://tracker.ceph.com/issues/65397
Signed-off-by: Seena Fallah <seenafallah@gmail.com>
services:
- rgw
with_legacy: true
+- name: rgw_enable_mdsearch
+ type: bool
+ level: basic
+ desc: Enable elastic metadata search APIs
+ long_desc: This configurable controls whether RGW handles the elastic metadata search APIs.
+ default: true
+ services:
+ - rgw
+ with_legacy: true
- name: rgw_user_unique_email
type: bool
level: basic
}
if (s->info.args.exists("mdsearch")) {
+ if (!s->cct->_conf->rgw_enable_mdsearch) {
+ return NULL;
+ }
return new RGWGetBucketMetaSearch_ObjStore_S3;
}
}
if (s->info.args.exists("mdsearch")) {
+ if (!s->cct->_conf->rgw_enable_mdsearch) {
+ return NULL;
+ }
return new RGWDelBucketMetaSearch_ObjStore_S3;
}
}
if (s->info.args.exists("mdsearch")) {
+ if (!s->cct->_conf->rgw_enable_mdsearch) {
+ return NULL;
+ }
return new RGWConfigBucketMetaSearch_ObjStore_S3;
}