Skip to content

Commit

Permalink
rgw: include SSE-KMS headers in encrypted upload response
Browse files Browse the repository at this point in the history
Fixes: http://tracker.ceph.com/issues/21576

Signed-off-by: Casey Bodley <cbodley@redhat.com>
  • Loading branch information
cbodley committed Sep 27, 2017
1 parent f3e0e01 commit a5b3db7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/rgw/rgw_crypt.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1105,6 +1105,9 @@ int rgw_s3_prepare_encrypt(struct req_state* s,
*block_crypt = std::move(aes);
}
actual_key.replace(0, actual_key.length(), actual_key.length(), '\000');

crypt_http_responses["x-amz-server-side-encryption"] = "aws:kms";
crypt_http_responses["x-amz-server-side-encryption-aws-kms-key-id"] = key_id.to_string();
return 0;
}

Expand Down

0 comments on commit a5b3db7

Please sign in to comment.