summaryrefslogtreecommitdiffstats
path: root/src/rgw/rgw_iam_policy.h
diff options
context:
space:
mode:
authorCasey Bodley <cbodley@redhat.com>2024-02-01 23:41:08 +0100
committerCasey Bodley <cbodley@redhat.com>2024-04-10 19:09:15 +0200
commitbf64bc624dff5200964cd9763a4d6466edfe07e7 (patch)
tree06be38efe1fa1902a93b58a4493c6e973adf1cec /src/rgw/rgw_iam_policy.h
parentrgw/iam: add get_managed_policy() factory function (diff)
downloadceph-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.h3
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,