]> git.apps.os.sepia.ceph.com Git - ceph-ci.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)
committerRichard Poole <richard.poole@cudoventures.com>
Tue, 14 Jan 2025 08:14:26 +0000 (08:14 +0000)
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>
src/rgw/rgw_common.cc

index 6610538542cf55673644d988cad8c63fd5468dc1..aa09e93395e56cc229fe6e1a3177d24a4ebd9958 100644 (file)
@@ -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) {