Skip to content

Add the option to enable AES-256 encryption for objects uploaded by record_set. #749

@nickolasjwilson

Description

@nickolasjwilson

System Information

  • Framework (e.g. TensorFlow) / Algorithm (e.g. KMeans): N/A
  • Framework Version: N/A
  • Python Version: 3.6
  • CPU or GPU: N/A
  • Python SDK Version: 1.18.13
  • Are you using a custom image: N/A

Describe the problem

The method AmazonAlgorithmEstimatorBase.record_set uploads objects to an S3 bucket without encrypting them. It should be possible to enable server-side AES-256 encryption for all the objects uploaded by a call to record_set. One approach is to modify at least two lines (in the function upload_numpy_to_s3_shards):

Passing the argument {'ServerSideEncryption': 'AES256'} to the method put on each of those lines accomplishes the desired results.

Not every SageMaker user wants server-side encryption enabled, but enabling the encryption should be an option.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions