]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
rgw: link account root to account user index
authorCasey Bodley <cbodley@redhat.com>
Tue, 5 Mar 2024 19:28:41 +0000 (14:28 -0500)
committerCasey Bodley <cbodley@redhat.com>
Fri, 12 Apr 2024 19:34:29 +0000 (15:34 -0400)
commit442ea9284839fdb49ee80687e9c29093ae317cbf
tree07ee045fd90756123765393b3b3a2bcb1b7f063b
parentdff8efba8f65cfdfcbdec35874848e50b15bfc1c
rgw: link account root to account user index

account root users were not linked to the account's user index because
they're not visible to iam apis like ListUsers

but now that 'account rm' is prevented from deleting the account while
users are still present, we want account root users to prevent deletion
too

add root users back to the account user index, but filter them out of
the iam user apis

Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit b60335997266932f0a2c26fefc128732c66551a1)
src/rgw/rgw_rest_iam_user.cc
src/rgw/services/svc_user_rados.cc