Linux
Encrypt data in Amazon S3 using server-side encryption
Data security on the cloud is one of the key priorities for any business owner and IT administrator, for that matter. In most cases, data is protected by the old-fashioned username and password authentication which is gradually being phased out by more robust authentication such as biometric authentication. Because of the degree of sensitivity, the username and password authentication is not strong enough, and encryption provides a better way to provide much-needed confidentiality. In this guide, we will explore how to encrypt data in Amazon S3 using server-side encryption.
What is encryption all about?
Encryption is a way of converting or scrambling information into a form that can only be read by intended parties. When intruders or unauthorized parties get a hold of the data, it’s completely futile since they cannot decipher the information unless they acquire a decryption key.
AWS Provides two encryption techniques for your S3 bucket:
- Server-side encryption
- Client-side encryption
Let’s take a look a both of these encryption techniques
Server-side encryption
In server-side encryption, data is protected at rest. Simply put, The encryption and decryption keys reside on the cloud. During upload, the S3 bucket encrypts all the files and folders. AWS is the only entity with the knowledge of which key is associated with data encryption using its own algorithms.
S3 server-side encryption doesn’t require you to create or save any keys. It makes use of one of the most robust ciphers available – the 256-bit Advanced Encryption Standard (AES-256).
Client-side encryption
client-side encryption happens when both the encryption and decryption keys are saved on the client and files are encrypted before being uploaded. Simply put, by the time the server receives the data, it is already encrypted. Perhaps the only drawback with this method is that it demands the user to store the decryption key.
Encrypt data in Amazon S3 using server-side
Let us now look at how you can encrypt data in Amazon S3 using server-side encryption. We already assume that you have already created your S3 bucket. In our case, the bucket name is mys3galaxy.
Click on the bucket name and click on the ‘Properties‘ tab.
Scroll down and locate the ‘Default Encryption‘ section and click on the “Edit” button. to start making changes.
Next, click on “Enable” and select the “Amazon S3 key (SSE-S3)” option. Finally, click on the ‘Save changes‘ button to enable the Amazon S3 server-side encryption.
Shortly after, you will notice a green pop notification informing you of the successful implementation of the encryption.
When you head back and check the Default Encryption section, you’ll notice that server-side encryption has already been enabled.
Any subsequent files that will be uploaded in the S3 bucket will now be encrypted using server-side encryption. Thanks for taking your time.
-
DevOps55 years ago
Saltstack Tutorial for beginners [2023]
-
DevOps55 years ago
How to build a Docker cron job Container easily [2023]
-
Linux55 years ago
mail Command in Linux/Unix with 10+ Examples [2023]
-
DevOps55 years ago
Docker ADD vs COPY vs VOLUME – [2023]
-
DevOps55 years ago
How to setup Pritunl VPN on AWS to Access Servers
-
Linux55 years ago
Grep Command In Unix/Linux with 25+ Examples [2023]
-
Linux55 years ago
How To setup Django with Postgres, Nginx, and Gunicorn on Ubuntu 20.04
-
Linux55 years ago
Find command in Unix/Linux with 30+ Examples [2023]