diff options
author | Casey Bodley <cbodley@redhat.com> | 2024-02-01 23:41:08 +0100 |
---|---|---|
committer | Casey Bodley <cbodley@redhat.com> | 2024-04-10 19:09:15 +0200 |
commit | bf64bc624dff5200964cd9763a4d6466edfe07e7 (patch) | |
tree | 06be38efe1fa1902a93b58a4493c6e973adf1cec /src/rgw/rgw_iam_policy.h | |
parent | rgw/iam: add get_managed_policy() factory function (diff) | |
download | ceph-bf64bc624dff5200964cd9763a4d6466edfe07e7.tar.xz ceph-bf64bc624dff5200964cd9763a4d6466edfe07e7.zip |
rgw/iam: AttachUserPolicy adds managed user policy
implement iam apis AttachUserPolicy, DetachUserPolicy, and
ListAttachedUserPolicies to manipulate managed user policy
the set of managed policy ARNs is stored in the user attr
RGW_ATTR_MANAGED_POLICY
for incoming requests, the policies from RGW_ATTR_MANAGED_POLICY are
added to s->iam_user_policies at the same time as RGW_ATTR_USER_POLICY
Signed-off-by: Casey Bodley <cbodley@redhat.com>
Diffstat (limited to 'src/rgw/rgw_iam_policy.h')
-rw-r--r-- | src/rgw/rgw_iam_policy.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/rgw/rgw_iam_policy.h b/src/rgw/rgw_iam_policy.h index 3b236f695b9..a8aa88dca7b 100644 --- a/src/rgw/rgw_iam_policy.h +++ b/src/rgw/rgw_iam_policy.h @@ -124,6 +124,9 @@ enum { iamGetUserPolicy, iamDeleteUserPolicy, iamListUserPolicies, + iamAttachUserPolicy, + iamDetachUserPolicy, + iamListAttachedUserPolicies, iamCreateRole, iamDeleteRole, iamModifyRoleTrustPolicy, |