]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
rgw/role: separate dump_iam_role() for iam api
authorCasey Bodley <cbodley@redhat.com>
Sat, 20 Jan 2024 20:16:00 +0000 (15:16 -0500)
committerCasey Bodley <cbodley@redhat.com>
Fri, 12 Apr 2024 19:34:28 +0000 (15:34 -0400)
commit2a28358269fd666d73ce45d1e49bf88ea8efbd0e
tree249d2cdc0c088d9a98cf160283f056824feabf94
parenta67d94cdf73bab24173073ae584ac629ddc4c40d
rgw/role: separate dump_iam_role() for iam api

create a new dump_iam_role() for iam api responses that dumps the subset
of role information presented by the apis

RGWRoleInfo::dump() and decode_json() are used by metadata sync to
transfer role metadata between zones, so must contain all information
about the role

Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit bf204e982ea5b9e1ad0b6f7a1433404245b2137e)
src/rgw/rgw_admin.cc
src/rgw/rgw_rest_role.cc
src/rgw/rgw_role.cc
src/rgw/rgw_role.h