]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commit
rgw/logging: add support for GetBucketLogging and PutBucketLogging
authorYuval Lifshitz <ylifshit@redhat.com>
Wed, 6 Dec 2023 18:51:59 +0000 (18:51 +0000)
committerYuval Lifshitz <ylifshit@ibm.com>
Sun, 8 Dec 2024 16:20:50 +0000 (16:20 +0000)
commit790c38eacc52cc4c14beb48fca8b204235632793
treeea374a6e768e99d544cdcd2954b92a3208f463d2
parent801186f68358b104637479a9c9345e925c1a31d0
rgw/logging: add support for GetBucketLogging and PutBucketLogging

this is based on AWS server access logs:
- https://docs.aws.amazon.com/AmazonS3/latest/userguide/enable-server-access-logging.html
- https://docs.aws.amazon.com/AmazonS3/latest/userguide/ServerLogs.html
- https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutBucketLogging.html
- https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetBucketLogging.html

however, a new mode was added called "journal" where:
- logs of PUT, COPY and MPU are guaranteed
- we have logs of DELETE and multi-DELETE operations (not guaranteed)
- log records hold only minimal amount of information

Fixes: https://tracker.ceph.com/issues/984
Signed-off-by: Yuval Lifshitz <ylifshit@redhat.com>
29 files changed:
doc/radosgw/bucket_logging.rst [new file with mode: 0644]
doc/radosgw/index.rst
doc/radosgw/s3.rst
doc/radosgw/s3/bucketops.rst
examples/rgw/boto3/bucket_logging.py [new file with mode: 0644]
examples/rgw/boto3/service-2.sdk-extras.json
src/common/options/rgw.yaml.in
src/rgw/CMakeLists.txt
src/rgw/driver/rados/rgw_sal_rados.cc
src/rgw/driver/rados/rgw_sal_rados.h
src/rgw/driver/rados/rgw_tools.cc
src/rgw/driver/rados/rgw_tools.h
src/rgw/rgw_admin.cc
src/rgw/rgw_bucket_logging.cc [new file with mode: 0644]
src/rgw/rgw_bucket_logging.h [new file with mode: 0644]
src/rgw/rgw_common.h
src/rgw/rgw_op.cc
src/rgw/rgw_op.h
src/rgw/rgw_op_type.h
src/rgw/rgw_process.cc
src/rgw/rgw_rest.h
src/rgw/rgw_rest_bucket_logging.cc [new file with mode: 0644]
src/rgw/rgw_rest_bucket_logging.h [new file with mode: 0644]
src/rgw/rgw_rest_s3.cc
src/rgw/rgw_rest_s3.h
src/rgw/rgw_sal.h
src/rgw/rgw_sal_filter.h
src/rgw/rgw_sal_store.h
src/test/cli/radosgw-admin/help.t