Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

277
Views
dask.dataframe's to_parquet support server side encryption?

Our company has a requirement to encrypt all data that is at rest in S3. Usually when we upload s3 object, we do something like:

aws s3 cp a.txt s3://b/test --sse

I am playing with dask.dataframe and want to export one of my dataset into parquet stored in S3 but cannot find any option to turn on encryption. Any idea how to apply encryption using dask.dataframe?

about 4 years ago · Santiago Trujillo
2 answers
Answer question

0

This is not currently implemented in s3fs, the backend used by dask to write to S3. It would not be hard to add, by including (some of) the following parameters in the constructor for S3FileSystem, and including them in the small number of calls on the boto3 s3client; then the parameters would be included in storage_options= when calling to_parquet().

ServerSideEncryption='AES256'|'aws:kms',
SSECustomerAlgorithm='string',
SSECustomerKey='string',
SSEKMSKeyId='string',

There should also be an option to set these per-file as well as by default on the file-system instance. Feel free to attempt a PR! Note that SSE is probably not implemented in moto, so testing usage may be difficult.

Note that in your case, some of these values are probably being read by the aws command from a standard location such as ~/.aws/ .

about 4 years ago · Santiago Trujillo Report

0

As of now, this is possible:

df.to_csv(s3_path, storage_options={"s3_additional_kwargs":{"ServerSideEncryption": "AES256"}})
about 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!