2019-04-02 11:46:27 +00:00
|
|
|
=====================================
|
|
|
|
S3 Bucket Notifications Compatibility
|
|
|
|
=====================================
|
|
|
|
|
2019-08-22 13:31:01 +00:00
|
|
|
Ceph's `Bucket Notifications`_ and `PubSub Module`_ APIs follow `AWS S3 Bucket Notifications API`_. However, some differences exist, as listed below.
|
|
|
|
|
|
|
|
|
|
|
|
.. note::
|
|
|
|
|
|
|
|
Compatibility is different depending on which of the above mechanism is used
|
2019-04-02 11:46:27 +00:00
|
|
|
|
2019-04-03 10:29:47 +00:00
|
|
|
Supported Destination
|
2019-08-22 13:31:01 +00:00
|
|
|
---------------------
|
2019-04-02 11:46:27 +00:00
|
|
|
|
2019-04-03 10:29:47 +00:00
|
|
|
AWS supports: **SNS**, **SQS** and **Lambda** as possible destinations (AWS internal destinations).
|
|
|
|
Currently, we support: **HTTP/S** and **AMQP**. And also support pulling and acking of events stored in Ceph (as an intenal destination).
|
|
|
|
|
2019-08-22 13:31:01 +00:00
|
|
|
We are using the **SNS** ARNs to represent the **HTTP/S** and **AMQP** destinations.
|
2019-04-03 10:29:47 +00:00
|
|
|
|
|
|
|
Notification Configuration XML
|
2019-04-02 11:46:27 +00:00
|
|
|
------------------------------
|
|
|
|
|
|
|
|
Following tags (and the tags inside them) are not supported:
|
|
|
|
|
2019-04-03 10:29:47 +00:00
|
|
|
+-----------------------------------+----------------------------------------------+
|
|
|
|
| Tag | Remaks |
|
|
|
|
+===================================+==============================================+
|
|
|
|
| ``<QueueConfiguration>`` | not needed, we treat all destinations as SNS |
|
|
|
|
+-----------------------------------+----------------------------------------------+
|
|
|
|
| ``<CloudFunctionConfiguration>`` | not needed, we treat all destinations as SNS |
|
|
|
|
+-----------------------------------+----------------------------------------------+
|
2019-04-02 11:46:27 +00:00
|
|
|
|
2019-08-22 13:31:01 +00:00
|
|
|
REST API Extension
|
2019-04-02 11:46:27 +00:00
|
|
|
------------------
|
|
|
|
|
2019-08-22 13:31:01 +00:00
|
|
|
Ceph's bucket notification API has the following extensions:
|
2019-04-03 10:29:47 +00:00
|
|
|
|
2019-04-11 09:23:17 +00:00
|
|
|
- Deletion of a specific notification, or all notifications on a bucket, using the ``DELETE`` verb
|
|
|
|
|
|
|
|
- In S3, all notifications are deleted when the bucket is deleted, or when an empty notification is set on the bucket
|
|
|
|
|
2019-08-22 13:31:01 +00:00
|
|
|
- Getting the information on a specific notification (when more than one exists on a bucket)
|
|
|
|
|
|
|
|
- In S3, it is only possible to fetch all notifications on a bucket
|
2019-04-02 11:46:27 +00:00
|
|
|
|
2019-09-10 15:53:21 +00:00
|
|
|
- In addition to filtering based on prefix/suffix of object keys we support:
|
|
|
|
|
|
|
|
- Filtering based on regular expression matching
|
|
|
|
|
|
|
|
- Filtering based on metadata attributes attached to the object
|
|
|
|
|
|
|
|
- Filtering overlapping is allowed, so that same event could be sent as different notification
|
|
|
|
|
|
|
|
|
2019-04-02 11:46:27 +00:00
|
|
|
Unsupported Fields in the Event Record
|
|
|
|
--------------------------------------
|
|
|
|
|
2019-04-03 10:29:47 +00:00
|
|
|
The records sent for bucket notification follow format described in: `Event Message Structure`_.
|
2019-08-22 13:31:01 +00:00
|
|
|
However, the following fields may be sent empty, under the different deployment options (Notification/PubSub):
|
|
|
|
|
|
|
|
+----------------------------------------+--------------+---------------+------------------------------------------------------------+
|
|
|
|
| Field | Notification | PubSub | Description |
|
|
|
|
+========================================+==============+===============+============================================================+
|
|
|
|
| ``userIdentity.principalId`` | Supported | Not Supported | The identity of the user that triggered the event |
|
|
|
|
+----------------------------------------+--------------+---------------+------------------------------------------------------------+
|
|
|
|
| ``requestParameters.sourceIPAddress`` | Not Supported | The IP address of the client that triggered the event |
|
|
|
|
+----------------------------------------+--------------+---------------+------------------------------------------------------------+
|
|
|
|
| ``requestParameters.x-amz-request-id`` | Supported | Not Supported | The request id that triggered the event |
|
|
|
|
+----------------------------------------+--------------+---------------+------------------------------------------------------------+
|
|
|
|
| ``requestParameters.x-amz-id-2`` | Supported | Not Supported | The IP address of the RGW on which the event was triggered |
|
|
|
|
+----------------------------------------+--------------+---------------+------------------------------------------------------------+
|
|
|
|
| ``s3.object.size`` | Supported | Not Supported | The size of the object |
|
|
|
|
+----------------------------------------+--------------+---------------+------------------------------------------------------------+
|
2019-04-02 11:46:27 +00:00
|
|
|
|
|
|
|
Event Types
|
|
|
|
-----------
|
|
|
|
|
|
|
|
+----------------------------------------------+-----------------+-------------------------------------------+
|
2019-08-22 13:31:01 +00:00
|
|
|
| Event | Notification | PubSub |
|
2019-04-02 11:46:27 +00:00
|
|
|
+==============================================+=================+===========================================+
|
2019-08-22 13:31:01 +00:00
|
|
|
| ``s3:ObjectCreated:*`` | Supported |
|
2019-04-02 11:46:27 +00:00
|
|
|
+----------------------------------------------+-----------------+-------------------------------------------+
|
2019-08-22 13:31:01 +00:00
|
|
|
| ``s3:ObjectCreated:Put`` | Supported | Supported at ``s3:ObjectCreated:*`` level |
|
2019-04-02 11:46:27 +00:00
|
|
|
+----------------------------------------------+-----------------+-------------------------------------------+
|
2019-08-22 13:31:01 +00:00
|
|
|
| ``s3:ObjectCreated:Post`` | Supported | Not Supported |
|
2019-04-02 11:46:27 +00:00
|
|
|
+----------------------------------------------+-----------------+-------------------------------------------+
|
2019-08-22 13:31:01 +00:00
|
|
|
| ``s3:ObjectCreated:Copy`` | Supported | Supported at ``s3:ObjectCreated:*`` level |
|
2019-04-02 11:46:27 +00:00
|
|
|
+----------------------------------------------+-----------------+-------------------------------------------+
|
2019-09-02 16:24:46 +00:00
|
|
|
| ``s3:ObjectCreated:CompleteMultipartUpload`` | Supported | Supported at ``s3:ObjectCreated:*`` level |
|
2019-04-02 11:46:27 +00:00
|
|
|
+----------------------------------------------+-----------------+-------------------------------------------+
|
2019-09-02 16:24:46 +00:00
|
|
|
| ``s3:ObjectRemoved:*`` | Supported | Supported only the specific events below |
|
2019-04-02 11:46:27 +00:00
|
|
|
+----------------------------------------------+-----------------+-------------------------------------------+
|
2019-09-02 16:24:46 +00:00
|
|
|
| ``s3:ObjectRemoved:Delete`` | Supported |
|
2019-04-02 11:46:27 +00:00
|
|
|
+----------------------------------------------+-----------------+-------------------------------------------+
|
2019-09-02 16:24:46 +00:00
|
|
|
| ``s3:ObjectRemoved:DeleteMarkerCreated`` | Supported |
|
2019-04-02 11:46:27 +00:00
|
|
|
+----------------------------------------------+-----------------+-------------------------------------------+
|
2019-08-22 13:31:01 +00:00
|
|
|
| ``s3:ObjectRestore:Post`` | Not applicable to Ceph |
|
2019-04-02 11:46:27 +00:00
|
|
|
+----------------------------------------------+-----------------+-------------------------------------------+
|
2019-08-22 13:31:01 +00:00
|
|
|
| ``s3:ObjectRestore:Complete`` | Not applicable to Ceph |
|
2019-04-02 11:46:27 +00:00
|
|
|
+----------------------------------------------+-----------------+-------------------------------------------+
|
2019-08-22 13:31:01 +00:00
|
|
|
| ``s3:ReducedRedundancyLostObject`` | Not applicable to Ceph |
|
2019-04-02 11:46:27 +00:00
|
|
|
+----------------------------------------------+-----------------+-------------------------------------------+
|
|
|
|
|
2019-08-22 13:31:01 +00:00
|
|
|
Topic Configuration
|
|
|
|
-------------------
|
|
|
|
In the case of bucket notifications, the topics management API will be derived from `AWS Simple Notification Service API`_.
|
|
|
|
Note that most of the API is not applicable to Ceph, and only the following actions are implemented:
|
|
|
|
|
|
|
|
- ``CreateTopic``
|
|
|
|
- ``DeleteTopic``
|
|
|
|
- ``ListTopics``
|
|
|
|
|
|
|
|
We also extend it by:
|
|
|
|
|
|
|
|
- ``GetTopic`` - allowing for fetching a specific topic, instead of all user topics
|
|
|
|
- In ``CreateTopic`` we allow setting endpoint attributes
|
|
|
|
|
|
|
|
.. _AWS Simple Notification Service API: https://docs.aws.amazon.com/sns/latest/api/API_Operations.html
|
2019-04-03 10:29:47 +00:00
|
|
|
.. _AWS S3 Bucket Notifications API: https://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHowTo.html
|
|
|
|
.. _Event Message Structure: https://docs.aws.amazon.com/AmazonS3/latest/dev/notification-content-structure.html
|
2019-08-22 13:31:01 +00:00
|
|
|
.. _`PubSub Module`: ../pubsub-module
|
|
|
|
.. _`Bucket Notifications`: ../notifications
|