-
Notifications
You must be signed in to change notification settings - Fork 560
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 "mc support upload" encryption #5113
base: master
Are you sure you want to change the base?
Conversation
* Add `--enc` parameter to `mc support upload` to encrypt the file content. * Add file size as zstd frame content size. * Test opening the file before doing more. * Uses same key as "mc support inspect".
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
Sure @klauspost I will test and update |
Co-authored-by: Shireesh Anjal <355479+anjalshireesh@users.noreply.github.com>
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, tested, working fine. (tested mc support inspect
also)
@klauspost the inspect command allows using custom keys.
Line 165 in 423ef1b
publicKey, e = os.ReadFile(filepath.Join(mustGetMcConfigDir(), "support_public.pem")) |
@anjalshireesh We never use it, so didn't bother. We can always add it, if we ever should get a use for it. |
Description
--enc
parameter tomc support upload
to encrypt the file content.mc support inspect
.How to test this PR?
@anjalshireesh - would it be possible for you to test the upload? We will probably need to make changes to
inspect
but I would need a test file to verifyTypes of changes