From: Richard Poole Date: Tue, 14 Jan 2025 08:04:37 +0000 (+0000) Subject: rgw: allow management of `accounts` user caps X-Git-Tag: v19.2.3~190^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=bf68d77ab677f83a40a5ecc85cb6edf70328c82b;p=ceph.git rgw: allow management of `accounts` user caps This commit enables the management of `accounts` user capabilities, as required by `RGWOp_Account_Create`, `RGWOp_Account_Modify`, etc. REST operations. Signed-off-by: Richard Poole (cherry picked from commit 3d3380f5fe3bd479818b8b867a3e54153df43332) --- diff --git a/src/rgw/rgw_common.cc b/src/rgw/rgw_common.cc index f159e742225..40bc47e99cd 100644 --- a/src/rgw/rgw_common.cc +++ b/src/rgw/rgw_common.cc @@ -2084,7 +2084,8 @@ bool RGWUserCaps::is_valid_cap_type(const string& tp) "amz-cache", "oidc-provider", "user-info-without-keys", - "ratelimit"}; + "ratelimit", + "accounts"}; for (unsigned int i = 0; i < sizeof(cap_type) / sizeof(char *); ++i) { if (tp.compare(cap_type[i]) == 0) {