Skip to content

Encryption for single files #851

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
xMarkusSpringerx opened this issue May 8, 2020 · 5 comments
Open

Encryption for single files #851

xMarkusSpringerx opened this issue May 8, 2020 · 5 comments

Comments

@xMarkusSpringerx
Copy link

AWS S3 offers to provide a customer encryption key for every file. Will this feature be supported in the future? IMHO it would make sense to also make it optional to provide an encryption/decription key for single files and also buckets.

@kannappanr
Copy link
Contributor

MinIO supports SSE-C just like AWS S3, just that minio-js does not support it yet. We will be adding this to our minio-js SDK soon.

@xMarkusSpringerx
Copy link
Author

Thank you for your response. I would really appreciate it.

@roonie007
Copy link

any news about this ?

@xMarkusSpringerx
Copy link
Author

I think they're already developing this feature, at least it's in their milestone plan.

@prakashsvmx
Copy link
Member

prakashsvmx commented Mar 12, 2021

@xMarkusSpringerx @roonie007

Please setup a KMS as described https://docs.min.io/docs/minio-kms-quickstart-guide.html
and try the below code. It will upload successfully

Please verify and update the behaviour.



function putObject (buckName, objName, cb) {

  var metaData = {
    'Content-Type': 'application/octet-stream',
    'x-amz-server-side-encryption':"AES256"
  }
  // Using fPutObject API upload your file to the bucket europetrip.
  minioClient.putObject(buckName, objName, file, metaData, function (err, info) {
    if (err) return console.log(err)
    console.log('File uploaded successfully.',info)
    cb && cb(info)
  })

}

putObject("my-bucket","my-enc-obj")

Running mc stat local/my-bucket/ would give the following output

Name      : my-enc-obj
Date      : 2021-03-12 16:05:30 IST 
Size      : 52 B   
ETag      : 8cc20226bdc37dedb09a322d69e63895 
VersionID : 2ddfa367-5095-4a21-a136-66e0ad8a1c21 
Type      : file 
Metadata  :
  Content-Type: application/octet-stream 
Encrypted :
  X-Amz-Server-Side-Encryption: AES256 

@kannappanr

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants