Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ActiveStorage + AWS File Encryption

I went through ActiveStorage docs and did some research but couldn't find anything. Is there a way of configuring it so file encryption/decryption happens automatically upon storage/retrieval?

like image 642
fabriciofreitag Avatar asked Feb 24 '26 23:02

fabriciofreitag


1 Answers

You can do encryption in two ways,

  1. Client Side Encryption
  2. Server Side Encryption

Server Side Encryption is for data at rest, when you create the bucket you can configure the encryption keys. AWS will take of the rest.

You can also encrypt Client side as well. Decryption needs to happen on the client as well.

It depends how you want to handle it.

More Documentation on how to configure:

https://docs.aws.amazon.com/AmazonS3/latest/dev/UsingEncryption.html

Hope it helps.

like image 150
Kannaiyan Avatar answered Feb 28 '26 12:02

Kannaiyan



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!