2021-09-08 15:01:03 +02:00
|
|
|
include::../description.adoc[]
|
|
|
|
|
|
|
|
include::../ask-yourself.adoc[]
|
|
|
|
|
|
|
|
include::../recommended.adoc[]
|
|
|
|
|
|
|
|
== Sensitive Code Example
|
|
|
|
|
|
|
|
For https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sqs-queues.html[AWS::SQS::Queue]:
|
|
|
|
|
2023-05-05 11:12:16 +02:00
|
|
|
[source,yaml]
|
2021-09-08 15:01:03 +02:00
|
|
|
----
|
|
|
|
AWSTemplateFormatVersion: '2010-09-09'
|
|
|
|
Resources:
|
|
|
|
Queue: # Sensitive, encryption disabled by default
|
|
|
|
Type: AWS::SQS::Queue
|
|
|
|
Properties:
|
|
|
|
DisplayName: "unencrypted_queue"
|
|
|
|
----
|
|
|
|
|
|
|
|
== Compliant Solution
|
|
|
|
|
|
|
|
For https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sqs-queues.html[AWS::SQS::Queue]:
|
|
|
|
|
2023-05-05 11:12:16 +02:00
|
|
|
[source,yaml]
|
2021-09-08 15:01:03 +02:00
|
|
|
----
|
|
|
|
AWSTemplateFormatVersion: '2010-09-09'
|
|
|
|
Resources:
|
|
|
|
Queue:
|
|
|
|
Type: AWS::SQS::Queue
|
|
|
|
Properties:
|
|
|
|
DisplayName: "encrypted_queue"
|
|
|
|
KmsMasterKeyId:
|
|
|
|
Fn::GetAtt:
|
|
|
|
- TestKey
|
|
|
|
- KeyId
|
|
|
|
----
|
|
|
|
|
|
|
|
include::../see.adoc[]
|
2022-03-15 10:32:09 +01:00
|
|
|
|
|
|
|
ifdef::env-github,rspecator-view[]
|
|
|
|
|
|
|
|
'''
|
|
|
|
|
|
|
|
== Implementation Specification
|
|
|
|
(visible only on this page)
|
|
|
|
|
2023-05-25 14:18:12 +02:00
|
|
|
=== Message
|
|
|
|
|
|
|
|
* Omitting "KmsMasterKeyId" disables SQS queues encryption. Make sure it is safe here.
|
|
|
|
|
2022-03-15 10:32:09 +01:00
|
|
|
|
|
|
|
endif::env-github,rspecator-view[]
|