Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,12 @@ The resulting string is appropriate for non-production environments:
.. code-block:: shell
:class: copyable

cat /dev/urandom | head -c 32 | base64 -
cat /dev/urandom | head -c 32 | base64 - | tr -d '='

Defer to your organizations requirements for generating cryptographically secure encryption keys.

Raw Base64 encoding rejects ``=``-padded keys, so the example above removes any trailing padding from the generated string.

Copy the encryption key for use in the next step.

2) Encrypt an Object using SSE-C
Expand All @@ -126,7 +128,7 @@ arguments for enabling SSE-S3 encryption:
:class: copyable

mc cp ~/data/mydata.json ALIAS/BUCKET/mydata.json \
--encrypt-key "ALIAS/BUCKET/=c2VjcmV0ZW5jcnlwdGlvbmtleWNoYW5nZW1lMTIzNAo="
--enc-c "ALIAS/BUCKET/=c2VjcmV0ZW5jcnlwdGlvbmtleWNoYW5nZW1lMTIzNAo"

- Replace :mc-cmd:`ALIAS <mc encrypt set ALIAS>` with the
:mc:`alias <mc alias>` of the MinIO deployment on which you want to write
Expand Down Expand Up @@ -158,7 +160,8 @@ arguments for enabling SSE-S3 encryption:
:class: copyable

mc cp SOURCE/BUCKET/mydata.json TARGET/BUCKET/mydata.json \
--encrypt-key "SOURCE/BUCKET/=c2VjcmV0ZW5jcnlwdGlvbmtleWNoYW5nZW1lMTIzNAo=,TARGET/BUCKET/=c2VjcmV0ZW5jcnlwdGlvbmtleWNoYW5nZW1lMTIzNAo="
--enc-c "SOURCE/BUCKET/=c2VjcmV0ZW5jcnlwdGlvbmtleWNoYW5nZW1lMTIzNAo" \
--enc-c "TARGET/BUCKET/=c2VjcmV0ZW5jcnlwdGlvbmtleWNoYW5nZW1lMTIzNAo"

- Replace :mc-cmd:`SOURCE/BUCKET <mc encrypt set ALIAS>` with the
:mc:`alias <mc alias>` of the MinIO deployment from which you are reading the
Expand Down