-
Notifications
You must be signed in to change notification settings - Fork 230
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
Add server side encryption support #259
Conversation
5bda1e1
to
d71355b
Compare
@harshavardhana , review comments were fixed.PTAL |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Key needs to be converted to byte array of length 32 before being set.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should still provide an example with PBKDF for ease of usability - I can't see where its mentioned in this PR.
@harshavardhana, updated the example in minio.examples to api.md as well. |
rebased to master. PTAL @kannappanr && @harshavardhana |
200dc44
to
3b5e0dd
Compare
@harshavardhana and @kannappanr, PTAL |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some formatting changes need to be made.
@@ -0,0 +1,166 @@ | |||
/* | |||
* Minio .NET Library for Amazon S3 Compatible Cloud Storage, (C) 2017 Minio, Inc. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Year should be 2019
/// <param name="cancellationToken">Optional cancellation token to cancel the operation</param> | ||
Task GetObjectAsync(string bucketName, string objectName, long offset, long length, Action<Stream> cb, CancellationToken cancellationToken = default(CancellationToken)); | ||
Task GetObjectAsync(string bucketName, string objectName, long offset, long length, Action<Stream> cb, ServerSideEncryption sse = null,CancellationToken cancellationToken = default(CancellationToken)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
need space between ServerSideEncryption sse = null,CancellationToken
/// <param name="cancellationToken">Optional cancellation token to cancel the operation</param> | ||
Task GetObjectAsync(string bucketName, string objectName, Action<Stream> callback, CancellationToken cancellationToken = default(CancellationToken)); | ||
Task GetObjectAsync(string bucketName, string objectName, Action<Stream> callback, ServerSideEncryption sse = null,CancellationToken cancellationToken = default(CancellationToken)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
need space between ServerSideEncryption sse = null,CancellationToken
EncryptedCopyObject_Test1(minioClient).Wait(); | ||
EncryptedCopyObject_Test2(minioClient).Wait(); | ||
|
||
// Uncommment these tests when Mint supports Vault/KMS |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we use an environment variable here which can also be used in Mint, instead of commenting out this piece of code?
/// <param name="cancellationToken">Optional cancellation token to cancel the operation</param> | ||
public async Task GetObjectAsync(string bucketName, string objectName, Action<Stream> cb, CancellationToken cancellationToken = default(CancellationToken)) | ||
public async Task GetObjectAsync(string bucketName, string objectName, Action<Stream> cb, ServerSideEncryption sse = null,CancellationToken cancellationToken = default(CancellationToken)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
need space between ServerSideEncryption sse = null,CancellationToken
/// <param name="cancellationToken">Optional cancellation token to cancel the operation</param> | ||
/// <returns>Facts about the object</returns> | ||
public async Task<ObjectStat> StatObjectAsync(string bucketName, string objectName, CancellationToken cancellationToken = default(CancellationToken)) | ||
public async Task<ObjectStat> StatObjectAsync(string bucketName, string objectName, ServerSideEncryption sse = null,CancellationToken cancellationToken = default(CancellationToken)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need space here ServerSideEncryption sse = null,CancellationToken
@kannappanr, incorporated your feedback. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Fixes #251