From ec453951cfb95d871f60d3323301f75d45808151 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FAYARD-LE=20BARZIC?= Date: Wed, 8 Oct 2025 23:08:51 +0200 Subject: [PATCH 1/2] docs(elasticsearch): add SSL configuration options for Elasticsearch --- core/elasticsearch.md | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/core/elasticsearch.md b/core/elasticsearch.md index 53b9db80951..eb2e73f4fea 100644 --- a/core/elasticsearch.md +++ b/core/elasticsearch.md @@ -47,6 +47,32 @@ api_platform: #... ``` +#### SSL Configuration + +When connecting to Elasticsearch over HTTPS with self-signed certificates or custom Certificate Authorities, you can configure SSL verification. + +**With a custom CA bundle:** + +```yaml +# config/packages/api_platform.yaml +api_platform: + elasticsearch: + hosts: ['%env(ELASTICSEARCH_HOST)%'] + ssl_ca_bundle: '/path/to/ca-bundle.crt' +``` + +**Disable SSL verification (dev/test only):** + +```yaml +# config/packages/api_platform.yaml +api_platform: + elasticsearch: + hosts: ['%env(ELASTICSEARCH_HOST)%'] + ssl_verification: false # Never use in production +``` + +**Note:** You cannot use both options together. + ### Enabling Reading Support using Laravel ```php From 36997c7c3b9f7cbc2abbcdc4aee6e6a6932021ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Fayard-Le=20Barzic?= Date: Tue, 14 Oct 2025 09:46:08 +0200 Subject: [PATCH 2/2] Apply suggestion from @vinceAmstoutz Co-authored-by: Vincent Amstoutz --- core/elasticsearch.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/elasticsearch.md b/core/elasticsearch.md index eb2e73f4fea..cadf83238df 100644 --- a/core/elasticsearch.md +++ b/core/elasticsearch.md @@ -71,7 +71,8 @@ api_platform: ssl_verification: false # Never use in production ``` -**Note:** You cannot use both options together. +> [!NOTE] +> You cannot use both options together. ### Enabling Reading Support using Laravel