]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: allow management of `accounts` user caps
authorRichard Poole <richard.poole@cudoventures.com>
Tue, 14 Jan 2025 08:04:37 +0000 (08:04 +0000)
committerCasey Bodley <cbodley@redhat.com>
Wed, 12 Feb 2025 19:54:05 +0000 (14:54 -0500)
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 <richard.poole@cudoventures.com>
(cherry picked from commit 3d3380f5fe3bd479818b8b867a3e54153df43332)

src/rgw/rgw_common.cc

index f159e742225ec81b8000c04b5a94ead33e0cf64e..40bc47e99cd42758f220b3365aa5438bc3c1d603 100644 (file)
@@ -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) {