Secrets Manager encrypts secrets by default using a default key created by AWS. To ensure control and granularity of secret encryption, CMK’s should be used explicitly.
Impact
Using AWS managed keys reduces the flexibility and control over the encryption key
Recommended Actions
Follow the appropriate remediation steps below to resolve the issue.
Use customer managed keys
1
2
3
4
5
6
7
8
9
10
11
AWSTemplateFormatVersion: 2010-09-09
Description: Good example of ingress rule
Resources:
Secret:
Type: AWS::SecretsManager::Secret
Properties:
Description: "secret"
KmsKeyId: "my-key-id"
Name: "blah"
SecretString: "don't tell anyone"