This is an automated email from the ASF dual-hosted git repository.
jojochuang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ozone-site.git
The following commit(s) were added to refs/heads/master by this push:
new 5cc01b799c HDDS-17498. Document S3 Gateway server-side encryption
header handling (#599)
5cc01b799c is described below
commit 5cc01b799cd2fa40d7a2d5b5f2710bbc76c430f4
Author: Andrey Yarovoy <[email protected]>
AuthorDate: Sat Nov 7 12:09:23 2026 -0500
HDDS-17498. Document S3 Gateway server-side encryption header handling
(#599)
Co-authored-by: Claude Opus 5.5 <[email protected]>
---
.../01-client-interfaces/03-s3/01-s3-api.md | 17 +++++++++++++----
.../05-encryption/02-transparent-data-encryption.md | 2 +-
2 files changed, 14 insertions(+), 5 deletions(-)
diff --git a/docs/04-user-guide/01-client-interfaces/03-s3/01-s3-api.md
b/docs/04-user-guide/01-client-interfaces/03-s3/01-s3-api.md
index 7113b2a191..6129e004e4 100644
--- a/docs/04-user-guide/01-client-interfaces/03-s3/01-s3-api.md
+++ b/docs/04-user-guide/01-client-interfaces/03-s3/01-s3-api.md
@@ -60,7 +60,7 @@ The Ozone S3 Gateway implements a substantial subset of the
Amazon S3 REST API.
|
-------------------------------------------------------------------------------------------
| ------------- | ---------- |
| ✅
[GetObject](https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetObject.html)
| Retrieves the contents of an object. | Supports `Range` requests (returns
`206 Partial Content`) and the `partNumber` parameter for objects uploaded with
multipart upload. A missing object returns `404` with a `NoSuchKey` XML error
body. See [Conditional requests](#conditional-requests). |
| ✅
[HeadObject](https://docs.aws.amazon.com/AmazonS3/latest/API/API_HeadObject.html)
| Retrieves metadata for an object. | Supports the `partNumber` parameter. A
missing object returns `404` without a body, as defined for `HEAD` requests.
See [Conditional requests](#conditional-requests). |
-| ✅
[PutObject](https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutObject.html)
| Uploads a new object. | Supports both single PUT and multipart uploads. In
FSO buckets, a zero-length PUT to a key that ends with `/` creates a directory
(controlled by `ozone.s3g.fso.directory.creation`, enabled by default). See
[Conditional requests](#conditional-requests). **Non-compliant behavior:** ACL
headers in the request, such as `x-amz-acl`, are ignored. |
+| ✅
[PutObject](https://docs.aws.amazon.com/AmazonS3/latest/API/API_PutObject.html)
| Uploads a new object. | Supports both single PUT and multipart uploads. In
FSO buckets, a zero-length PUT to a key that ends with `/` creates a directory
(controlled by `ozone.s3g.fso.directory.creation`, enabled by default). See
[Conditional requests](#conditional-requests) and [Server-side
encryption](#server-side-encryption). **Non-compliant behavior:** ACL headers
in the request, such as `x-amz-acl` [...]
| ✅
[DeleteObject](https://docs.aws.amazon.com/AmazonS3/latest/API/API_DeleteObject.html)
| Deletes a single object. | Returns `204 No Content`, also when the object
does not exist, as AWS S3 does. Supports `If-Match`; if the object does not
exist or its ETag does not match, returns `412 Precondition Failed`. |
| ✅
[DeleteObjects](https://docs.aws.amazon.com/AmazonS3/latest/API/API_DeleteObjects.html)
| Deletes multiple objects in one request. | Bulk delete operation with
aggregated error reporting. |
| ✅
[CopyObject](https://docs.aws.amazon.com/AmazonS3/latest/API/API_CopyObject.html)
| Copies an object (intra- or inter-bucket). | Supports metadata directives
(COPY/REPLACE). See [Conditional requests](#conditional-requests).
**Non-compliant behavior:** Self-copying for metadata updates may differ
slightly from AWS S3. |
@@ -98,7 +98,7 @@ Lifecycle rules take effect only when the lifecycle service
is enabled on the OM
| **API Name** | **Feature** | **Note** |
| ------------ | ----------- | -------- |
-| ✅
[GetObjectAttributes](https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetObjectAttributes.html)
| Returns selected metadata about an object without the object body. | Served
as `GET /{bucket}/{key}?attributes`. Use the `x-amz-object-attributes` header
to request `ETag`, `ObjectSize`, `StorageClass`, `ObjectParts`, and `Checksum`.
For multipart objects, `x-amz-max-parts` and `x-amz-part-number-marker`
paginate part metadata. **Non-compliant behavior:** `Checksum` is accepted in
th [...]
+| ✅
[GetObjectAttributes](https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetObjectAttributes.html)
| Returns selected metadata about an object without the object body. | Served
as `GET /{bucket}/{key}?attributes`. Use the `x-amz-object-attributes` header
to request `ETag`, `ObjectSize`, `StorageClass`, `ObjectParts`, and `Checksum`.
For multipart objects, `x-amz-max-parts` and `x-amz-part-number-marker`
paginate part metadata. **Non-compliant behavior:** `Checksum` is accepted in
th [...]
### Multipart Upload Operations
@@ -127,6 +127,15 @@ The S3 Gateway partially supports [conditional
requests](https://docs.aws.amazon
- **PutObject, CopyObject, and CompleteMultipartUpload:** Support `If-Match`
with an ETag, to write only if the existing object matches, and `If-None-Match:
*`, to write only if the object does not exist. `If-None-Match` accepts a
specific ETag, to write only if the existing object does not match it; this is
a Ceph S3 extension, not an AWS S3 feature. A failed condition returns `412
Precondition Failed`. `If-Match` and `If-None-Match` cannot be used together.
- **DeleteObject:** Supports `If-Match`.
+### Server-Side Encryption
+
+Ozone encrypts data at rest only in encrypted buckets, with the bucket's
encryption key (see [Transparent Data
Encryption](../../../administrator-guide/configuration/security/encryption/transparent-data-encryption)).
The S3 Gateway honors S3 server-side encryption headers only where that
guarantee holds. It never stores unencrypted data with a success response for a
request that asks for encryption:
+
+- **SSE-S3 and SSE-KMS:** PutObject, CopyObject, CreateMultipartUpload,
UploadPart, and UploadPartCopy accept `x-amz-server-side-encryption: AES256` or
`aws:kms` in an encrypted bucket. The response returns
`x-amz-server-side-encryption`; for `aws:kms` it also returns the bucket's
encryption key in `x-amz-server-side-encryption-aws-kms-key-id`.
+- **Rejected with `501 NotImplemented`:** SSE-S3 and SSE-KMS requests in a
bucket that is not encrypted, `aws:kms:dsse`, an
`x-amz-server-side-encryption-context`, and an
`x-amz-server-side-encryption-aws-kms-key-id` other than the bucket's
encryption key.
+- **Rejected with `400 InvalidArgument`:** an unknown encryption algorithm,
and a KMS key ID or encryption context without `x-amz-server-side-encryption:
aws:kms`.
+- **SSE-C:** Customer-provided keys are not supported. A request with
`x-amz-server-side-encryption-customer-*` or
`x-amz-copy-source-server-side-encryption-customer-*` headers returns `501
NotImplemented` on the write operations above and on GetObject, HeadObject,
GetObjectAttributes, ListParts, and CompleteMultipartUpload.
+
### Operations Not Implemented
The S3 Gateway returns `501 NotImplemented` for the operations below, except
where noted as partial support:
@@ -143,11 +152,11 @@ The S3 Gateway returns `501 NotImplemented` for the
operations below, except whe
:::note Additional Notes
-- **Not supported:** [S3
Select](https://docs.aws.amazon.com/AmazonS3/latest/API/API_SelectObjectContent.html),
Server-Side Encryption headers
([SSE-S3](https://docs.aws.amazon.com/AmazonS3/latest/userguide/UsingServerSideEncryption.html),
[SSE-KMS](https://docs.aws.amazon.com/AmazonS3/latest/userguide/UsingKMSEncryption.html),
[SSE-C](https://docs.aws.amazon.com/AmazonS3/latest/userguide/ServerSideEncryptionCustomerKeys.html)),
[cross-region replication](https://docs.aws.amazon.com/Amaz [...]
+- **Not supported:** [S3
Select](https://docs.aws.amazon.com/AmazonS3/latest/API/API_SelectObjectContent.html),
[SSE-C](https://docs.aws.amazon.com/AmazonS3/latest/userguide/ServerSideEncryptionCustomerKeys.html),
[cross-region
replication](https://docs.aws.amazon.com/AmazonS3/latest/userguide/replication.html),
and [S3 event
notifications](https://docs.aws.amazon.com/AmazonS3/latest/userguide/EventNotifications.html).
- **Bucket owner check:** Bucket and object operations honor the
`x-amz-expected-bucket-owner` header, and copy operations also honor
`x-amz-source-expected-bucket-owner`. If the header does not match the bucket
owner, the request fails with `403 Access Denied`.
- **Temporary credentials:** The S3 Gateway can issue temporary credentials
with the
[AssumeRole](https://docs.aws.amazon.com/STS/latest/APIReference/API_AssumeRole.html)
API, and supports
[GetCallerIdentity](https://docs.aws.amazon.com/STS/latest/APIReference/API_GetCallerIdentity.html),
on a separate STS endpoint (port 9880, set by `ozone.s3g.sts.http-address`).
The STS endpoint is disabled by default; enable it with
`ozone.s3g.sts.http.enabled`. For details, see [Ozone S3 Security Tok [...]
- While Ozone S3 Gateway provides extensive support for common S3 operations,
users should be aware of the above non-compliant behaviors and limitations when
integrating with applications expecting full AWS S3 functionality.
-- While Ozone S3 Gateway does not support S3 Server-Side Encryption, it does
support encrypted buckets using Apache Ranger KMS. For more information, see
the [Transparent Data
Encryption](../../../administrator-guide/configuration/security/encryption/transparent-data-encryption)
documentation.
+- Ozone S3 Gateway supports
[SSE-S3](https://docs.aws.amazon.com/AmazonS3/latest/userguide/UsingServerSideEncryption.html)
and
[SSE-KMS](https://docs.aws.amazon.com/AmazonS3/latest/userguide/UsingKMSEncryption.html)
requests only in encrypted buckets, which use Hadoop KMS or Apache Ranger KMS.
See [Server-side encryption](#server-side-encryption) and the [Transparent Data
Encryption](../../../administrator-guide/configuration/security/encryption/transparent-data-encryption)
documentation.
:::
## Security
diff --git
a/docs/05-administrator-guide/02-configuration/03-security/05-encryption/02-transparent-data-encryption.md
b/docs/05-administrator-guide/02-configuration/03-security/05-encryption/02-transparent-data-encryption.md
index 401e5c1107..e1494c5ed1 100644
---
a/docs/05-administrator-guide/02-configuration/03-security/05-encryption/02-transparent-data-encryption.md
+++
b/docs/05-administrator-guide/02-configuration/03-security/05-encryption/02-transparent-data-encryption.md
@@ -106,7 +106,7 @@ The OpenSSL-based hardware acceleration discussed below is
currently only suppor
## Using Transparent Data Encryption from S3G
-Ozone’s S3 Gateway (S3G) allows you to access encrypted buckets. However, it's
important to note that **Ozone does not support S3-SSE (Server-Side Encryption)
or S3-CSE (Client-Side Encryption) in the way AWS S3 does.** That said, Ozone
S3 buckets can be encrypted using Ranger KMS or Hadoop KMS to provide a
guarantee similar to S3-SSE with client-supplied keys (SSE-C).
+Ozone’s S3 Gateway (S3G) allows you to access encrypted buckets. However, it's
important to note that **Ozone does not support S3-SSE (Server-Side Encryption)
or S3-CSE (Client-Side Encryption) in the way AWS S3 does.** Ozone encrypts all
data in an encrypted bucket with the bucket's encryption key, not with a key
chosen per object. S3G accepts SSE-S3 (`AES256`) and SSE-KMS (`aws:kms` with
the bucket's encryption key) requests only in encrypted buckets. It rejects
them in buckets that ar [...]
When creating an encrypted bucket that will be accessed via S3G:
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]