diff options
author | Abhishek Lekshmanan <abhishek@suse.com> | 2020-01-29 11:26:21 +0100 |
---|---|---|
committer | Abhishek Lekshmanan <abhishek@suse.com> | 2020-02-03 17:53:30 +0100 |
commit | e0b4562c61e4523a73e6170c2b502fbf648c7e73 (patch) | |
tree | ccf28a49f41006a2fe0e0e5156fdaed80e1eb7cd /src/rgw/rgw_auth_s3.cc | |
parent | rgw: acl: drop unused function & make get_group_perm const (diff) | |
download | ceph-e0b4562c61e4523a73e6170c2b502fbf648c7e73.tar.xz ceph-e0b4562c61e4523a73e6170c2b502fbf648c7e73.zip |
rgw: s3: implement GetBucketPolicyStatus API
This API returns whether the Bucket Policies/ACLs are public. There are a couple
of caveats:
- AWS currently returns PolicyNotFound error in case a bucket policy doesn't
exist, though a non existant bucket policy would mean the default ACLs apply
where the bucket is private, so error return here seems like an error
- the API spec mentions TRUE and FALSE as the response IsPublic element value,
however in practice both boto/aws clients and AWS S3 return/expect a lowercase
response.
Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
Conflicts:
src/rgw/rgw_rest_s3.h
merge conflict after zipper rework, dropped a spurious newline in rgw_rest_s3.h
after get_obj_op decl.
src/rgw/rgw_common.h
src/rgw/rgw_rest_s3.cc
src/rgw/rgw_rest_s3.h:
merge conflict after bucket replication merge, trivial conflicts
Diffstat (limited to 'src/rgw/rgw_auth_s3.cc')
-rw-r--r-- | src/rgw/rgw_auth_s3.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/rgw/rgw_auth_s3.cc b/src/rgw/rgw_auth_s3.cc index 93e46bc4621..9a40fd86dbb 100644 --- a/src/rgw/rgw_auth_s3.cc +++ b/src/rgw/rgw_auth_s3.cc @@ -33,6 +33,7 @@ static const auto signed_subresources = { "notification", "partNumber", "policy", + "policyStatus", "requestPayment", "response-cache-control", "response-content-disposition", |