From 3d3380f5fe3bd479818b8b867a3e54153df43332 Mon Sep 17 00:00:00 2001 From: Richard Poole Date: Tue, 14 Jan 2025 08:04:37 +0000 Subject: [PATCH] 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 --- src/rgw/rgw_common.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/rgw/rgw_common.cc b/src/rgw/rgw_common.cc index 6610538542c..aa09e93395e 100644 --- a/src/rgw/rgw_common.cc +++ b/src/rgw/rgw_common.cc @@ -2093,7 +2093,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) { -- 2.39.5