Passwords, Secrets, Keys Flashcards

1
Q

What does KMS integrate with?

A

AWS Services such as S3, EBS, RDS

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is a CMK?

A

Customer Master Key

- contains key material used to encrypt and decrypt data

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is a HSM?

A

Hardware Security Module

- a physical device that safeguards digital keys

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

3 ways to generate a CMK

A

1) AWS creates it for you (AWS managed)
2) Import your own key
3) have key generated and used in an AWS CloudHSM Cluster

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Key Rotations*

A
  • AWS can automatically rotate keys once a year

- only for keys that AWS generated

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

KMS policies

A

polices are documents that describe who has access

- key policies - a resource-based policy giving access (required)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Ways to control key permissions*

A

1) use the key policy
2) use IAM policies in combination with the key policy
3) use grants with key policies. this allows users to delegate their access to others.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Cloud HSM

A

you rent this physical dedicated device from AWS

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

KMS vs Cloud HSM

A

KMS: shared tenancy, automatic key rotation, automatic key generation
Cloud HSM: dedicated HSM hardware, full control of users, groups, keys, etc. No automatic key rotation*

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Secrets Manager

A

a service that securely stores, encrypts and rotates database credentials and other credentials

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

KMS vs Secrets Manager

A

KMS = encryption keys

Secrets Manager = passwords, credentials (or other key value pair secrets)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

How does Secrets Manager ensure encryption at transit and at rest?

A

using KMS to encrypt your secrets

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

How do you reduce risk of passwords being compromised in API calls?

A

API calls Secrets Manager to get the credentials

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Parameter Store

A

a capability of AWS Systems Manager that provides secure, hierarchical storage for configuration data management and secrets management
- Free

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Parameter Store Limits

A
  • 10,000 parameters (max)

- no key rotation

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Secrets Manager vs Parameter Store

A

Secrets Manager

  • costs more
  • automatically rotate secrets
  • generate random secrets

Parameter store

  • store unencrypted or encrypted
  • Free
17
Q

AWS Certificate Manager

A
  • Allows you to create, manage and deploy public and private SSL certificates for use with other AWS services
  • integrates with other AWS services: ELB, CloudFront, API Gateway*
  • Benefits: cost = free
  • automated renewals and rotation
  • easy to set up