
Inline adoc files when they are included exactly once. Also fix language tags because this inlining gives us better information on what language the code is written in.
48 lines
1.1 KiB
Plaintext
48 lines
1.1 KiB
Plaintext
include::../elasticsearch_description.adoc[]
|
|
|
|
include::../ask-yourself.adoc[]
|
|
|
|
include::../elasticsearch_recommended.adoc[]
|
|
|
|
== Sensitive Code Example
|
|
|
|
For https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/elasticsearch_domain[aws_elasticsearch_domain]:
|
|
|
|
[source,terraform]
|
|
----
|
|
resource "aws_elasticsearch_domain" "elasticsearch" {
|
|
encrypt_at_rest {
|
|
enabled = false # Sensitive, disabled by default
|
|
}
|
|
}
|
|
----
|
|
|
|
== Compliant Solution
|
|
|
|
For https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/elasticsearch_domain[aws_elasticsearch_domain]:
|
|
|
|
[source,terraform]
|
|
----
|
|
resource "aws_elasticsearch_domain" "elasticsearch" {
|
|
encrypt_at_rest {
|
|
enabled = true
|
|
}
|
|
}
|
|
----
|
|
|
|
include::../elasticsearch_see.adoc[]
|
|
|
|
ifdef::env-github,rspecator-view[]
|
|
|
|
'''
|
|
== Implementation Specification
|
|
(visible only on this page)
|
|
|
|
=== Message
|
|
|
|
* Make sure that using unencrypted Elasticsearch domains is safe here.
|
|
* Omitting "encrypt_at_rest.enabled" disables Elasticsearch domains encryption. Make sure it is safe here
|
|
|
|
|
|
endif::env-github,rspecator-view[]
|