]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: GetObjectAttributes iam policy policy hooks
authorMatt Benjamin <mbenjamin@redhat.com>
Tue, 10 Sep 2024 18:59:51 +0000 (14:59 -0400)
committerMatt Benjamin <mbenjamin@redhat.com>
Wed, 8 Jan 2025 00:16:52 +0000 (19:16 -0500)
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
src/rgw/rgw_iam_policy.cc
src/rgw/rgw_iam_policy.h

index 2a5c9cd313e8222c405df961b9831ff0d36057b5..52f50ab71aa9f5d0ac4e95248541a899cf395aa6 100644 (file)
@@ -94,6 +94,7 @@ static const actpair actpairs[] =
  { "s3:GetPublicAccessBlock", s3GetPublicAccessBlock },
  { "s3:GetObjectAcl", s3GetObjectAcl },
  { "s3:GetObject", s3GetObject },
+ { "s3:GetObjectAttributes", s3GetObjectAttributes },
  { "s3:GetObjectTorrent", s3GetObjectTorrent },
  { "s3:GetObjectVersionAcl", s3GetObjectVersionAcl },
  { "s3:GetObjectVersion", s3GetObjectVersion },
@@ -1335,6 +1336,7 @@ const char* action_bit_string(uint64_t action) {
 
   case s3ListBucketVersions:
     return "s3:ListBucketVersions";
+
   case s3ListAllMyBuckets:
     return "s3:ListAllMyBuckets";
 
@@ -1479,6 +1481,9 @@ const char* action_bit_string(uint64_t action) {
   case s3BypassGovernanceRetention:
     return "s3:BypassGovernanceRetention";
 
+  case s3GetObjectAttributes:
+    return "s3:GetObjectAttributes";
+
   case s3DescribeJob:
     return "s3:DescribeJob";
 
index 2fb32a5e25e1483ab47c3748a6a6f1a089a62505..21e98a9ff091f3c1efa202628ced584619ba4753 100644 (file)
@@ -249,6 +249,7 @@ inline int op_to_perm(std::uint64_t op) {
   case s3GetObjectVersionTagging:
   case s3GetObjectRetention:
   case s3GetObjectLegalHold:
+  case s3GetObjectAttributes:
   case s3ListAllMyBuckets:
   case s3ListBucket:
   case s3ListBucketMultipartUploads: