You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
AWS offers encryption library which is integrated inside of S3 Client called https://docs.aws.amazon.com/amazon-s3-encryption-client/latest/developerguide/what-is-s3-encryption-client.html[S3EncryptionClient].
132
+
AWS offers encryption library which is integrated inside of S3 Client called https://docs.aws.amazon.com/amazon-s3-encryption-client/latest/developerguide/what-is-s3-encryption-client.html[S3EncryptionClient].
133
133
With encryption client you are going to encrypt your files before sending them to S3 bucket.
134
134
135
135
To autoconfigure Encryption Client simply add the following dependency.
@@ -145,7 +145,7 @@ To autoconfigure Encryption Client simply add the following dependency.
145
145
146
146
We are supporting 3 types of encryption.
147
147
148
-
1. To configure encryption via KMS key specify 'spring.cloud.aws.s3.encryption.keyId' with KMS key arn and this key will be used to encrypt your files.
148
+
1. To configure encryption via KMS key specify `spring.cloud.aws.s3.encryption.key-id` with KMS key arn and this key will be used to encrypt your files.
149
149
150
150
Also, following dependency is required.
151
151
[source,xml]
@@ -158,10 +158,11 @@ Also, following dependency is required.
158
158
----
159
159
160
160
161
-
2. Asymmetric encryption is possible via RSA to enable it you will have to implement 'io.awspring.cloud.autoconfigure.s3.S3RsaProvider'
161
+
2. Asymmetric encryption is possible via RSA to enable it you will have to implement `io.awspring.cloud.autoconfigure.s3.S3RsaProvider`
162
162
163
-
!Note you will have to manage storing private and public keys yourself otherwise you won't be able to decrypt the data later.
164
-
Example of simple RSAProvider:
163
+
NOTE: You will have to store private and public keys yourself otherwise you won't be able to decrypt the data later.
164
+
165
+
Example of simple `S3RsaProvider`:
165
166
166
167
[source,java,indent=0]
167
168
----
@@ -185,8 +186,9 @@ public class MyRsaProvider implements S3RsaProvider {
185
186
186
187
3. Last option is if you want to use symmetric algorithm, this is possible via `io.awspring.cloud.autoconfigure.s3.S3AesProvider`
187
188
188
-
!Note you will have to manage storing storing private key!
189
-
Example of simple AESProvider:
189
+
NOTE: Ensure the private key is stored using secure storage mechanisms that prevent unauthorized access.
0 commit comments