Bug 1472465 - rgw multisite: objects encrypted with SSE-KMS do not sync correctly
Summary: rgw multisite: objects encrypted with SSE-KMS do not sync correctly
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Ceph Storage
Classification: Red Hat Storage
Component: RGW
Version: 2.3
Hardware: Unspecified
OS: Unspecified
medium
high
Target Milestone: rc
: 3.0
Assignee: Casey Bodley
QA Contact: Persona non grata
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-07-18 19:58 UTC by Casey Bodley
Modified: 2017-12-05 23:36 UTC (History)
9 users (show)

Fixed In Version: RHEL: ceph-12.2.1-1.el7cp Ubuntu: ceph_12.2.1-2redhat1xenial
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-12-05 23:36:49 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Ceph Project Bug Tracker 20671 0 None None None 2017-07-18 19:58:19 UTC
Red Hat Product Errata RHBA-2017:3387 0 normal SHIPPED_LIVE Red Hat Ceph Storage 3.0 bug fix and enhancement update 2017-12-06 03:03:45 UTC

Description Casey Bodley 2017-07-18 19:58:19 UTC
Description of problem:

Objects encrypted with the SSE-KMS mode sync to other zones, but are stored in their unencrypted form. Because they retain their encryption attributes, attempts to read them from a secondary zone will decrypt the data again, returning garbage data to the client.


How reproducible:

All objects encrypted with SSE-KMS in a multisite configuration.


Steps to Reproduce:
1. Set up a multisite configuration with two zones, including these additional values in ceph.conf:
[client]
  rgw crypt require ssl = false
  rgw crypt s3 kms encryption keys = testkey=YmluCmJvb3N0CmJvb3N0LWJ1aWxkCmNlcGguY29uZgo=

2. Create a bucket on the primary zone
3. Upload an object (containing readable text) to that bucket on the primary zone, using these additional request headers:
  x-amz-server-side-encryption: aws:kms
  x-amz-server-side-encryption-aws-kms-key-id: testkey

Actual results:

The object syncs to the secondary zone, but its data does not match the readable text uploaded to the primary zone.

Expected results:

The synced object is stored on the secondary zone in its encrypted form. When read, the decrypted object data is returned to the client.

Additional info:

The sync request should fetch the object in its encrypted form.

Comment 8 errata-xmlrpc 2017-12-05 23:36:49 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2017:3387


Note You need to log in before you can comment on or make changes to this bug.