OPTION(rgw_delete_multi_obj_max_num, OPT_INT) // According to AWS S3(https://docs.aws.amazon.com/AmazonS3/latest/dev/DeletingObjects.html), Amazon S3 also provides the Multi-Object Delete API that you can use to delete up to 1000 objects in a single HTTP request.
OPTION(rgw_website_routing_rules_max_num, OPT_INT) // According to AWS S3, An website routing config can have up to 50 rules.
OPTION(rgw_sts_entry, OPT_STR)
+OPTION(rgw_sts_key, OPT_STR)
Option("rgw_sts_entry", Option::TYPE_STR, Option::LEVEL_ADVANCED)
.set_default("sts")
.set_description("STS URL prefix")
- .set_long_description("URL path prefix for internal STS requests.")
+ .set_long_description("URL path prefix for internal STS requests."),
+
+ Option("rgw_sts_key", Option::TYPE_STR, Option::LEVEL_ADVANCED)
+ .set_default("sts")
+ .set_description("STS Key")
+ .set_long_description("Key used for encrypting/ decrypting session token.")
+
});
}
if (! cryptohandler) {
return -EINVAL;
}
- char secret_s[] = {
- 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07,
- 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f,
- };
- buffer::ptr secret(secret_s, sizeof(secret_s));
+ string secret_s = cct->_conf->rgw_sts_key;
+ buffer::ptr secret(secret_s.c_str(), secret_s.length());
int ret = 0;
if (ret = cryptohandler->validate_secret(secret); ret < 0) {
ldout(cct, 0) << "ERROR: Invalid secret key" << dendl;