Skip to content

Commit 9b4c04e

Browse files
committed
fix(domain): update default TLS policy to 2019-07
Change the default value for `tls_security_policy` in domain endpoint options from "Policy-Min-TLS-1-2-PFS-2023-10" to "Policy-Min-TLS-1-2-2019-07" across documentation, variables, and module usage. This ensures compatibility with a broader range of clients and aligns with AWS recommended defaults.
1 parent c5c121d commit 9b4c04e

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ No modules.
204204
| <a name="input_create_cloudwatch_log_resource_policy"></a> [create\_cloudwatch\_log\_resource\_policy](#input\_create\_cloudwatch\_log\_resource\_policy) | Determines whether a resource policy will be created for OpenSearch to log to CloudWatch | `bool` | `true` | no |
205205
| <a name="input_create_saml_options"></a> [create\_saml\_options](#input\_create\_saml\_options) | Determines whether SAML options will be created | `bool` | `false` | no |
206206
| <a name="input_create_security_group"></a> [create\_security\_group](#input\_create\_security\_group) | Determines if a security group is created | `bool` | `true` | no |
207-
| <a name="input_domain_endpoint_options"></a> [domain\_endpoint\_options](#input\_domain\_endpoint\_options) | Configuration block for domain endpoint HTTP(S) related options | `any` | <pre>{<br/> "enforce_https": true,<br/> "tls_security_policy": "Policy-Min-TLS-1-2-PFS-2023-10"<br/>}</pre> | no |
207+
| <a name="input_domain_endpoint_options"></a> [domain\_endpoint\_options](#input\_domain\_endpoint\_options) | Configuration block for domain endpoint HTTP(S) related options | `any` | <pre>{<br/> "enforce_https": true,<br/> "tls_security_policy": "Policy-Min-TLS-1-2-2019-07"<br/>}</pre> | no |
208208
| <a name="input_domain_name"></a> [domain\_name](#input\_domain\_name) | Name of the domain | `string` | `""` | no |
209209
| <a name="input_ebs_options"></a> [ebs\_options](#input\_ebs\_options) | Configuration block for EBS related options, may be required based on chosen [instance size](https://aws.amazon.com/elasticsearch-service/pricing/) | `any` | <pre>{<br/> "ebs_enabled": true,<br/> "volume_size": 64,<br/> "volume_type": "gp3"<br/>}</pre> | no |
210210
| <a name="input_enable_access_policy"></a> [enable\_access\_policy](#input\_enable\_access\_policy) | Determines whether an access policy will be applied to the domain | `bool` | `true` | no |

main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ resource "aws_opensearch_domain" "this" {
179179
custom_endpoint_certificate_arn = try(domain_endpoint_options.value.custom_endpoint_certificate_arn, null)
180180
custom_endpoint_enabled = try(domain_endpoint_options.value.custom_endpoint_enabled, null)
181181
enforce_https = try(domain_endpoint_options.value.enforce_https, true)
182-
tls_security_policy = try(domain_endpoint_options.value.tls_security_policy, "Policy-Min-TLS-1-2-PFS-2023-10")
182+
tls_security_policy = try(domain_endpoint_options.value.tls_security_policy, "Policy-Min-TLS-1-2-2019-07")
183183
}
184184
}
185185

variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ variable "domain_endpoint_options" {
7070
type = any
7171
default = {
7272
enforce_https = true
73-
tls_security_policy = "Policy-Min-TLS-1-2-PFS-2023-10"
73+
tls_security_policy = "Policy-Min-TLS-1-2-2019-07"
7474
}
7575
}
7676

wrappers/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ module "wrapper" {
3434
create_security_group = try(each.value.create_security_group, var.defaults.create_security_group, true)
3535
domain_endpoint_options = try(each.value.domain_endpoint_options, var.defaults.domain_endpoint_options, {
3636
enforce_https = true
37-
tls_security_policy = "Policy-Min-TLS-1-2-PFS-2023-10"
37+
tls_security_policy = "Policy-Min-TLS-1-2-2019-07"
3838
})
3939
domain_name = try(each.value.domain_name, var.defaults.domain_name, "")
4040
ebs_options = try(each.value.ebs_options, var.defaults.ebs_options, {

0 commit comments

Comments
 (0)