Protecting data: encryption, KMS, CloudHSM, ACM and Macie

Space Llama explains encryption at rest and in transit, and the AWS services that protect data, AWS KMS, AWS CloudHSM, AWS Certificate Manager and Amazon Macie, plus how Amazon S3 encrypts by default.

GazeekAWS CLOUD PRACTITIONER·LESSON 11
LESSON 11

Protecting data: encryption, KMS, CloudHSM, ACM and Macie

Space Llama explains encryption at rest and in transit, and the AWS services that protect data, AWS KMS, AWS CloudHSM, AWS Certificate Manager and Amazon Macie, plus how Amazon S3 encrypts by default.

0:00 / 4:43

After this lesson you can

  • Explain encryption at rest and encryption in transit
  • Compare AWS managed keys and customer managed keys in AWS KMS
  • Describe when to choose AWS CloudHSM
  • Explain what AWS Certificate Manager and Amazon Macie do
  • Describe the default protections for data in Amazon S3
Transcript

Protecting data: encryption, KMS, CloudHSM, ACM and Macie

This lesson is about protecting your data. Remember, your data is always your job. We'll cover encryption at rest and in transit, then the key services, AWS KMS and AWS CloudHSM. Then AWS Certificate Manager, Amazon Macie, and how Amazon S3 protects data by default.

At rest and in transit

There are two times data needs protecting. At rest means stored. Data sitting on disks, in databases and in buckets. In transit means moving. Data traveling across a network, between users and services. Data in transit is protected with TLS, the protocol behind HTTPS. For data at rest, most AWS storage and database services offer encryption, often with one setting. Encrypted data is useless to anyone without the key. So the keys matter most.

AWS Key Management Service

AWS Key Management Service, or AWS KMS, creates and controls encryption keys. The keys never leave KMS unencrypted. Services ask KMS to use them. AWS managed keys are created and managed for you, when a service like Amazon S3 needs one. Customer managed keys are ones you create. You control the key policy, rotation, and whether the key is enabled. KMS is integrated with most AWS services, so encryption is usually just a setting. And every use of a key is logged in AWS CloudTrail, so you can see who used it.

AWS CloudHSM

Sometimes shared, managed keys aren't enough. AWS CloudHSM gives you dedicated hardware security modules in the AWS Cloud. They're single-tenant, and they sit inside your VPC. You manage the keys and the users. AWS can't see or use your keys. It's for strict compliance requirements, or when you need full control of the hardware holding your keys. For most people, KMS is simpler. CloudHSM is for when you must own the box.

AWS Certificate Manager

Encryption in transit needs certificates. AWS Certificate Manager, or ACM, handles them. It provides public and private TLS certificates for your websites and applications. It renews the certificates it issues automatically. No more expired certificate surprises. It works with Elastic Load Balancing, Amazon CloudFront and Amazon API Gateway.

Amazon Macie

Amazon Macie answers a worrying question. What sensitive data have we got, and where? It finds sensitive data stored in Amazon S3. It uses machine learning and pattern matching. It spots personal information like names and addresses, and financial information like credit card numbers. It also flags buckets that are public, shared, or unencrypted. If a question mentions personal data in S3, think Macie.

Encryption in Amazon S3

Amazon S3 deserves a mention of its own. Every new object uploaded to S3 is encrypted at rest by default. By default, that uses keys managed by Amazon S3 itself. You can choose AWS KMS keys instead, for more control and an audit trail. And Block Public Access is turned on for new buckets, so data isn't public by accident. Encryption is the default. Who can read the data is still up to you.

Recap

Quick recap. Encrypt data at rest and in transit. AWS KMS manages encryption keys, and every use is logged in CloudTrail. AWS CloudHSM gives you dedicated, single-tenant hardware for your keys. AWS Certificate Manager provides TLS certificates and renews them. And Amazon Macie finds sensitive data in Amazon S3.

Practice and what's next

That's data protection. Lock it up, and keep the keys somewhere sensible. Practice Security and Compliance questions in Gazeek Flash to test yourself. The AWS app is free on the web and on Android, at flash.gazeek.com. Next up, Governance and compliance: Organizations, CloudTrail, Config and Artifact. See you there.

Gazeek Flash · free

Exam questions on your phone

Free questions on Security and Compliance: quick-fire batches and timed exams, on the web or Android.