Skip to content
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

Pass server-side encryption option to minio.StatObject call #142

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

jabbrwcky
Copy link

@jabbrwcky jabbrwcky commented Sep 26, 2024

Adds missing encryption data passed to minio.StatObject() calls, causing client methods Exists() and Attributes() to fail with a 400 Bad Request error.

This may only affects encryption using SSE-C because here it is the callers responsibility to send the encryption key along with the request. In contrast SSE-KMS and SSE-S3 are handled transparently (if the user has permissions to use the key in the casse of SSE-KMS)

  • I added CHANGELOG entry for this change.
  • Change is not relevant to the end user.

Changes

  • Add SSE-Configuration to Bucket.Exists()
  • Add SSE-Configuration to Bucket.Attributes()

Verification

Added E2E-Test that uploads, checks for existence and downloads a file using SSE-C

jabbrwcky and others added 5 commits September 30, 2024 09:15
Signed-off-by: Jens Hausherr <jens@hausherr.net>
Signed-off-by: Jens Hausherr <jens@hausherr.net>
Signed-off-by: Jens Hausherr <jens@hausherr.net>
Signed-off-by: Jens Hausherr <jens@hausherr.net>
Signed-off-by: Jens Hausherr <jens@hausherr.net>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant