Skip to content

fix(graphql-elasticsearch-transformer): enforce HTTPS so TLS 1.2 applies on v1 searchable - #3498

Merged
sarayev merged 1 commit into
release-api-plugin-stablefrom
gen1/searchable-tls12
Jun 26, 2026
Merged

fix(graphql-elasticsearch-transformer): enforce HTTPS so TLS 1.2 applies on v1 searchable#3498
sarayev merged 1 commit into
release-api-plugin-stablefrom
gen1/searchable-tls12

Conversation

@sarayev

@sarayev sarayev commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

Description

TLS 1.2 gap on the v1 (Elasticsearch) searchable domain

PR #3456 set DomainEndpointOptions.TLSSecurityPolicy to Policy-Min-TLS-1-2-2019-07 on the v1 Elasticsearch searchable domain but omitted EnforceHTTPS. On AWS::Elasticsearch::Domain the minimum TLS policy only governs the HTTPS endpoint, so without EnforceHTTPS: true the policy is never applied and the domain keeps reporting Policy-Min-TLS-1-0-2019-07. This is why amplify-cli e2e still saw a Policy-Min-TLS-1-0 CREATE_FAILED for v1 searchable after #3456 merged.

The companion v2 (OpenSearch) fix in #3472 already pairs enforceHttps: true with tlsSecurityPolicy: TLS_1_2, so only the v1 path was left incomplete.

Fix

Add EnforceHTTPS: true to the v1 domain's DomainEndpointOptions, matching v2 behavior. The existing unit test (which incorrectly asserted EnforceHTTPS was undefined) is updated to assert true.

Testing

jest SearchableModelTransformer: 7 passed, 7 snapshots passed, resources.ts at 100% coverage.

Split out from #3494 (PR-5 of the full split).

…ies on v1 searchable

PR #3456 set `DomainEndpointOptions.TLSSecurityPolicy` to
`Policy-Min-TLS-1-2-2019-07` on the v1 (Elasticsearch) searchable domain
but did not set `EnforceHTTPS`. On AWS::Elasticsearch::Domain the minimum
TLS policy only governs the HTTPS endpoint, so without `EnforceHTTPS: true`
the policy is not actually applied and the domain keeps reporting
`Policy-Min-TLS-1-0-2019-07` — which is why e2e still saw a Policy-Min-TLS-1-0
CREATE_FAILED for v1 searchable after #3456 merged. The companion v2
(OpenSearch) fix in #3472 already pairs `enforceHttps: true` with
`tlsSecurityPolicy: TLS_1_2`, so only the v1 path was left incomplete.

Add `EnforceHTTPS: true` to the v1 domain's `DomainEndpointOptions` so the
TLS 1.2 minimum is enforced, matching v2. Update the existing unit test,
which incorrectly asserted `EnforceHTTPS` was undefined, to assert true.

Validated with `jest SearchableModelTransformer`: 7 passed, 7 snapshots,
resources.ts at 100% coverage.
@sarayev
sarayev marked this pull request as ready for review June 26, 2026 11:41
@sarayev
sarayev requested a review from a team as a code owner June 26, 2026 11:41
@sarayev
sarayev merged commit e3a9718 into release-api-plugin-stable Jun 26, 2026
6 checks passed
@sarayev
sarayev deleted the gen1/searchable-tls12 branch June 26, 2026 11:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants